Author: lfryc(a)redhat.com
Date: 2011-04-08 04:21:10 -0400 (Fri, 08 Apr 2011)
New Revision: 22398
Added:
modules/tests/metamer/trunk/application/src/main/webapp/templates/a4jRegion.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Template.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java
Log:
added a4jRegion template (RFPL-1422)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Template.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Template.java 2011-04-08
07:25:17 UTC (rev 22397)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Template.java 2011-04-08
08:21:10 UTC (rev 22398)
@@ -47,6 +47,7 @@
HDATATABLE("hDataTable", "JSF Data Table",
"containerHDataTable:2:"),
HPANELGRID("hPanelGrid", "JSF Panel Grid",
"containerHPanelGrid:"),
UIREPEAT("uiRepeat", "UI Repeat",
"containerUiRepeat:1:"),
+ A4JREGION("a4jRegion", "A4J Region",
"containerA4JRegion:"),
A4JREPEAT("a4jRepeat", "A4J Repeat",
"containerA4JRepeat:1:");
/**
* identifier of a template
Added: modules/tests/metamer/trunk/application/src/main/webapp/templates/a4jRegion.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/templates/a4jRegion.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/templates/a4jRegion.xhtml 2011-04-08
08:21:10 UTC (rev 22398)
@@ -0,0 +1,39 @@
+<?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>
+
+ <fieldset>
+ <legend>a4j:region</legend>
+
+ <a4j:region id="containerA4JRegion">
+ <ui:decorate template="#{templateBean.nextTemplate}.xhtml" />
+ </a4j:region>
+ </fieldset>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java 2011-04-08
07:25:17 UTC (rev 22397)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java 2011-04-08
08:21:10 UTC (rev 22398)
@@ -95,9 +95,9 @@
*/
public static final long TIMEOUT = 5000;
@Inject
- @Templates({"plain", "richAccordion", "richDataTable",
"richCollapsibleSubTable", "richExtendedDataTable",
+ @Templates({ "plain", "richAccordion", "richDataTable",
"richCollapsibleSubTable", "richExtendedDataTable",
"richDataGrid", "richList", "richCollapsiblePanel",
"richPanel", "richTabPanel", "richTogglePanel",
- "richPopupPanel", "a4jRepeat", "hDataTable",
"hPanelGrid", "uiRepeat"})
+ "richPopupPanel", "a4jRegion", "a4jRepeat",
"hDataTable", "hPanelGrid", "uiRepeat" })
private TemplatesList template;
/**