Author: lfryc(a)redhat.com
Date: 2010-11-17 04:35:08 -0500 (Wed, 17 Nov 2010)
New Revision: 20066
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-column.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-component-control.xhtml
Removed:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/scroller.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/simple.xhtml
Log:
rich:extendedDataTable - fixed all samples of sorting by component control - sorting.xhtml
divided to two samples (sorting using component control and sorting using column
attributes) (RFPL-919, RFPL-918)
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml 2010-11-17
09:34:09 UTC (rev 20065)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml 2010-11-17
09:35:08 UTC (rev 20066)
@@ -49,14 +49,17 @@
<span style="color: red">TODO will be used with various
types of input and command components as soon as available</span>
</metamer:testPageLink>
- <metamer:testPageLink id="sorting" outcome="sorting"
value="Table Sorting">
- Page that contains sortable <b>rich:extendedDataTable</b>
(with model containing capitals) and input boxes for all its attributes.
+ <metamer:testPageLink id="sorting-using-component-control"
outcome="sorting-using-component-control" value="Table Sorting - Component
Control">
+ <b>rich:extendedDataTable</b> (with model containing states
and capitals) sortable by <b>rich:componentControl</b>.
</metamer:testPageLink>
+
+ <metamer:testPageLink id="sorting-using-column"
outcome="sorting-using-column" value="Table Sorting - Column
based">
+ <b>rich:extendedDataTable</b> (with model containing states
and capitals) custom sorting by <b>rich:column</b>'s attribute @sortBy,
@sortOrder.
+ </metamer:testPageLink>
<metamer:testPageLink id="filtering"
outcome="filtering" value="Table filtering">
Page that contains filterable <b>rich:extendedDataTable</b>
(with model containing capitals) and input boxes for all its attributes.
</metamer:testPageLink>
-
</ui:define>
</ui:composition>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/scroller.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/scroller.xhtml 2010-11-17
09:34:09 UTC (rev 20065)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/scroller.xhtml 2010-11-17
09:35:08 UTC (rev 20066)
@@ -129,7 +129,9 @@
<ui:define name="outOfTemplateAfter">
<h:commandButton id="sortStatesButton" value="sort
state">
- <rich:componentControl event="click"
target="richEDT" operation="sort"/>
+ <rich:componentControl event="click"
target="richEDT" operation="sort">
+ <f:param value="columnState" />
+ </rich:componentControl>
</h:commandButton>
<h:commandButton id="sortCapitalsButton" value="sort
capital">
@@ -137,8 +139,14 @@
<f:param value="columnCapital" />
</rich:componentControl>
</h:commandButton>
+
+ <br/><br/>
+
+ <h:commandButton id="sortTableButton" value="sort
table">
+ <rich:componentControl event="click"
target="richEDT" operation="sort" />
+ </h:commandButton>
- <br/>
+ <br/><br/>
scroller1:
<h:commandButton id="buttonFirst1" value="<<
first">
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/simple.xhtml 2010-11-17
09:34:09 UTC (rev 20065)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/simple.xhtml 2010-11-17
09:35:08 UTC (rev 20066)
@@ -124,7 +124,9 @@
<ui:define name="outOfTemplateAfter">
<h:commandButton id="sortStatesButton" value="sort
states">
- <rich:componentControl event="click"
target="richEDT" operation="sort"/>
+ <rich:componentControl event="click"
target="richEDT" operation="sort">
+ <f:param value="columnState" />
+ </rich:componentControl>
</h:commandButton>
<h:commandButton id="sortCapitalsButton" value="sort
capitals">
@@ -134,7 +136,12 @@
</h:commandButton>
<br/><br/>
+
+ <h:commandButton id="sortTableButton" value="sort table">
+ <rich:componentControl event="click"
target="richEDT" operation="sort" />
+ </h:commandButton>
+ <br/><br/>
<metamer:attributes
value="#{richExtendedDataTableBean.attributes}" id="attributes" />
</ui:define>
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-column.xhtml
(from rev 20065,
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-column.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-column.xhtml 2010-11-17
09:35:08 UTC (rev 20066)
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <style type="text/css">
+ .rf-edt {
+ width: 300px !important;
+ height: 300px !important;
+ }
+ </style>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <br/>
+ <h:outputText value="Show data in table: " />
+ <h:selectBooleanCheckbox id="noDataCheckbox"
value="#{richExtendedDataTableBean.state}">
+ <a4j:ajax render="richDataTable scroller1"/>
+ </h:selectBooleanCheckbox>
+ <br/><br/>
+ <rich:dataScroller id="scroller1" for="table"
page="#{richExtendedDataTableBean.page}" maxPages="7"
render="table"/>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:extendedDataTable id="table"
+
beforeselectionchange="#{richExtendedDataTableBean.attributes['beforeselectionchange'].value}"
+
clientFirst="#{richExtendedDataTableBean.attributes['clientFirst'].value}"
+
clientRows="#{richExtendedDataTableBean.attributes['clientRows'].value}"
+
filterVar="#{richExtendedDataTableBean.attributes['filterVar'].value}"
+
filteringListeners="#{richExtendedDataTableBean.attributes['filteringListeners'].value}"
+
first="#{richExtendedDataTableBean.attributes['first'].value}"
+
frozenColumns="#{richExtendedDataTableBean.attributes['frozenColumns'].value}"
+
iterationState="#{richExtendedDataTableBean.attributes['iterationState'].value}"
+
iterationStatusVar="#{richExtendedDataTableBean.attributes['iterationStatusVar'].value}"
+
keepSaved="#{richExtendedDataTableBean.attributes['keepSaved'].value}"
+
noDataLabel="#{richExtendedDataTableBean.attributes['noDataLabel'].value}"
+
relativeRowIndex="#{richExtendedDataTableBean.attributes['relativeRowIndex'].value}"
+
rendered="#{richExtendedDataTableBean.attributes['rendered'].value}"
+
rowAvailable="#{richExtendedDataTableBean.attributes['rowAvailable'].value}"
+
rowCount="#{richExtendedDataTableBean.attributes['rowCount'].value}"
+
rowData="#{richExtendedDataTableBean.attributes['rowData'].value}"
+
rowIndex="#{richExtendedDataTableBean.attributes['rowIndex'].value}"
+
rowKey="#{richExtendedDataTableBean.attributes['rowKey'].value}"
+
rowKeyConverter="#{richExtendedDataTableBean.attributes['rowKeyConverter'].value}"
+
rows="#{richExtendedDataTableBean.attributes['rows'].value}"
+
selection="#{richExtendedDataTableBean.attributes['selection'].value}"
+
selectionchange="#{richExtendedDataTableBean.attributes['selectionchange'].value}"
+
sortMode="#{richExtendedDataTableBean.attributes['sortMode'].value}"
+
sortPriority="#{richExtendedDataTableBean.attributes['sortPriority'].value}"
+
sortingListeners="#{richExtendedDataTableBean.attributes['sortingListeners'].value}"
+
style="#{richExtendedDataTableBean.attributes['style'].value}"
+
styleClass="#{richExtendedDataTableBean.attributes['styleClass'].value}"
+ value="#{richExtendedDataTableBean.state ?
model.capitals : null}"
+ var="record"
+ >
+
+ <f:facet name="noData">
+ <h:outputText value="There is no data."
style="color: red;"/>
+ </f:facet>
+
+ <rich:column id="columnState"
sortBy="#{record.state}"
sortOrder="#{richExtendedDataTableBean.statesOrder}">
+ <f:facet name="header">
+ <a4j:commandLink id="columnHeaderState"
value="State" render="table"
action="#{richExtendedDataTableBean.sortByStates}"/>
+ </f:facet>
+
+ <h:outputText value="#{record.state}" />
+ <f:facet name="footer">
+ <h:outputText id="columnFooterState"
value="State" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column id="columnCapital"
sortBy="#{record.name}"
sortOrder="#{richExtendedDataTableBean.capitalsOrder}">
+ <f:facet name="header">
+ <a4j:commandLink id="columnHeaderCapital"
value="Capital" render="table"
action="#{richExtendedDataTableBean.sortByCapitals}"/>
+ </f:facet>
+
+ <h:outputText value="#{record.name}" />
+ <f:facet name="footer">
+ <h:outputText id="columnFooterCapital"
value="Capital" />
+ </f:facet>
+ </rich:column>
+
+ <f:facet name="footer">
+ <rich:dataScroller id="scroller2" for="table"
page="#{richExtendedDataTableBean.page}" maxPages="7"
render="table" />
+ </f:facet>
+
+ </rich:extendedDataTable>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes
value="#{richExtendedDataTableBean.attributes}" id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-component-control.xhtml
(from rev 20065,
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-component-control.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting-using-component-control.xhtml 2010-11-17
09:35:08 UTC (rev 20066)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <style type="text/css">
+ .rf-edt {
+ width: 300px !important;
+ height: 300px !important;
+ }
+ </style>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <br/>
+ <h:outputText value="Show data in table: " />
+ <h:selectBooleanCheckbox id="noDataCheckbox"
value="#{richExtendedDataTableBean.state}">
+ <a4j:ajax render="richDataTable scroller1"/>
+ </h:selectBooleanCheckbox>
+ <br/><br/>
+ <rich:dataScroller id="scroller1" for="table"
page="#{richExtendedDataTableBean.page}" maxPages="7"
render="table"/>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:extendedDataTable id="table"
+
beforeselectionchange="#{richExtendedDataTableBean.attributes['beforeselectionchange'].value}"
+
clientFirst="#{richExtendedDataTableBean.attributes['clientFirst'].value}"
+
clientRows="#{richExtendedDataTableBean.attributes['clientRows'].value}"
+
filterVar="#{richExtendedDataTableBean.attributes['filterVar'].value}"
+
filteringListeners="#{richExtendedDataTableBean.attributes['filteringListeners'].value}"
+
first="#{richExtendedDataTableBean.attributes['first'].value}"
+
frozenColumns="#{richExtendedDataTableBean.attributes['frozenColumns'].value}"
+
iterationState="#{richExtendedDataTableBean.attributes['iterationState'].value}"
+
iterationStatusVar="#{richExtendedDataTableBean.attributes['iterationStatusVar'].value}"
+
keepSaved="#{richExtendedDataTableBean.attributes['keepSaved'].value}"
+
noDataLabel="#{richExtendedDataTableBean.attributes['noDataLabel'].value}"
+
relativeRowIndex="#{richExtendedDataTableBean.attributes['relativeRowIndex'].value}"
+
rendered="#{richExtendedDataTableBean.attributes['rendered'].value}"
+
rowAvailable="#{richExtendedDataTableBean.attributes['rowAvailable'].value}"
+
rowCount="#{richExtendedDataTableBean.attributes['rowCount'].value}"
+
rowData="#{richExtendedDataTableBean.attributes['rowData'].value}"
+
rowIndex="#{richExtendedDataTableBean.attributes['rowIndex'].value}"
+
rowKey="#{richExtendedDataTableBean.attributes['rowKey'].value}"
+
rowKeyConverter="#{richExtendedDataTableBean.attributes['rowKeyConverter'].value}"
+
rows="#{richExtendedDataTableBean.attributes['rows'].value}"
+
selection="#{richExtendedDataTableBean.attributes['selection'].value}"
+
selectionchange="#{richExtendedDataTableBean.attributes['selectionchange'].value}"
+
sortMode="#{richExtendedDataTableBean.attributes['sortMode'].value}"
+
sortPriority="#{richExtendedDataTableBean.attributes['sortPriority'].value}"
+
sortingListeners="#{richExtendedDataTableBean.attributes['sortingListeners'].value}"
+
style="#{richExtendedDataTableBean.attributes['style'].value}"
+
styleClass="#{richExtendedDataTableBean.attributes['styleClass'].value}"
+ value="#{richExtendedDataTableBean.state ?
model.capitals : null}"
+ var="record"
+ >
+
+ <f:facet name="noData">
+ <h:outputText value="There is no data."
style="color: red;"/>
+ </f:facet>
+
+ <rich:column id="columnState"
sortBy="#{record.state}">
+ <f:facet name="header">
+ State
+ </f:facet>
+
+ <h:outputText value="#{record.state}" />
+ <f:facet name="footer">
+ <h:outputText id="columnFooterState"
value="State" />
+ </f:facet>
+ </rich:column>
+
+ <rich:column id="columnCapital"
sortBy="#{record.name}">
+ <f:facet name="header">
+ Capital
+ </f:facet>
+
+ <h:outputText value="#{record.name}" />
+ <f:facet name="footer">
+ <h:outputText id="columnFooterCapital"
value="Capital" />
+ </f:facet>
+ </rich:column>
+
+ <f:facet name="footer">
+ <rich:dataScroller id="scroller2" for="table"
page="#{richExtendedDataTableBean.page}" maxPages="7"
render="table" />
+ </f:facet>
+
+ </rich:extendedDataTable>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <h:commandButton id="sortStatesButton" value="sort
state">
+ <rich:componentControl event="click"
target="table" operation="sort">
+ <f:param value="columnState" />
+ </rich:componentControl>
+ </h:commandButton>
+
+ <h:commandButton id="sortCapitalsButton" value="sort
capital">
+ <rich:componentControl event="click"
target="table" operation="sort">
+ <f:param value="columnCapital" />
+ </rich:componentControl>
+ </h:commandButton>
+
+ <br/><br/>
+
+ <h:commandButton id="sortTableButton" value="sort
table">
+ <rich:componentControl event="click"
target="table" operation="sort" />
+ </h:commandButton>
+
+ <br/><br/>
+
+ <metamer:attributes
value="#{richExtendedDataTableBean.attributes}" id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Deleted:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting.xhtml 2010-11-17
09:34:09 UTC (rev 20065)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/sorting.xhtml 2010-11-17
09:35:08 UTC (rev 20066)
@@ -1,139 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich">
-
- <!--
-JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
-by the @authors tag. See the copyright.txt in the distribution for a
-full listing of individual contributors.
-
-This is free software; you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of
-the License, or (at your option) any later version.
-
-This software is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this software; if not, write to the Free
-Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-
- <ui:composition template="/templates/template.xhtml">
-
- <ui:define name="head">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- </f:metadata>
- <style type="text/css">
- .rf-edt {
- width: 300px !important;
- height: 300px !important;
- }
- </style>
- </ui:define>
-
- <ui:define name="outOfTemplateBefore">
- <br/>
- <h:outputText value="Show data in table: " />
- <h:selectBooleanCheckbox id="noDataCheckbox"
value="#{richExtendedDataTableBean.state}">
- <a4j:ajax render="richDataTable scroller1"/>
- </h:selectBooleanCheckbox>
- <br/><br/>
- <rich:dataScroller id="scroller1" for="table"
page="#{richExtendedDataTableBean.page}" maxPages="7"
render="table"/>
- </ui:define>
-
- <ui:define name="component">
-
- <rich:extendedDataTable id="table"
-
beforeselectionchange="#{richExtendedDataTableBean.attributes['beforeselectionchange'].value}"
-
clientFirst="#{richExtendedDataTableBean.attributes['clientFirst'].value}"
-
clientRows="#{richExtendedDataTableBean.attributes['clientRows'].value}"
-
filterVar="#{richExtendedDataTableBean.attributes['filterVar'].value}"
-
filteringListeners="#{richExtendedDataTableBean.attributes['filteringListeners'].value}"
-
first="#{richExtendedDataTableBean.attributes['first'].value}"
-
frozenColumns="#{richExtendedDataTableBean.attributes['frozenColumns'].value}"
-
iterationState="#{richExtendedDataTableBean.attributes['iterationState'].value}"
-
iterationStatusVar="#{richExtendedDataTableBean.attributes['iterationStatusVar'].value}"
-
keepSaved="#{richExtendedDataTableBean.attributes['keepSaved'].value}"
-
noDataLabel="#{richExtendedDataTableBean.attributes['noDataLabel'].value}"
-
relativeRowIndex="#{richExtendedDataTableBean.attributes['relativeRowIndex'].value}"
-
rendered="#{richExtendedDataTableBean.attributes['rendered'].value}"
-
rowAvailable="#{richExtendedDataTableBean.attributes['rowAvailable'].value}"
-
rowCount="#{richExtendedDataTableBean.attributes['rowCount'].value}"
-
rowData="#{richExtendedDataTableBean.attributes['rowData'].value}"
-
rowIndex="#{richExtendedDataTableBean.attributes['rowIndex'].value}"
-
rowKey="#{richExtendedDataTableBean.attributes['rowKey'].value}"
-
rowKeyConverter="#{richExtendedDataTableBean.attributes['rowKeyConverter'].value}"
-
rows="#{richExtendedDataTableBean.attributes['rows'].value}"
-
selection="#{richExtendedDataTableBean.attributes['selection'].value}"
-
selectionchange="#{richExtendedDataTableBean.attributes['selectionchange'].value}"
-
sortMode="#{richExtendedDataTableBean.attributes['sortMode'].value}"
-
sortPriority="#{richExtendedDataTableBean.attributes['sortPriority'].value}"
-
sortingListeners="#{richExtendedDataTableBean.attributes['sortingListeners'].value}"
-
style="#{richExtendedDataTableBean.attributes['style'].value}"
-
styleClass="#{richExtendedDataTableBean.attributes['styleClass'].value}"
- value="#{richExtendedDataTableBean.state ?
model.capitals : null}"
- var="record"
- >
-
- <f:facet name="noData">
- <h:outputText value="There is no data."
style="color: red;"/>
- </f:facet>
-
- <rich:column id="columnState"
sortBy="#{record.state}"
sortOrder="#{richExtendedDataTableBean.statesOrder}">
- <f:facet name="header">
- <a4j:commandLink id="columnHeaderState"
value="State" render="table"
action="#{richExtendedDataTableBean.sortByStates}"/>
- </f:facet>
-
- <h:outputText value="#{record.state}" />
- <f:facet name="footer">
- <h:outputText id="columnFooterState"
value="State" />
- </f:facet>
- </rich:column>
-
- <rich:column id="columnCapital"
sortBy="#{record.name}"
sortOrder="#{richExtendedDataTableBean.capitalsOrder}"
sortingListeners="#{richExtendedDataTableBean.sortingListener}">
- <f:facet name="header">
- <a4j:commandLink id="columnHeaderCapital"
value="Capital" render="table"
action="#{richExtendedDataTableBean.sortByCapitals}"/>
- </f:facet>
-
- <h:outputText value="#{record.name}" />
- <f:facet name="footer">
- <h:outputText id="columnFooterCapital"
value="Capital" />
- </f:facet>
- </rich:column>
-
- <f:facet name="footer">
- <rich:dataScroller id="scroller2" for="table"
page="#{richExtendedDataTableBean.page}" maxPages="7"
render="table" />
- </f:facet>
-
- </rich:extendedDataTable>
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <h:commandButton id="sortStatesButton" value="sort
state">
- <rich:componentControl event="click"
target="table" operation="sort"/>
- </h:commandButton>
-
- <h:commandButton id="sortCapitalsButton" value="sort
capital">
- <rich:componentControl event="click"
target="table" operation="sort">
- <f:param value="columnCapital" />
- </rich:componentControl>
- </h:commandButton>
-
- <br/><br/>
-
- <metamer:attributes
value="#{richExtendedDataTableBean.attributes}" id="attributes" />
- </ui:define>
-
- </ui:composition>
-</html>
\ No newline at end of file