1 Reply Latest reply on Jul 26, 2010 3:43 AM by Ilya Shaikovsky

    rich:datascroller page number not resetting to the first page

    Naveen Koneru Newbie

      Hi All,


      We are using RichFaces-3.3.2.SR1 version and here is my problem


      We have a rich:tabPanel with few tabs.


      In one tab


      We have a dataTable along with an attached datascroller


      When performing few operations the dataTable will be displayed with some data


      Upon navigating to some other page (say 6) in datascroller it is displayed.


      we are comming out of the rich:tab1 and selcting some other rich:tab2


      Again after coming back to rich:tab1 and performing some operations the data table is displayed.


      but here still the page its pointing in datatable is the old one (i.e. 6)


      How can i reset back the page index to 1st page



      Here is my code for dataTable and scroller....



      <rich:datascroller id="ScheduledEventsData" for="scheduledEventsID" maxPages="15"
                                              <rich:dataTable id="scheduledEventsID" reRender="ScheduledEventsData"
                                                              value="#{scheduleBean.scheduledEvents}" rows="6"
                                                              width="570px" var="scheduledEvent"
                                                  <f:facet name="header">
                                                          <rich:column style="TEXT-ALIGN: center">
                                                              <h:outputText value="Service Center" />
                                                          <rich:column style="TEXT-ALIGN: center">
                                                              <h:outputText value="STOP TIME" />
                                                          <rich:column style="TEXT-ALIGN: center">
                                                              <h:outputText value="START TIME" />
                                                  <rich:column style="COLOR: blue; FONT-WEIGHT: bold; TEXT-ALIGN: center"
                                                               filterBy="#{scheduledEvent.serviceCenter}" sortable="true">
                                                      <h:outputText id="sc" value="#{scheduledEvent.serviceCenter}" />
                                                  <rich:column style="COLOR: #00000; FONT-WEIGHT: bold; TEXT-ALIGN: center"
                                                      <h:outputText id="stopTime" value="#{scheduledEvent.stopTime}" />
                                                  <rich:column style="COLOR: #00000; FONT-WEIGHT: bold; TEXT-ALIGN: center"
                                                      <h:outputText id="startTime" value="#{scheduledEvent.startTime}" />



      Please help me in this issue..