If you are using the tapestry-bootstrap module your tml will be something like this
<t:any t:mixins="tb/pager" pager.source="works" pager.rowsPerPage="12"> <t:tb.pagination /> <ul class="thumbnails"> <t:loop source="works" value="work" > <li class="span3"> <t:pagelink page="work/view" context="work" t:type="any" class= "thumbnail"> <img src="${src}"/> <h4>${work.title}</h4> </t:pagelink> </li> </t:loop> </ul> <t:tb.pagination /> </t:any> On Sun, May 5, 2013 at 1:46 PM, Lance Java <lance.j...@googlemail.com>wrote: > The only core tapestry component which supports paging is the grid. If > you're rendering a table, then use a grid > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Grid.html > > If you'd an example of a custom paging, take a look at my gallery component > in tapestry-stitch which supports next and previous pages... this could > easily be tweaked for page 1,2,3 etc. > http://tapestry-stitch.uklance.cloudbees.net/gallerydemo > > Note that my example uses it's own interface for paging (ie > GalleryDataModel). I'd recommend using tapestry's GridDataModel instead so > that you can take advantage of the HibernateGridDataModel and also > tapestry's built in type coercion from Collection/Array to GridDataModel. > > > > On 5 May 2013 18:19, Jan Fryblik <jan.fryb...@ebrothers.cz> wrote: > > > ** > > > > Hi guys, > > > > I using Tapestry 5 and Tapestry Bootstrap and i tried to apply pagination > > on loop component. I`m using it like that... > > > > <t:loop source="list" value="company" t:mixin="tb/LoopEnvironmentMixin"> > > ... > > </t:loop> > > > > > > but it doesn't render any pagination, just complete list. Probably i need > > to connect it with Pagination component, but i don't know how. Could you > > please tell me, what i've missed? Best with an example, thanks in > advance. > > > > BR, > > Jan > > > > -- > > > > * > > * > > *Mgr. Jan Fryblík* > > +420 739 094 784 > > jan.fryb...@ebrothers.cz > > > > *eBrothers Software s.r.o. | www.ebrothers.cz* > > >