Hi guys,

I apologize, but I need your help again. I used mixin 'tb/pager' together with 'tb.pagination' in Tapestry 5.3.7 to display a list of entities with pagination. It was possible to hide pagination, display all item on one page etc. (see my implementation below)

My issue now is that I'm looking for alternative to 'tb/pager' in Tapestry 5.4. Do you think Grid is reasonable solution or is there any new and more suitable component? I'm not so skilled in Tapestry development, so I appreciate any suggestions, how to implement it. Thank you a lot in advance.


<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd";
xmlns:p="tapestry:parameter" xmlns:j="tapestry-library:jquery">

<t:any t:mixins="tb/pager" pager.source="contentList" pager.rowsPerPage="prop:itemsPerPage">
   <t:if test="isMultiPaged">
     <t:tb.pagination/>
   </t:if>

   <t:loop source="contentList" value="content">
     <p:empty>
       <t:delegate to="empty"/>
     </p:empty>

     <t:body/>

   </t:loop>

   <t:if test="isMultiPaged">
     <t:tb.pagination/>
   </t:if>
</t:any>

</t:container>

Reply via email to