0 Replies Latest reply on Jan 10, 2008 7:48 PM by x490812

    possible bug in pageIndexVar attrib of datascroller

      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>
      

      The problem is that if there is nothing in the datatable, I still get "1 /1" as the #{pageIndex} / #{pages} rendering. I would think that if there is no rows, I would get 0 / 0 . Does this seam right? can someone explain it?