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">
<h:outputText 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">
<h:outputText value="Statistic Id" />
</f:facet>
<h:outputText value="#{s.statisticId}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Metric Name" />
</f:facet>
<h:outputText value="#{s.metricName}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Monetary Value" />
</f:facet>
<h:outputText value="#{s.monetaryValue}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Client" />
</f:facet>
<h:outputText value="#{s.clientName}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Count Value" />
</f:facet>
<h:outputText value="#{s.countValue}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Avg Value" />
</f:facet>
<h:outputText value="#{s.avgValue}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Metric Type Name" />
</f:facet>
<h:outputText value="#{s.metricTypeName}" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText value="Data Load Id" />
</f:facet>
<h:outputText value="#{s.dataLoadId}" />
</rich:column>
<f:facet name="footer">
<rich:dataScroller />
</f:facet>
</rich:dataTable>
</h:form>
</h:panelGrid>
Thanks in advance.