2 Replies Latest reply on Jan 17, 2011 7:16 AM by Jenesia Fernandes

    rich:dataScroller issue

    Jenesia Fernandes Newbie



      I have a page which contains 2 buttons

      • Clear Search
      • Search


      Based on the search criteria data is loaded on to the rich:dataTable and the rich:dataScroller is used to browse through various records incase the number of records exceed those that can be displayed on the single page of the table.


      The issue I am facing is that once I move to the 2nd page using the dataScroller, on a new search the scroller doest not refresh to the 1st page. it remains on the second page though the data is correctly fetched.


      Here is the code snippet:


        <rich:dataTable value="#{orderDataModel}" var="order" id="orderList" rowClasses="oddrow, evenrow" rows="#{multipleOrderBean.rowSize}" rendered="#{multipleOrderBean.orderFlag}">

                      <f:facet name="header">

                          <rich:datascroller align="center" for="orderList" maxPages="20"

                                       id="orderTableScroller" reRender="orderTableScroller"/>


                      <rich:spacer height="10" />

                      <rich:column width="200px">

                          <f:facet name="header">

                              <a4j:commandLink value="#{messages.placerOrderNumber}" reRender="orderList" tabindex="11">

                                  <a4j:actionparam name="sortField" value="PLACER_ORDER_NUMBER" />



                          <s:link action="#{singleOrderAction.getOrderDetails}">

                              <f:param name="orderId" value="#{order.orderId}" />

                              <f:param name="status" value="#{order.status}" />

                              <f:param name="statusCode" value="#{order.statusCode}" />

                              <h:outputText id="placerId"  value="#{order.placerOrderNumber}" />





      Can any one help me sort this issue