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

    Datascroller is reset to page #1

    Daniel Żmuda Newbie

      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">
       <rich:columnGroup>
       <h:column>#{messages.orderName}</h:column>
       <h:column>#{messages.contNumber}</h:column>
       <h:column>#{messages.status}</h:column>
       <h:column>#{messages.callSupplier}</h:column>
       </rich:columnGroup>
       </f:facet>
       <h:column>
       <a4j:commandButton action="#{Order.showAcceptSuppOrder()}" value="Show" />
       </h:column>
       <h:column>#{order.zamowienieDostPonowienie}</h:column>
       <h:column>#{Order.showStatus(order)}</h:column>
       <h:column>
       <h:outputText styleClass="warnMessage" value="#{Order.showOrderWarn(order)}"></h:outputText>
       </h:column>
       <f:facet name="footer">
       <rich:datascroller />
       </f:facet>
       </rich:dataTable>
       </rich:tab>