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*
>

Reply via email to