1 Reply Latest reply on Apr 21, 2008 9:09 AM by ilya_shaikovsky

    Datascroller is reset to page #1


      Hi, I have this code on page. Actually for the test i have 26 objects in "acceptedRetrySuppOrders" and datascroller in the footer show proper that there are 3 pages. But when i click on any it shows message :

      Datascroller logisticsOrders:j_id975:waitingToClose:j_id1040: The requested page #3 isn't found in the model containing 1 pages. Datascroller is reset to page #1

      And it dont want to reload to the other page. But my logs shows that there are 26 objects in the model.

      Anyone could help?

      <rich:tab label="#{messages['logistic.order.waiting']}">
       <a4j:support eventsQueue="tabEnterQueue" event="ontabenter" action="#{Order.findAcceptedRetryOrders()}" reRender="waitingToClose"/>
       <rich:dataTable id="waitingToClose" rows="10" styleClass="result" rowClasses="odd, even" value="#{acceptedRetrySuppOrders}" var="order" rendered="#{acceptedRetrySuppOrders.size > 0}">
       <f:facet name="header">
       <a4j:commandButton action="#{Order.showAcceptSuppOrder()}" value="Show" />
       <h:outputText styleClass="warnMessage" value="#{Order.showOrderWarn(order)}"></h:outputText>
       <f:facet name="footer">
       <rich:datascroller />