Author: konstantin.mishin
Date: 2010-03-22 14:05:56 -0400 (Mon, 22 Mar 2010)
New Revision: 16651
Modified:
root/examples-sandbox/trunk/components/tables/src/main/webapp/extendedtable.xhtml
Log:
RF-7852 ExtendedDataTable sample
Modified:
root/examples-sandbox/trunk/components/tables/src/main/webapp/extendedtable.xhtml
===================================================================
---
root/examples-sandbox/trunk/components/tables/src/main/webapp/extendedtable.xhtml 2010-03-22
18:05:51 UTC (rev 16650)
+++
root/examples-sandbox/trunk/components/tables/src/main/webapp/extendedtable.xhtml 2010-03-22
18:05:56 UTC (rev 16651)
@@ -47,7 +47,13 @@
<h:selectBooleanCheckbox value="#{dataBean.state}">
<f:ajax render="extendedDataTable" />
</h:selectBooleanCheckbox>
- <rich:extendedDataTable id="extendedDataTable"
frozenColumns="2" value="#{dataBean.state ? dataBean.employeeList :
null}" var="record" noDataLabel="There isn't data."
styleClass="extendedDataTable">
+ <rich:extendedDataTable id="extendedDataTable" clientRows="40"
rows="100" frozenColumns="2" value="#{dataBean.state ?
dataBean.employeeList : null}" var="record" noDataLabel="There
isn't data." styleClass="extendedDataTable">
+ <f:facet name="header">
+ <h:outputText value="Header of table."/>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="Footer of table."/>
+ </f:facet>
<f:facet name="noData">
<h:outputText value="There isn't data." style="border: solid
black 1px;"/>
</f:facet>
@@ -71,9 +77,15 @@
<rich:column id="column_email" width="300px">
<h:outputText value="#{record.EMail}" />
</rich:column>
- <rich:column id="column_email1" width="300px">
- <h:outputText value="#{record.EMail}" />
+ <rich:column id="column_company_name" width="300px">
+ <h:outputText value="#{record.company.name}" />
</rich:column>
+ <rich:column id="column_company_state">
+ <h:outputText value="#{record.company.state}" />
+ </rich:column>
+ <rich:column id="column_company_phone">
+ <h:outputText value="#{record.company.phone}" />
+ </rich:column>
</rich:extendedDataTable>
<input type="submit" />
</h:form>
Show replies by date