rich:datascroller not scrolling rich:dataGrid?
skidvd Jan 5, 2012 11:57 AMHello all,
I am using RichFaces 3.3.3.Final.
I am having trouble getting the rich:datascroller to scroll the rich:dataGrid. The datascroller represents the proper number of pages for the data in the dataGrid. However, when I select any of the datascroller controlls, the ajax request processes (as witnessed via the associated status), but the dataGrid remains on the first page. Nothing seems to be able to make it progress to another page. No ajax or other errors are generated and all appears to function well except that the datGrid does not scroll.. I'd appreciate any help with this as I am stuck. Here is the form containg both the dtaaGrid and the datascroller:
<a4j:form id="StatisticsForm" width="100%" style="height: 100%;" status="StatisticsStatus"> | ||||||||||||||||||||
<ui:decorate id="statisticsDecoration" template="/templates/centered.xhtml"> | ||||||||||||||||||||
<a4j:outputPanel id="CPSStatisticsOutputPanel"> | ||||||||||||||||||||
<h:outputText id="noCPSStatsText" value="#{msgs.noCPSStatisticsMsg}" | ||||||||||||||||||||
rendered="#{empty statisticsController.CPSMessageStatistics}"/> | ||||||||||||||||||||
<rich:dataGrid id="CPSDataGrid" value="#{statisticsController.CPSMessageStatistics}" var="stat" | ||||||||||||||||||||
columns="#{CS3Admin.STATISTICS_COLUMNS}" elements="#{CS3Admin.STATISTICS_ELEMENT_COUNT}" | ||||||||||||||||||||
border="0" width="100%" | ||||||||||||||||||||
rendered="#{not empty statisticsController.CPSMessageStatistics}"> | ||||||||||||||||||||
<rich:panel bodyClass="pbody"> | ||||||||||||||||||||
<f:facet name="header"> | ||||||||||||||||||||
<h:outputText value="#{stat.key}"></h:outputText> | ||||||||||||||||||||
</f:facet> | ||||||||||||||||||||
<h:panelGrid columns="2"> | ||||||||||||||||||||
<h:outputText value="Count:" styleClass="label" | ||||||||||||||||||||
rendered="#{not stat.count}" /> | ||||||||||||||||||||
<h:outputText value="#{stat.value}" /> | ||||||||||||||||||||
</h:panelGrid> | ||||||||||||||||||||
</rich:panel> | ||||||||||||||||||||
<f:facet name="footer"> | ||||||||||||||||||||
<rich:datascroller renderIfSinglePage="false" status="StatisticsStatus"/> | ||||||||||||||||||||
</f:facet> | ||||||||||||||||||||
</rich:dataGrid> | ||||||||||||||||||||
</a4j:outputPanel> | ||||||||||||||||||||
<rich:spacer/> |
|
<a4j:outputPanel id="CPSRateBarPanel"> | |||||||||||||||
</a4j:outputPanel> | |||||||||||||||
<a4j:outputPanel id="CPSStatisticsResetButtonPanel"> | |||||||||||||||
<rich:spacer/> | |||||||||||||||
<a4j:commandLink id="statisticsResetButton" value="#{msgs.resetStatisticsLabel}" status="StatisticsStatus" | |||||||||||||||
oncomplete="if (#{facesContext.maximumSeverity==null || facesContext.maximumSeverity.ordinal==0}) #{rich:component('resetStatisticsConfirmationPanel')}.show();" | |||||||||||||||
reRender="resetStatisticsConfirmationPanel, CPSStatisticsOutputPanel, CPSRateBarPanel, CPSStatisticsResetButtonPanel" | |||||||||||||||
rendered="#{not empty statisticsController.CPSMessageStatistics}"/> | |||||||||||||||
</a4j:outputPanel> | |||||||||||||||
</ui:decorate> | |||||||||||||||
</a4j:form> |
|