Author: lfryc(a)redhat.com
Date: 2011-03-02 03:10:24 -0500 (Wed, 02 Mar 2011)
New Revision: 22012
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/scroller.xhtml
Log:
fixed rich:dataGrid - scroller sample - support for iteration templates
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/scroller.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/scroller.xhtml 2011-03-02
06:43:10 UTC (rev 22011)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/scroller.xhtml 2011-03-02
08:10:24 UTC (rev 22012)
@@ -27,6 +27,7 @@
-->
<ui:composition template="/templates/template.xhtml">
+ <ui:param name="componentId" value="richDataGrid" />
<ui:define name="view">
<f:metadata>
@@ -44,10 +45,10 @@
<br/>
<h:outputText value="Show data in table: " />
<h:selectBooleanCheckbox id="noDataCheckbox"
value="#{richDataGridBean.state}">
- <a4j:ajax render="richDataGrid scroller1"/>
+ <a4j:ajax render="#{nestedComponentId} scroller1"/>
</h:selectBooleanCheckbox>
<br/><br/>
- <rich:dataScroller id="scroller1" for="richDataGrid"
page="#{richDataGridBean.page}" maxPages="7"
render="richDataGrid"/>
+ <rich:dataScroller id="scroller1" for="richDataGrid"
page="#{richDataGridBean.page}" maxPages="7"
render="#{nestedComponentId}"/>
</ui:define>
<ui:define name="component">
@@ -84,7 +85,7 @@
<h:outputText value="#{record.name}" />
<f:facet name="footer">
- <rich:dataScroller id="scroller2"
for="richDataGrid" page="#{richDataGridBean.page}"
maxPages="7" render="richDataGrid" />
+ <rich:dataScroller id="scroller2"
for="richDataGrid" page="#{richDataGridBean.page}"
maxPages="7" render="richDataGrid scroller1" />
</f:facet>
</rich:dataGrid>
Show replies by date