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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RichFaces 4 pagination issue.
 
Similar Threads
Skinning issue in Richfaces 4 and JSF 2
populate a drop down based on the value of another drop down which are in a data table
Ajax status doesn't stop in IE8
FacesException: f:ajax contains an unknown id - cannot locate it in the context of the component
Can't reRender richfaces datatable from modal panel