Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RichFaces 4 pagination issue.

 
Vikas Baranwal
Greenhorn
Posts: 3
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic