rich:datascroller page number not resetting to the first page
naveenkoneru Jul 23, 2010 7:18 AMHi 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"
renderIfSinglePage="false"
rendered="#{scheduleBean.displayEventReport}"/>
<rich:dataTable id="scheduledEventsID" reRender="ScheduledEventsData"
value="#{scheduleBean.scheduledEvents}" rows="6"
width="570px" var="scheduledEvent"
rendered="#{scheduleBean.displayEventReport}">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="TEXT-ALIGN: center">
<h:outputText value="Service Center" />
</rich:column>
<rich:column style="TEXT-ALIGN: center">
<h:outputText value="STOP TIME" />
</rich:column>
<rich:column style="TEXT-ALIGN: center">
<h:outputText value="START TIME" />
</rich:column>
</rich:columnGroup>
</f:facet>
<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>
<rich:column style="COLOR: #00000; FONT-WEIGHT: bold; TEXT-ALIGN: center"
sortable="true">
<h:outputText id="stopTime" value="#{scheduledEvent.stopTime}" />
</rich:column>
<rich:column style="COLOR: #00000; FONT-WEIGHT: bold; TEXT-ALIGN: center"
sortable="true">
<h:outputText id="startTime" value="#{scheduledEvent.startTime}" />
</rich:column>
</rich:dataTable>
Please help me in this issue..