File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes RichFaces 4 pagination issue. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "RichFaces 4 pagination issue." Watch "RichFaces 4 pagination issue." New topic
Author

RichFaces 4 pagination issue.

Vikas Baranwal
Greenhorn

Joined: Jan 22, 2009
Posts: 3

Hi ,
I am completely novice in Richfaces 4.2 ,got stuck in a issue.Actually I have a combo and on selection of a element in the combo,I am getting data in the datatable.Here I am using data scroller for pagination.At first time when page is loaded data is coming correctly for default combo in different page of datatable.but when I change the selection in the combo box ,data is coming correct for that particular page in data table which was previously displaying but for other pages its showing old record only.Its seems Ajax refreshes data for current page only in data table not for other pages.

Can any one do any help.

my code is as below:

<h:form id ="clientDropdown">
<hutputText value="Client: " />
<h:selectOneMenu value="#{clientService.clientId}" id="sMenu">
<f:selectItems value="#{clientService.clientList}"/>
<a4j:ajax execute="sMenu" event="valueChange" render="clientTbl" ajaxSingle="true"
onbegin="#{rich:component('processingPanel')}.show()"
oncomplete="#{rich:component('processingPanel')}.hide()"/>
</h:selectOneMenu>
</h:form>
</h:panelGrid>
<h:graphicImage width="10" height="30" style="vertical-align:middle;" value="/images/spacer.gif"/>
</p>
<p>
<h:panelGrid cellpadding="2" cellspacing="2" width="100%">

<h:form id ="clientTableData">

<rich:dataTable value="#{clientService.clientStatistics}" rows="10" var="s" id="clientTbl" styleClass="tblNowrap100pct">
<rich:column >
<f:facet name="header">
<hutputText value="Statistic Id" />
</f:facet>
<hutputText value="#{s.statisticId}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Metric Name" />
</f:facet>
<hutputText value="#{s.metricName}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Monetary Value" />
</f:facet>
<hutputText value="#{s.monetaryValue}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Client" />
</f:facet>
<hutputText value="#{s.clientName}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Count Value" />
</f:facet>
<hutputText value="#{s.countValue}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Avg Value" />
</f:facet>
<hutputText value="#{s.avgValue}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Metric Type Name" />
</f:facet>
<hutputText value="#{s.metricTypeName}" />
</rich:column>
<rich:column >
<f:facet name="header">
<hutputText value="Data Load Id" />
</f:facet>
<hutputText value="#{s.dataLoadId}" />
</rich:column>
<f:facet name="footer">
<rich:dataScroller />
</f:facet>
</rich:dataTable>
</h:form>
</h:panelGrid>

Thanks in advance.
 
Consider Paul's rocket mass heater.
 
subject: RichFaces 4 pagination issue.