I have a datascroller and am using a pageindexvar as follows
<rich:datascroller id="lnScroller" align="left" for="lnList" maxPages="20" rows="1" pageIndexVar="pageIndex" pagesVar="pages" binding="#{caseManagement.datascroller}"> <f:facet name="pages"> <h:outputText value="#{pageIndex} / #{pages}"></h:outputText> </f:facet> </rich:datascroller>