Author: abelevich
Date: 2009-11-17 12:39:54 -0500 (Tue, 17 Nov 2009)
New Revision: 15899
Modified:
root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
Log:
add expand subTable
Modified: root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
===================================================================
--- root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2009-11-17
17:38:57 UTC (rev 15898)
+++ root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2009-11-17
17:39:54 UTC (rev 15899)
@@ -12,6 +12,7 @@
<h:body>
<h:form id="form1">
+
<rich:dataTable var="record" value="#{dataBean.employeeList}"
rows="20">
<f:facet name="caption">
<h:outputText id="captioFacet1" value="Caption Facet" />
@@ -27,6 +28,8 @@
<f:facet name="header">
<h:outputText id="columnHeader1" value="Column Header
Facet"/>
</f:facet>
+
+ <rich:toggleControl forId="expandedSubTable"
expandControl="resources/images/+.gif"
collapseControl="resources/images/-.gif"/>
<h:outputText value="#{record.name}" />
<f:facet name="footer">
<h:outputText id="columnFooter1" value="Column Footer
Facet"/>
@@ -41,7 +44,9 @@
<h:outputText value="#{record.EMail}" />
</rich:column>
- <rich:subTable var="company" value="#{record.company}"
rows="20">
+
+
+ <rich:subTable id="expandedSubTable" var="company"
value="#{record.company}" rows="20" expanded="true"
switchType="client">
<f:facet name="header">
<rich:colGroup id="headerFacet1" >
<rich:column><h:outputText id="headerFacet12"
value="company"> </h:outputText></rich:column>