I would like to know how to do a ui:repeat with multiple pages, i click the previous/next button to view the next set of data.
currently i have a ui:repeat
<ui:repeat id="repeat5" value="#{getData.data}" var="lst2" varStatus="loop">
I can view the content (basically images) in a rows/columns but all the data is displayed in the same screen but i would like to show only 5 rows and 4columns and then use the previous/next button to view the remaining images in the 5 rows/ 4 columns layout.
Currently i can specify only column configuration like below, how do i get the specified rows.
<h:panelGrid id="panelGrid3" columns="4" cellspacing="2" cellpadding="2">
UPDATE 1 (Code for Rasmus Franke)
Pls find the code as requested by you.
<h:form id="mainForm">
<p:tabView id="tabView" >
<p:tab title="Image Viewer" id="Viewer" titleStyle="height:30px">
<p:layout>
<p:layoutUnit id="layoutEast" position="east" size="350" style="height:200px">
<p:commandButton type="button" onclick=""
icon="ui-icon-circle-triangle-w"/>
<p:commandButton type="button" onclick="switchPage(1,29);"
icon="ui-icon-circle-triangle-e"/>
<h:panelGrid id="panelGrid3" columns="5" cellspacing="2" cellpadding="2">
<ui:repeat id="repeat5" value="#{getData.data}" var="imagesLst2" varStatus="loop">
<h:panelGroup>
<p:commandLink id="cl3" action="#{getData.imageID(imagesLst2.imageID)}" update=":mainForm:tabView:example">
<p:graphicImage id="gi3" value="#{imagesStreamer.image}" styleClass="bord"
onmousedown="mouseDown(this)" alt="image not available3" width="60" height="60"
style="#{loop.index > 29 ? 'visibility: hidden;' : ''}">
<f:param name="id5" value="#{imagesLst2.imageID}" />
</p:graphicImage>
</p:commandLink>
</h:panelGroup>
</ui:repeat>
</h:panelGrid>
</p:layoutUnit>
</p:layout>
</p:tab>
</p:tabView>