Author: ppitonak(a)redhat.com
Date: 2011-04-05 10:16:35 -0400 (Tue, 05 Apr 2011)
New Revision: 22368
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/keepSaved.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/keepSaved.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/keepSaved.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/keepSaved.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/keepSaved.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/keepSaved.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRepeatBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsibleSubTableBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichListBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/list.xhtml
Log:
https://issues.jboss.org/browse/RFPL-745
added pages for testing keepSaved in iteration components
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRepeatBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRepeatBean.java 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRepeatBean.java 2011-04-05
14:16:35 UTC (rev 22368)
@@ -149,7 +149,6 @@
attributes.remove("componentState");
attributes.remove("iterationState");
attributes.remove("iterationStatusVar");
- attributes.remove("keepSaved");
attributes.remove("rowKeyVar");
attributes.remove("rowKeyConverter");
attributes.remove("value");
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsibleSubTableBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsibleSubTableBean.java 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsibleSubTableBean.java 2011-04-05
14:16:35 UTC (rev 22368)
@@ -59,12 +59,11 @@
private transient UICollapsibleSubTable binding;
// true = model, false = empty table
private boolean state;
-
// facets
private Map<String, String> facets = new HashMap<String, String>();
-
// sorting
private ColumnSortingMap sorting = new ColumnSortingMap() {
+
private static final long serialVersionUID = 1L;
protected UIDataTableBase getBinding() {
@@ -75,10 +74,8 @@
return attributes;
}
};
-
// filtering
private Map<String, Object> filtering = new HashMap<String, Object>();
-
// expanded
private Map<List<Employee>, Boolean> expanded = new
HashMap<List<Employee>, Boolean>();
@@ -91,7 +88,7 @@
logger.debug("initializing bean " + getClass().getName());
attributes =
Attributes.getComponentAttributesFromFacesConfig(UICollapsibleSubTable.class,
getClass());
-
+
attributes.setAttribute("rendered", true);
attributes.setAttribute("rows", 5);
@@ -100,7 +97,6 @@
attributes.remove("columns");
attributes.remove("selection");
attributes.remove("filterVar");
- attributes.remove("keepSaved");
attributes.remove("iterationStatusVar");
attributes.remove("componentState");
attributes.remove("rowKeyVar");
@@ -122,7 +118,7 @@
lists = new ArrayList<List<Employee>>();
lists.add(men);
lists.add(women);
-
+
expanded.put(men, true);
expanded.put(women, true);
@@ -164,23 +160,23 @@
public Map<String, String> getFacets() {
return facets;
}
-
+
public UICollapsibleSubTable getBinding() {
return binding;
}
-
+
public void setBinding(UICollapsibleSubTable binding) {
this.binding = binding;
}
-
+
public ColumnSortingMap getSorting() {
return sorting;
}
-
+
public Map<String, Object> getFiltering() {
return filtering;
}
-
+
public Map<List<Employee>, Boolean> getExpanded() {
return expanded;
}
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichListBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichListBean.java 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichListBean.java 2011-04-05
14:16:35 UTC (rev 22368)
@@ -61,7 +61,6 @@
attributes.setAttribute("rows", 20);
// TODO has to be tested in other way
- attributes.remove("keepSaved");
attributes.remove("iterationStatusVar");
attributes.remove("rowKeyVar");
attributes.remove("stateVar");
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/keepSaved.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/keepSaved.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/keepSaved.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -0,0 +1,70 @@
+<?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">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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:param name="componentId" value="richDataTable" />
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head">
+ <h:outputStylesheet library="css" name="a4jRepeat.css"
/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <h:panelGrid columns="2">
+ keepSaved
+ <h:selectOneRadio id="keepSavedInput"
value="#{a4jRepeatBean.attributes['keepSaved'].value}"
onchange="submit()">
+ <f:selectItem itemValue=""
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <a4j:repeat id="richList"
keepSaved="#{a4jRepeatBean.attributes['keepSaved'].value}"
+ value="#{templateBean.dataTableModel}">
+
+ <h:inputText />
+
+ </a4j:repeat>
+
+ <br/>
+ <h:commandButton id="submitButton"
value="Submit"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter"/>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/list.xhtml 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/list.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -39,6 +39,10 @@
Simple page that contains <b>a4j:repeat</b> rendering a
table. Page contains input boxes for all repeat's attributes.
</metamer:testPageLink>
+ <metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
+ Page for testing attribute keepSaved of <b>a4j:repeat</b>.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/keepSaved.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/keepSaved.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/keepSaved.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -0,0 +1,78 @@
+<?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:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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:param name="componentId" value="richDataTable" />
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head"></ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <h:panelGrid columns="2">
+ keepSaved
+ <h:selectOneRadio id="keepSavedInput"
value="#{richSubTableBean.attributes['keepSaved'].value}"
onchange="submit()">
+ <f:selectItem itemValue=""
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:dataTable id="richDataTable"
value="#{richSubTableBean.lists}" var="list">
+
+ <rich:column id="columnSubTable" colspan="3">
+ <rich:collapsibleSubTableToggler id="subTableTC"
for="richSubTable"/>
+ <h:outputText value="#{list[0].sex == 'MALE' ?
'xxx' : 'yyy'}" />
+ </rich:column>
+
+ <rich:collapsibleSubTable id="richSubTable"
keepSaved="#{richSubTableBean.attributes['keepSaved'].value}"
+
value="#{templateBean.dataTableModel}" >
+
+ <rich:column id="columnInput">
+ <h:inputText />
+ </rich:column>
+
+ </rich:collapsibleSubTable>
+ </rich:dataTable>
+
+ <br/>
+ <h:commandButton id="submitButton"
value="Submit"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter"/>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/list.xhtml 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richCollapsibleSubTable/list.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -61,6 +61,10 @@
Page that contains filterable <b>rich:collapsibleSubTable</b>
(with model containing employees) and input boxes for all its attributes filterable by its
columns.
</metamer:testPageLink>
+ <metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
+ Page for testing attribute keepSaved of
<b>rich:collapsibleSubTable</b>.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/keepSaved.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/keepSaved.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/keepSaved.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -0,0 +1,72 @@
+<?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:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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:param name="componentId" value="richDataTable" />
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head">
+ <h:outputStylesheet library="css"
name="richDataGrid.css" />
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <h:panelGrid columns="2">
+ keepSaved
+ <h:selectOneRadio id="keepSavedInput"
value="#{richDataGridBean.attributes['keepSaved'].value}"
onchange="submit()">
+ <f:selectItem itemValue=""
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:dataGrid id="richDataGrid"
keepSaved="#{richDataGridBean.attributes['keepSaved'].value}"
+ value="#{templateBean.dataTableModel}"
columns="2">
+
+ <rich:column id="columnInput">
+ <h:inputText />
+ </rich:column>
+
+ </rich:dataGrid>
+
+ <br/>
+ <h:commandButton id="submitButton"
value="Submit"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter"/>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/list.xhtml 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataGrid/list.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -57,6 +57,10 @@
Page that contains <b>rich:dataGrid</b> (with model
containing employees) with <b>a4j:repeat</b> inside it.
</metamer:testPageLink>
+ <metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
+ Page for testing attribute keepSaved of
<b>rich:dataGrid</b>.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/keepSaved.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/keepSaved.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/keepSaved.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -0,0 +1,72 @@
+<?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:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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:param name="componentId" value="richDataTable" />
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head">
+ <h:outputStylesheet library="css"
name="richDataTable.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <h:panelGrid columns="2">
+ keepSaved
+ <h:selectOneRadio id="keepSavedInput"
value="#{richDataTableBean.attributes['keepSaved'].value}"
onchange="submit()">
+ <f:selectItem itemValue=""
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:dataTable id="richDataTable"
keepSaved="#{richDataTableBean.attributes['keepSaved'].value}"
+ value="#{templateBean.dataTableModel}" >
+
+ <rich:column id="columnInput">
+ <h:inputText />
+ </rich:column>
+
+ </rich:dataTable>
+
+ <br/>
+ <h:commandButton id="submitButton"
value="Submit"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter"/>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/list.xhtml 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/list.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -65,6 +65,10 @@
Page that contains filterable <b>rich:dataTable</b> (with
model containing employees) and input boxes for all its attributes.
</metamer:testPageLink>
+ <metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
+ Page for testing attribute keepSaved of
<b>rich:dataTable</b>.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/keepSaved.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/keepSaved.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/keepSaved.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -0,0 +1,84 @@
+<?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:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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:param name="componentId" value="richDataTable" />
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head">
+ <style type="text/css">
+ .rf-edt {
+ width: 151px !important;
+ height:
+ }
+ .rf-edt-c-columnInput {
+ width: 150px !important;
+ text-align: center;
+ }
+ .rf-edt-c {
+ height: 2em !important;
+ }
+ </style>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <h:panelGrid columns="2">
+ keepSaved
+ <h:selectOneRadio id="keepSavedInput"
value="#{richExtendedDataTableBean.attributes['keepSaved'].value}"
onchange="submit()">
+ <f:selectItem itemValue=""
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:extendedDataTable id="richEDT"
keepSaved="#{richExtendedDataTableBean.attributes['keepSaved'].value}"
+ value="#{templateBean.dataTableModel}"
>
+
+ <rich:column id="columnInput">
+ <h:inputText />
+ </rich:column>
+
+ </rich:extendedDataTable>
+
+ <br/>
+ <h:commandButton id="submitButton"
value="Submit"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter"/>
+
+ </ui:composition>
+</html>
\ No newline at end of file
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 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/list.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -68,6 +68,10 @@
<metamer:testPageLink id="selection"
outcome="selection" value="Selection">
Page that contains sample of <b>rich:extendedDataTable</b>
selection model
</metamer:testPageLink>
+
+ <metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
+ Page for testing attribute keepSaved of
<b>rich:extendedDataTable</b>.
+ </metamer:testPageLink>
</ui:define>
</ui:composition>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/keepSaved.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/keepSaved.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/keepSaved.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -0,0 +1,70 @@
+<?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:rich="http://richfaces.org/rich">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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:param name="componentId" value="richDataTable" />
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head">
+ <h:outputStylesheet library="css" name="richList.css"
/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ <h:panelGrid columns="2">
+ keepSaved
+ <h:selectOneRadio id="keepSavedInput"
value="#{richListBean.attributes['keepSaved'].value}"
onchange="submit()">
+ <f:selectItem itemValue=""
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:list id="richList"
keepSaved="#{richListBean.attributes['keepSaved'].value}"
+ value="#{templateBean.dataTableModel}"
type="unordered">
+
+ <h:inputText />
+
+ </rich:list>
+
+ <br/>
+ <h:commandButton id="submitButton"
value="Submit"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter"/>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/list.xhtml 2011-04-05
14:15:28 UTC (rev 22367)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richList/list.xhtml 2011-04-05
14:16:35 UTC (rev 22368)
@@ -39,6 +39,10 @@
Simple page that contains <b>rich:list</b> (with model
containing capitals) with bound dataScroller
</metamer:testPageLink>
+ <metamer:testPageLink id="keepSaved"
outcome="keepSaved" value="Keep Saved">
+ Page for testing attribute keepSaved of <b>rich:list</b>.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>