JBoss Rich Faces SVN: r17816 - in root/tests/metamer/trunk/src/main: webapp/components/a4jCommandLink and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:10:54 -0400 (Sat, 10 Jul 2010)
New Revision: 17816
Added:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplateNameConverter.java
Modified:
root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
Log:
https://jira.jboss.org/jira/browse/RFPL-466
* added bookmarking
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplateNameConverter.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplateNameConverter.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplateNameConverter.java 2010-07-10 18:10:54 UTC (rev 17816)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp;
+
+import javax.faces.FacesException;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.convert.FacesConverter;
+
+/**
+ * Converter used for view parameter "template".
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@FacesConverter(value = "templateNameConverter")
+public class TemplateNameConverter implements Converter {
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object getAsObject(FacesContext context, UIComponent component, String value) {
+ try {
+ return Template.valueOf(value.toUpperCase());
+ } catch (IllegalArgumentException iae) {
+ throw new FacesException("Cannot convert parameter \"" + value + "\" to the name of template.", iae);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getAsString(FacesContext context, UIComponent component, Object value) {
+ if (value instanceof String) {
+ return (String) value;
+ }
+
+ if (value instanceof Template) {
+ return ((Template) value).toString();
+ }
+
+ throw new FacesException("Cannot convert parameter \"" + value + "\" to the name of template.");
+ }
+}
Modified: root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:10:10 UTC (rev 17815)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:10:54 UTC (rev 17816)
@@ -5,6 +5,14 @@
<ui:composition template="#{templateBean.template}">
+ <ui:define name="viewParams">
+ <f:metadata>
+ <f:viewParam name="template" value="#{templateBean.templateId}">
+ <f:converter converterId="templateNameConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
<ui:define name="outOfTemplateBefore">
</ui:define>
@@ -33,7 +41,7 @@
style="#{a4jLinkBean.attributes['style']}" styleClass="#{a4jLinkBean.attributes['styleClass']}"
tabindex="#{a4jLinkBean.attributes['tabindex']}" target="#{a4jLinkBean.attributes['target']}"
title="#{a4jLinkBean.attributes['title']}" type="#{a4jLinkBean.attributes['type']}"
- value="#{a4jLinkBean.attributes['value']}" execute="@form"/>
+ value="#{a4jLinkBean.attributes['value']}" execute="@form" />
</h:panelGrid>
@@ -55,7 +63,8 @@
</h:inputText>
<h:graphicImage value="/resources/images/help.png"
title="#{a4jLinkBean.attributes.getHelp(entry.key)}"
- rendered="#{a4jLinkBean.attributes.getHelp(entry.key) != null}" height="28px;" style="vertical-align: middle;"/>
+ rendered="#{a4jLinkBean.attributes.getHelp(entry.key) != null}" height="28px;"
+ style="vertical-align: middle;" />
</h:panelGroup>
</c:forEach>
</h:panelGrid>
Modified: root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:10:10 UTC (rev 17815)
+++ root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:10:54 UTC (rev 17816)
@@ -7,6 +7,9 @@
<title><ui:insert name="pageTitle">Testing Application</ui:insert></title>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
<!-- <h:outputStylesheet library="css" name="common.css" />-->
+ <ui:insert name="viewParams">
+
+ </ui:insert>
</h:head>
<h:body>
@@ -28,7 +31,7 @@
</div>
<h:panelGroup id="a4jLogPanel" layout="block">
- <a4j:log id="a4jLog" height="300px" rendered="#{richBean.log}"/>
+ <a4j:log id="a4jLog" height="300px" rendered="#{richBean.log}" />
</h:panelGroup>
<div id="footer"><ui:insert name="footer">
14 years, 6 months
JBoss Rich Faces SVN: r17815 - in root/tests/metamer/trunk/src/main: webapp/components/a4jCommandLink and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:10:10 -0400 (Sat, 10 Jul 2010)
New Revision: 17815
Modified:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java
root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
Log:
https://jira.jboss.org/jira/browse/RFPL-466
* added log
* checkboxes in header fixed
* a4j:commandLink fixed (default behavior changed)
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java 2010-07-10 18:09:21 UTC (rev 17814)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java 2010-07-10 18:10:10 UTC (rev 17815)
@@ -68,7 +68,7 @@
attributes.put("action", "#{a4jLinkBean.first6CharsAction}");
attributes.put("actionListener", "#{a4jLinkBean.toUpperCaseActionListener}");
attributes.put("render", "output1 output2 output3");
-
+
}
/**
@@ -133,9 +133,13 @@
* @return null since no navigation should be performed
*/
public String first6CharsAction() {
- int endIndex = input.length() > ACTION_STRING_LENGTH ? ACTION_STRING_LENGTH : input.length();
- input2 = (String) input.subSequence(0, endIndex);
- return null;
+ if (input == null) {
+ return "";
+ } else {
+ int endIndex = input.length() > ACTION_STRING_LENGTH ? ACTION_STRING_LENGTH : input.length();
+ input2 = (String) input.subSequence(0, endIndex);
+ return null;
+ }
}
/**
@@ -159,8 +163,12 @@
* @return null since no navigation should be performed
*/
public String toUpperCaseAction() {
- input2 = input.toUpperCase();
- return null;
+ if (input == null) {
+ return "";
+ } else {
+ input2 = input.toUpperCase();
+ return null;
+ }
}
/**
@@ -170,8 +178,12 @@
* an event representing the activation of a user interface component (not used)
*/
public void first6CharsActionListener(ActionEvent event) {
- int endIndex = input.length() > ACTION_STRING_LENGTH ? ACTION_STRING_LENGTH : input.length();
- input3 = (String) input.subSequence(0, endIndex);
+ if (input == null) {
+ input3 = "";
+ } else {
+ int endIndex = input.length() > ACTION_STRING_LENGTH ? ACTION_STRING_LENGTH : input.length();
+ input3 = (String) input.subSequence(0, endIndex);
+ }
}
/**
@@ -195,7 +207,11 @@
* an event representing the activation of a user interface component (not used)
*/
public void toUpperCaseActionListener(ActionEvent event) {
- input3 = input.toUpperCase();
+ if (input == null) {
+ input3 = "";
+ } else {
+ input3 = input.toUpperCase();
+ }
}
}
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java 2010-07-10 18:09:21 UTC (rev 17814)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java 2010-07-10 18:10:10 UTC (rev 17815)
@@ -33,7 +33,7 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
-import javax.servlet.http.HttpServletRequest;
+import javax.faces.model.SelectItem;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
@@ -52,19 +52,21 @@
private static final long serialVersionUID = 5590865106686406193L;
private Logger logger;
private String skin;
- private String skinning;
- private String skinningClasses;
- private String skinningSelect;
+ private List<SelectItem> skinningList;
+ private Skinning skinning;
private List<String> skins;
private boolean reDefault;
private boolean reComponent;
- private boolean reAttributes;
private boolean reTests;
private boolean log;
private String component;
private Map<String, String> components; // [a4jCommandLink; A4J Command Link]
private String container;
+ public enum Skinning {
+ NONE, SKINNING, SKINNING_CLASSES
+ }
+
@PostConstruct
public void init() {
logger = LoggerFactory.getLogger(RichBean.class);
@@ -74,11 +76,13 @@
component = "none";
container = "plain";
skin = "blueSky";
- skinning = "disable";
- skinningClasses = "disable";
+ skinningList = new ArrayList<SelectItem>();
+ skinningList.add(new SelectItem(Skinning.NONE));
+ skinningList.add(new SelectItem(Skinning.SKINNING));
+ skinningList.add(new SelectItem(Skinning.SKINNING_CLASSES));
+ skinning = Skinning.NONE;
reTests = false;
reComponent = true;
- reAttributes = true;
}
private Map<String, String> createComponentsMap() {
@@ -128,7 +132,7 @@
}
public String getSkinning() {
- if (skinningSelect.equals("skinning")) {
+ if (skinning == Skinning.SKINNING) {
return "enabled";
} else {
return "disabled";
@@ -136,11 +140,11 @@
}
public void setSkinning(String skinning) {
- this.skinning = skinning;
+ this.skinning = Skinning.valueOf(skinning);
}
-
+
public String getSkinningClasses() {
- if (skinningSelect.equals("skinning classes")) {
+ if (skinning == Skinning.SKINNING_CLASSES) {
return "enabled";
} else {
return "disabled";
@@ -148,9 +152,13 @@
}
public void setSkinningClasses(String skinningClasses) {
- this.skinningClasses = skinningClasses;
+ this.skinning = Skinning.valueOf(skinningClasses);
}
+ public List<SelectItem> getSkinningList() {
+ return skinningList;
+ }
+
public void setSkins(List<String> skins) {
this.skins = skins;
}
@@ -175,14 +183,6 @@
return reComponent;
}
- public void setReAttributes(boolean reAttributes) {
- this.reAttributes = reAttributes;
- }
-
- public boolean isReAttributes() {
- return reAttributes;
- }
-
public void setLog(boolean log) {
this.log = log;
}
@@ -233,14 +233,6 @@
this.reTests = reTests;
}
- public String getSkinningSelect() {
- return skinningSelect;
- }
-
- public void setSkinningSelect(String skinningSelect) {
- this.skinningSelect = skinningSelect;
- }
-
public String getListPage(String component) {
if ("none".equals(component)) {
return "/index?faces-redirect=true";
Modified: root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:09:21 UTC (rev 17814)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:10:10 UTC (rev 17815)
@@ -33,7 +33,7 @@
style="#{a4jLinkBean.attributes['style']}" styleClass="#{a4jLinkBean.attributes['styleClass']}"
tabindex="#{a4jLinkBean.attributes['tabindex']}" target="#{a4jLinkBean.attributes['target']}"
title="#{a4jLinkBean.attributes['title']}" type="#{a4jLinkBean.attributes['type']}"
- value="#{a4jLinkBean.attributes['value']}" />
+ value="#{a4jLinkBean.attributes['value']}" execute="@form"/>
</h:panelGrid>
Modified: root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml 2010-07-10 18:09:21 UTC (rev 17814)
+++ root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml 2010-07-10 18:10:10 UTC (rev 17815)
@@ -8,7 +8,7 @@
<h:panelGrid columns="2" style="width: 180px;">
<h:outputLabel id="a4jLogLabel" for="a4jLogCheckbox" value="a4j:log" />
<h:selectBooleanCheckbox id="a4jLogCheckbox" value="#{richBean.log}">
- <a4j:ajax event="change" execute="@this" render="a4jLog" />
+ <a4j:ajax event="change" execute="@this" render="a4jLogPanel" />
</h:selectBooleanCheckbox>
<h:outputLabel id="a4jStatusLabel" for="a4jStatus" value="a4j:status" />
<a4j:status id="a4jStatus">
@@ -20,13 +20,10 @@
<h:panelGrid columns="2">
<h:outputLabel id="reTestsCheckboxLabel" value="Display tests" for="reTestsCheckbox" />
- <h:selectBooleanCheckbox id="reTestsCheckbox" value="#{richBean.reTests}" onchange="submit();" />
+ <h:selectBooleanCheckbox id="reTestsCheckbox" value="#{richBean.reTests}" onchange="submit();" disabled="true"/>
<h:outputLabel id="reComponentCheckboxLabel" value="Display component" for="reComponentCheckbox" />
<h:selectBooleanCheckbox id="reComponentCheckbox" value="#{richBean.reComponent}" onchange="submit();" />
-
- <h:outputLabel id="reAttributesCheckboxLabel" value="Didplay Properties" for="reAttributesCheckbox" />
- <h:selectBooleanCheckbox id="reAttributesCheckbox" value="#{richBean.reAttributes}" onchange="submit();" />
</h:panelGrid>
<h:panelGrid columns="1">
@@ -36,10 +33,8 @@
<f:selectItems value="#{richBean.skins}" />
</h:selectOneMenu>
- <h:selectOneMenu id="skinningSelect" value="#{richBean.skinningSelect}" style="width: 130px;">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="skinning" itemValue="skinning" />
- <f:selectItem itemLabel="skinningClasses" itemValue="skinning classes" />
+ <h:selectOneMenu id="skinningSelect" value="#{richBean.skinning}" style="width: 130px;">
+ <f:selectItems value="#{richBean.skinningList}" />
</h:selectOneMenu>
</h:panelGrid>
Modified: root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:09:21 UTC (rev 17814)
+++ root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:10:10 UTC (rev 17815)
@@ -14,9 +14,9 @@
<div class="header"><ui:include src="/templates/header.xhtml" /></div>
<div class="content">
- <div id="controlPoint1">Control1</div>
+ <div class="messages"><rich:messages /></div>
- <h:panelGroup id="commonGrid" layout="block">
+ <h:panelGroup id="commonGrid" layout="block" rendered="#{richBean.reComponent}">
<div><b>Status: </b> <input style="border: 0px; color: black; width: 700px" readonly="true"
id="statusMessage" /></div>
<br />
@@ -24,9 +24,13 @@
<ui:insert name="template" />
</h:form></div>
</h:panelGroup> <br />
- <div id="controlPoint2">Control2</div>
+
</div>
+ <h:panelGroup id="a4jLogPanel" layout="block">
+ <a4j:log id="a4jLog" height="300px" rendered="#{richBean.log}"/>
+ </h:panelGroup>
+
<div id="footer"><ui:insert name="footer">
<hr />
RichFaces #{a4j.version}
14 years, 6 months
JBoss Rich Faces SVN: r17814 - in root/tests/metamer/trunk/src/main: java/org/richfaces/testapp/bean and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:09:21 -0400 (Sat, 10 Jul 2010)
New Revision: 17814
Added:
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandLinkBean.properties
root/tests/metamer/trunk/src/main/webapp/resources/images/help.png
Modified:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java
root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
Log:
https://jira.jboss.org/jira/browse/RFPL-466
* added attributes' help functionality
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java 2010-07-10 18:08:18 UTC (rev 17813)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java 2010-07-10 18:09:21 UTC (rev 17814)
@@ -27,8 +27,11 @@
import java.beans.PropertyDescriptor;
import java.util.Collection;
import java.util.Collections;
+import java.util.Enumeration;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
+import java.util.ResourceBundle;
import java.util.Set;
import java.util.TreeMap;
@@ -52,23 +55,26 @@
private Logger logger;
private Map<String, Object> attributes;
+ private Map<String, String> helpMap;
private Set<String> excludeSet;
/**
* Constructor for class Attributes.
*
- * @param clazz
+ * @param componentClass
* class object of a JSF component whose attributes will be stored
+ * @param beanClass
+ * class object of a managed bean
*/
- public Attributes(Class<? extends UIComponentBase> clazz) {
+ public Attributes(Class<? extends UIComponentBase> componentClass, Class<?> beanClass) {
logger = LoggerFactory.getLogger(Attributes.class);
- logger.info("creating attributes map for " + clazz);
+ logger.info("creating attributes map for " + componentClass);
PropertyDescriptor[] descriptors = null;
try {
- descriptors = Introspector.getBeanInfo(clazz).getPropertyDescriptors();
+ descriptors = Introspector.getBeanInfo(componentClass).getPropertyDescriptors();
} catch (IntrospectionException e) {
- logger.error("Could not get a list with attributes of class" + clazz);
+ logger.error("Could not get a list with attributes of class" + componentClass);
attributes = Collections.emptyMap();
return;
}
@@ -84,9 +90,34 @@
}
logger.info(attributes.keySet().toString());
+
+ helpMap = loadHelp(beanClass);
}
/**
+ * Loads help for given managed bean.
+ *
+ * @param beanClass
+ * class object of a managed bean
+ * @return map where key is attribute's name and value is help for this attribute
+ */
+ private Map<String, String> loadHelp(Class<?> beanClass) {
+ ResourceBundle rb = ResourceBundle.getBundle(beanClass.getName());
+ Enumeration<String> keys = rb.getKeys();
+ String key = null;
+ Map<String, String> result = new HashMap<String, String>();
+
+ while (keys.hasMoreElements()) {
+ key = keys.nextElement();
+ if (key.startsWith("help.")) {
+ result.put(key.replaceFirst("help.", ""), rb.getString(key));
+ }
+ }
+
+ return result;
+ }
+
+ /**
* {@inheritDoc}
*/
public void clear() {
@@ -182,7 +213,7 @@
}
Set<String> set = new HashSet<String>();
-
+
set.add("attributes");
set.add("actionExpression");
set.add("actionListeners");
@@ -209,6 +240,30 @@
}
/**
+ * Setter for help.
+ *
+ * @param attribute
+ * name of an attribute
+ * @param help
+ * description of an attribute
+ */
+ public void setHelp(String attribute, String help) {
+ helpMap.put(attribute, help);
+ }
+
+ /**
+ * Getter for help.
+ *
+ * @param attribute
+ * name of an attribute whose help will be retrieved
+ * @return description of an attribute
+ */
+ public String getHelp(String attribute) {
+ String help = helpMap.get(attribute);
+ return help;
+ }
+
+ /**
* Determines whether given object represents an EL expression, e.g. #{bean.property}.
*
* @param value
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java 2010-07-10 18:08:18 UTC (rev 17813)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java 2010-07-10 18:09:21 UTC (rev 17814)
@@ -58,9 +58,9 @@
@PostConstruct
public void init() {
logger = LoggerFactory.getLogger(A4JCommandLinkBean.class);
- logger.debug("initializing bean");
+ logger.info("initializing bean " + getClass().getName());
- attributes = new Attributes(HtmlCommandLink.class);
+ attributes = new Attributes(HtmlCommandLink.class, getClass());
attributes.put("value", "command link");
attributes.put("rendered", "true");
@@ -68,6 +68,7 @@
attributes.put("action", "#{a4jLinkBean.first6CharsAction}");
attributes.put("actionListener", "#{a4jLinkBean.toUpperCaseActionListener}");
attributes.put("render", "output1 output2 output3");
+
}
/**
Added: root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandLinkBean.properties
===================================================================
--- root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandLinkBean.properties (rev 0)
+++ root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandLinkBean.properties 2010-07-10 18:09:21 UTC (rev 17814)
@@ -0,0 +1,4 @@
+help.rendered=true or false
+help.disabled=true or false
+help.action=#{a4jLinkBean.first6CharsAction} #{a4jLinkBean.doubleStringAction} #{a4jLinkBean.toUpperCaseAction}
+help.actionListener=#{a4jLinkBean.first6CharsActionListener} #{a4jLinkBean.doubleStringActionListener} #{a4jLinkBean.toUpperCaseActionListener}
Modified: root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:09:21 UTC (rev 17814)
@@ -45,14 +45,20 @@
</ui:define>
<ui:define name="outOfTemplateAfter">
- <h:panelGrid id="attributes" columns="4">
- <c:forEach items="#{a4jLinkBean.attributes}" var="entry">
- <h:outputLabel id="#{entry.key}Label" value="#{entry.key}" />
- <h:inputText id="#{entry.key}Input" value="#{a4jLinkBean.attributes[entry.key]}">
- <a4j:ajax event="blur" render="panel" />
- </h:inputText>
- </c:forEach>
- </h:panelGrid>
+ <h:panelGrid id="attributes" columns="4" style="">
+ <c:forEach items="#{a4jLinkBean.attributes}" var="entry">
+
+ <h:outputLabel id="#{entry.key}Label" value="#{entry.key}" />
+ <h:panelGroup layout="block">
+ <h:inputText id="#{entry.key}Input" value="#{a4jLinkBean.attributes[entry.key]}">
+ <a4j:ajax event="blur" render="panel" />
+ </h:inputText>
+ <h:graphicImage value="/resources/images/help.png"
+ title="#{a4jLinkBean.attributes.getHelp(entry.key)}"
+ rendered="#{a4jLinkBean.attributes.getHelp(entry.key) != null}" height="28px;" style="vertical-align: middle;"/>
+ </h:panelGroup>
+ </c:forEach>
+ </h:panelGrid>
</ui:define>
</ui:composition>
Added: root/tests/metamer/trunk/src/main/webapp/resources/images/help.png
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/images/help.png (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/images/help.png 2010-07-10 18:09:21 UTC (rev 17814)
@@ -0,0 +1,16 @@
+�PNG
+
+
+��p��f$�"�$ -//��ܹ3y���Q]�c�9��B��JQ���k�����MIT�|��˗/�������|>O&�e� ��"hs����毭�- ��D"�3lm����3�!,�#J���p�©���v�j��?�����.�\JR&����J�^ר�O��=w�� �`��=��Ś����`6�������?q�ܹ���2��?��q��-K}u���#`k=��x�# V?sئ䓎�{C����Z�K'�Ӊ�W��������m�,��!,
+�gq9{�lwkk�H������������V�a?��6�x.�U!oe�%�GP��x9�!d�٬����^�qJ�'C�&ֈD Ax�@����ݧ(
+��K���[MG�h��+�U���$��_�\2�j�4�c#���~����ltvv6��χ9��M��r�(c��z�^����"c�R5�%"�f>)���}(Pm���UU���A`��� �dȨ[Ζ��J/�F����nJD6$>~EƇ ��}a�x�y9��)����O:���:�V+�H��TdS ��w�������E������f�My2fmm
+�
+���6J��d
+�n0���k��/���f.>;�[�2�_3�p���I�1Hh� ����Y�^��/����IU�Oxt|�'0�C_K�62�����p0�^O$GFF��P�Y���\>t*m�{ӎ'b`���>���X����h�ʃ�C�E��������4666�v����ʾp�b�{&�-��" @�m���C��<�z���`lQ����5E�ċ^$3Mj����655����*�����Tr�m�5��g�YŬ�tA�/���i����fff ��G�ݿr�ʏ�V�ʁKIN>�< ��A��|
+�B佮�a p�ڵk?��a�S�PR�́�H
+�qog_$!ǟ())A.��dQ|�Ú��$,��]�Ӫ[�b}}������������j/�D*�J����thxx8�w��0J�
+�h]�[#:O�?o�A<3q�(*�3e��X~IQC�:����k������m��C,�y���%\�K���~D��5
+0
\ No newline at end of file
14 years, 6 months
JBoss Rich Faces SVN: r17813 - in root/tests/metamer/trunk: src/main/assembly and 15 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:08:18 -0400 (Sat, 10 Jul 2010)
New Revision: 17813
Added:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Template.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/TemplateBean.java
root/tests/metamer/trunk/src/main/webapp/components/
root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/
root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/list.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
root/tests/metamer/trunk/src/main/webapp/resources/css/a4jCommandLink.css
root/tests/metamer/trunk/src/main/webapp/resources/flash/
root/tests/metamer/trunk/src/main/webapp/resources/flash/text.swf
root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/plain.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/reddiv.xhtml
Removed:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf
root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css
Modified:
root/tests/metamer/trunk/pom.xml
root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java
root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml
root/tests/metamer/trunk/src/main/webapp/index.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
Log:
https://jira.jboss.org/jira/browse/RFPL-466
* project's structure changed
* attributes of any JSF component are being obtained automatically
* prepared test cases removed temporarily
* simpler xhtml pages
* fixed tomcat6 assembly descriptor
* phase listener refactored to use logger
Modified: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/pom.xml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -58,13 +58,13 @@
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>2.0.2-b10</version>
+ <version>2.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>2.0.2-b10</version>
+ <version>2.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -100,6 +100,17 @@
<version>2.5</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>1.2</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.el</groupId>
+ <artifactId>jboss-el</artifactId>
+ <version>1.0_02.CR5</version>
+ </dependency>
</dependencies>
<build>
Modified: root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml
===================================================================
--- root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -49,6 +49,9 @@
<scope>provided</scope>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>WEB-INF/lib</outputDirectory>
+ <excludes>
+ <exclude>javax.el:el-api</exclude>
+ </excludes>
</dependencySet>
</dependencySets>
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attributes.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,261 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp;
+
+import java.beans.IntrospectionException;
+import java.beans.Introspector;
+import java.beans.PropertyDescriptor;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
+
+import javax.el.ELContext;
+import javax.el.MethodExpression;
+import javax.faces.component.UIComponentBase;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.jboss.el.ExpressionFactoryImpl;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Representation of all attributes of a JSF component.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+public class Attributes implements Map<String, Object> {
+
+ private Logger logger;
+ private Map<String, Object> attributes;
+ private Set<String> excludeSet;
+
+ /**
+ * Constructor for class Attributes.
+ *
+ * @param clazz
+ * class object of a JSF component whose attributes will be stored
+ */
+ public Attributes(Class<? extends UIComponentBase> clazz) {
+ logger = LoggerFactory.getLogger(Attributes.class);
+ logger.info("creating attributes map for " + clazz);
+
+ PropertyDescriptor[] descriptors = null;
+ try {
+ descriptors = Introspector.getBeanInfo(clazz).getPropertyDescriptors();
+ } catch (IntrospectionException e) {
+ logger.error("Could not get a list with attributes of class" + clazz);
+ attributes = Collections.emptyMap();
+ return;
+ }
+
+ attributes = new TreeMap<String, Object>();
+ // not all attributes of given class are needed
+ excludeSet = getExcludeSet();
+
+ for (PropertyDescriptor descriptor : descriptors) {
+ if (!excludeSet.contains(descriptor.getName())) {
+ attributes.put(descriptor.getName(), null);
+ }
+ }
+
+ logger.info(attributes.keySet().toString());
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void clear() {
+ attributes.clear();
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean containsKey(Object key) {
+ return attributes.containsKey(key);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean containsValue(Object value) {
+ return attributes.containsKey(value);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Set<java.util.Map.Entry<String, Object>> entrySet() {
+ return attributes.entrySet();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object get(Object key) {
+ return attributes.get(key);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isEmpty() {
+ return attributes.isEmpty();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Set<String> keySet() {
+ return attributes.keySet();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object put(String key, Object value) {
+ return attributes.put(key, value);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void putAll(Map<? extends String, ? extends Object> m) {
+ attributes.putAll(m);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object remove(Object key) {
+ return attributes.remove(key);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public int size() {
+ return attributes.size();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Collection<Object> values() {
+ return attributes.values();
+ }
+
+ /**
+ * Getter for exclude set.
+ *
+ * @return set containing all attributes of a JSF component that cannot/shouldn't be set on page.
+ */
+ private Set<String> getExcludeSet() {
+ if (excludeSet != null) {
+ return excludeSet;
+ }
+
+ Set<String> set = new HashSet<String>();
+
+ set.add("attributes");
+ set.add("actionExpression");
+ set.add("actionListeners");
+ set.add("children");
+ set.add("childCount");
+ set.add("class");
+ set.add("clientBehaviors");
+ set.add("clientId");
+ set.add("defaultEventName");
+ set.add("eventNames");
+ set.add("facetCount");
+ set.add("facets");
+ set.add("facetsAndChildren");
+ set.add("family");
+ set.add("id");
+ set.add("inView");
+ set.add("namingContainer");
+ set.add("parent");
+ set.add("rendererType");
+ set.add("rendersChildren");
+ set.add("resourceBundleMap");
+ set.add("transient");
+ return set;
+ }
+
+ /**
+ * Determines whether given object represents an EL expression, e.g. #{bean.property}.
+ *
+ * @param value
+ * value of a property of tested JSF component
+ * @return true if object is a string representing an expression, e.g. #{bean.property}, false otherwise
+ */
+ private boolean isStringEL(Object value) {
+ if (!(value instanceof String)) {
+ return false;
+ }
+
+ return ((String) value).matches("#\\{.*\\}");
+ }
+
+ /**
+ * An action for tested JSF component. Can be modified dynamically.
+ *
+ * @return outcome of an action or null if no navigation should be performed
+ */
+ public String action() {
+ ELContext elContext = FacesContext.getCurrentInstance().getELContext();
+ MethodExpression method = null;
+ String outcome = (String) attributes.get("action");
+
+ if (isStringEL(outcome)) {
+ method = new ExpressionFactoryImpl().createMethodExpression(elContext, outcome, String.class, new Class[0]);
+ return (String) method.invoke(elContext, null);
+ } else {
+ return outcome;
+ }
+ }
+
+ /**
+ * An action listener for tested JSF component. Can be modified dynamically.
+ *
+ * @param event
+ * event representing the activation of a user interface component
+ */
+ public void actionListener(ActionEvent event) {
+ ELContext elContext = FacesContext.getCurrentInstance().getELContext();
+ MethodExpression method = null;
+ String listener = (String) attributes.get("actionListener");
+
+ if (isStringEL(listener)) {
+ method = new ExpressionFactoryImpl().createMethodExpression(elContext, listener, void.class,
+ new Class[] { ActionEvent.class });
+ method.invoke(elContext, new Object[] { event });
+ }
+ }
+}
Deleted: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,233 +0,0 @@
-/*******************************************************************************
- * 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.
- *******************************************************************************/
-
-package org.richfaces.testapp;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.annotation.PostConstruct;
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-import javax.faces.context.FacesContext;
-import javax.servlet.http.HttpSession;
-
-/**
- *
- *
- * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
- * @version $Revision$
- */
-@ManagedBean
-@SessionScoped
-public class RichBean {
-
- private String skin;
- private String skinning;
- private String skinningClasses;
- private String skinningSelect;
- private List<String> skins;
- private boolean reDefault;
- private boolean reComponent;
- private boolean reAttributes;
- private boolean reTests;
- private boolean log;
- private String component;
- private String container;
-
- @PostConstruct
- public void init() {
- skins = new ArrayList<String>();
- skins.add("DEFAULT");
- skins.add("NULL");
- skins.add("blueSky");
- skins.add("classic");
- skins.add("deepMarine");
- skins.add("emeraldTown");
- skins.add("japanCherry");
- skins.add("plain");
- skins.add("ruby");
- skins.add("wine");
- component = "none";
- container = "plain";
- skin = "DEFAULT";
- skinning = "disable";
- skinningClasses = "disable";
- reTests = true;
- reComponent = true;
- reAttributes = true;
- }
-
- /**
- * Getter for user's skin.
- *
- * @return a RichFaces skin
- */
- public String getSkin() {
- return skin;
- }
-
- /**
- * Setter for user's skin.
- *
- * @param skin
- * a RichFaces skin
- */
- public void setSkin(String skin) {
- this.skin = skin;
- }
-
- public String getSkinning() {
- if (skinningSelect.equals("skinning")) {
- return "enabled";
- } else {
- return "disabled";
- }
- }
-
- public void setSkinning(String skinning) {
- this.skinning = skinning;
- }
-
- public String getSkinningClasses() {
- if (skinningSelect.equals("skinning classes")) {
- return "enabled";
- } else {
- return "disabled";
- }
- }
-
- public void setSkinningClasses(String skinningClasses) {
- this.skinningClasses = skinningClasses;
- }
-
- public void setSkins(List<String> skins) {
- this.skins = skins;
- }
-
- public List<String> getSkins() {
- return skins;
- }
-
- public void setReDefault(boolean reDefault) {
- this.reDefault = reDefault;
- }
-
- public boolean isReDefault() {
- return reDefault;
- }
-
- public void setReComponent(boolean reComponent) {
- this.reComponent = reComponent;
- }
-
- public boolean isReComponent() {
- return reComponent;
- }
-
- public void setReAttributes(boolean reAttributes) {
- this.reAttributes = reAttributes;
- }
-
- public boolean isReAttributes() {
- return reAttributes;
- }
-
- public void setLog(boolean log) {
- this.log = log;
- }
-
- public boolean isLog() {
- return log;
- }
-
- public void setComponent(String component) {
- this.component = component;
- }
-
- public String getComponent() {
- return component;
- }
-
- public String getContainer() {
- return container;
- }
-
- public void setContainer(String container) {
- this.container = container;
- }
-
- public boolean isReTests() {
- return reTests;
- }
-
- public void setReTests(boolean reTests) {
- this.reTests = reTests;
- }
-
- public String getSkinningSelect() {
- return skinningSelect;
- }
-
- public void setSkinningSelect(String skinningSelect) {
- this.skinningSelect = skinningSelect;
- }
-
- public String getComponentPage() {
- if (component.equals("none")) {
- return "/none.xhtml";
- } else {
- return String.format("/%s/%s.xhtml", component, container);
- }
- }
-
- public String getTestsPage() {
- if (component.equals("none")) {
- return "/blank.xhtml";
- } else {
- return String.format("/%s/tests.xhtml", component);
- }
- }
-
- public String getAttributesPage() {
- if (component.equals("none")) {
- return "/blank.xhtml";
- } else {
- return String.format("/%s/attributes.xhtml", component);
- }
- }
-
- public String invalidateSession() {
- Object session = FacesContext.getCurrentInstance().getExternalContext().getSession(false);
-
- if (session == null) {
- return "/index";
- }
-
- if (session instanceof HttpSession) {
- ((HttpSession) session).invalidate();
- return "/index";
- }
-
- throw new IllegalStateException();
- }
-}
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,22 +1,63 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
package org.richfaces.testapp;
-import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * A phase listener that notifies at the beginning and ending of processing for each standard phase of the request
+ * processing lifecycle.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
public class RichPhaseListener implements javax.faces.event.PhaseListener {
private static final long serialVersionUID = 9026842190917014131L;
+ private Logger logger = LoggerFactory.getLogger(RichPhaseListener.class);
+ /**
+ * {@inheritDoc}
+ */
public void afterPhase(PhaseEvent event) {
- FacesContext.getCurrentInstance().getExternalContext().log("AFTER - " + event.getPhaseId());
+ logger.info("AFTER - " + event.getPhaseId());
}
+ /**
+ * {@inheritDoc}
+ */
public void beforePhase(PhaseEvent event) {
- FacesContext.getCurrentInstance().getExternalContext().log("BEFORE - " + event.getPhaseId());
+ logger.info("BEFORE - " + event.getPhaseId());
}
+ /**
+ * {@inheritDoc}
+ */
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Template.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Template.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Template.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,74 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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 library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+package org.richfaces.testapp;
+
+/**
+ * Kids of templates that can be put in harness.
+ * @author carcasser
+ *
+ */
+public enum Template {
+ PLAIN ("plain", "", "Plain"),
+ RED_DIV ("reddiv", "", "Red div");
+
+ private String name;
+
+ private String prefix;
+
+ private String desc;
+
+ /**
+ * Private constructor.
+ *
+ * @param name
+ * @param prefix
+ */
+ private Template(String name, String prefix, String desc) {
+ this.name = name;
+ this.prefix = prefix;
+ this.desc = desc;
+ }
+
+ /**
+ * Gets value of name field.
+ * @return value of name field
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Gets value of prefix field.
+ * @return value of prefix field
+ */
+ public String getPrefix() {
+ return prefix;
+ }
+
+ /**
+ * Gets value of desc field.
+ * @return value of desc field
+ */
+ public String getDesc() {
+ return desc;
+ }
+
+}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandLinkBean.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,200 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp.bean;
+
+import java.io.Serializable;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.event.ActionEvent;
+
+import org.richfaces.component.html.HtmlCommandLink;
+import org.richfaces.testapp.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for a4j:commandLink.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "a4jLinkBean")
+@SessionScoped
+public class A4JCommandLinkBean implements Serializable {
+
+ private static final long serialVersionUID = -2556076843426776944L;
+ private static final int ACTION_STRING_LENGTH = 6;
+ private static Logger logger;
+ private Attributes attributes;
+ private String input;
+ private String input2;
+ private String input3;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(A4JCommandLinkBean.class);
+ logger.debug("initializing bean");
+
+ attributes = new Attributes(HtmlCommandLink.class);
+
+ attributes.put("value", "command link");
+ attributes.put("rendered", "true");
+ attributes.put("disabled", "false");
+ attributes.put("action", "#{a4jLinkBean.first6CharsAction}");
+ attributes.put("actionListener", "#{a4jLinkBean.toUpperCaseActionListener}");
+ attributes.put("render", "output1 output2 output3");
+ }
+
+ /**
+ * Getter for attributes.
+ *
+ * @return A map containing all attributes of tested component. Name of the component is key in the map.
+ */
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ /**
+ * Setter for attributes.
+ *
+ * @param attributes
+ * map containing all attributes of tested component. Name of the component is key in the map.
+ */
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+
+ /**
+ * Getter for input.
+ *
+ * @return value entered by a user
+ */
+ public String getInput() {
+ return input;
+ }
+
+ /**
+ * Getter for input2.
+ *
+ * @return value entered by a user modified by selected action
+ */
+ public String getInput2() {
+ return input2;
+ }
+
+ /**
+ * Getter for input3.
+ *
+ * @return value entered by a user modified by selected action listener
+ */
+ public String getInput3() {
+ return input3;
+ }
+
+ /**
+ * Setter for input.
+ *
+ * @param input
+ * value which user entered into text input on the page
+ */
+ public void setInput(String input) {
+ this.input = input;
+ }
+
+ /**
+ * An action that takes the first six characters from input and stores it to input2.
+ *
+ * @return null since no navigation should be performed
+ */
+ public String first6CharsAction() {
+ int endIndex = input.length() > ACTION_STRING_LENGTH ? ACTION_STRING_LENGTH : input.length();
+ input2 = (String) input.subSequence(0, endIndex);
+ return null;
+ }
+
+ /**
+ * An action that takes user's input, doubles it and stores it to input2.
+ *
+ * @return null since no navigation should be performed
+ */
+ public String doubleStringAction() {
+ if (input == null) {
+ input2 = "";
+ } else {
+ input2 = input.concat(input);
+ }
+
+ return null;
+ }
+
+ /**
+ * An action that takes user's input, converts it to upper case and stores it to input2.
+ *
+ * @return null since no navigation should be performed
+ */
+ public String toUpperCaseAction() {
+ input2 = input.toUpperCase();
+ return null;
+ }
+
+ /**
+ * An action listener that takes the first six characters from input and stores it to input3.
+ *
+ * @param event
+ * an event representing the activation of a user interface component (not used)
+ */
+ public void first6CharsActionListener(ActionEvent event) {
+ int endIndex = input.length() > ACTION_STRING_LENGTH ? ACTION_STRING_LENGTH : input.length();
+ input3 = (String) input.subSequence(0, endIndex);
+ }
+
+ /**
+ * An action listener that takes user's input, doubles it and stores it to input3.
+ *
+ * @param event
+ * an event representing the activation of a user interface component (not used)
+ */
+ public void doubleStringActionListener(ActionEvent event) {
+ if (input == null) {
+ input3 = "";
+ } else {
+ input3 = input.concat(input);
+ }
+ }
+
+ /**
+ * An action listener that takes user's input, converts it to upper case and stores it to input3.
+ *
+ * @param event
+ * an event representing the activation of a user interface component (not used)
+ */
+ public void toUpperCaseActionListener(ActionEvent event) {
+ input3 = input.toUpperCase();
+ }
+
+}
Copied: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java (from rev 17812, root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java)
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,275 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp.bean;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.context.FacesContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean storing glogal setting for the application, e.g. skin.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean
+@SessionScoped
+public class RichBean implements Serializable {
+
+ private static final long serialVersionUID = 5590865106686406193L;
+ private Logger logger;
+ private String skin;
+ private String skinning;
+ private String skinningClasses;
+ private String skinningSelect;
+ private List<String> skins;
+ private boolean reDefault;
+ private boolean reComponent;
+ private boolean reAttributes;
+ private boolean reTests;
+ private boolean log;
+ private String component;
+ private Map<String, String> components; // [a4jCommandLink; A4J Command Link]
+ private String container;
+
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(RichBean.class);
+ skins = createSkinList();
+ components = createComponentsMap();
+
+ component = "none";
+ container = "plain";
+ skin = "blueSky";
+ skinning = "disable";
+ skinningClasses = "disable";
+ reTests = false;
+ reComponent = true;
+ reAttributes = true;
+ }
+
+ private Map<String, String> createComponentsMap() {
+ Map<String, String> components = new TreeMap<String, String>();
+
+ components.put("a4jCommandLink", "A4J Command Link");
+ components.put("a4jCommandButton", "A4J Command Button");
+ components.put("hCommandLink", "Command Link");
+ components.put("progressBar", "Progress Bar");
+ components.put("richDataTable", "Rich Data Table");
+
+ return components;
+ }
+
+ private List<String> createSkinList() {
+ List<String> skins = new ArrayList<String>();
+ skins.add("DEFAULT");
+ skins.add("NULL");
+ skins.add("blueSky");
+ skins.add("classic");
+ skins.add("deepMarine");
+ skins.add("emeraldTown");
+ skins.add("japanCherry");
+ skins.add("plain");
+ skins.add("ruby");
+ skins.add("wine");
+ return skins;
+ }
+
+ /**
+ * Getter for user's skin.
+ *
+ * @return a RichFaces skin
+ */
+ public String getSkin() {
+ return skin;
+ }
+
+ /**
+ * Setter for user's skin.
+ *
+ * @param skin
+ * a RichFaces skin
+ */
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
+ public String getSkinning() {
+ if (skinningSelect.equals("skinning")) {
+ return "enabled";
+ } else {
+ return "disabled";
+ }
+ }
+
+ public void setSkinning(String skinning) {
+ this.skinning = skinning;
+ }
+
+ public String getSkinningClasses() {
+ if (skinningSelect.equals("skinning classes")) {
+ return "enabled";
+ } else {
+ return "disabled";
+ }
+ }
+
+ public void setSkinningClasses(String skinningClasses) {
+ this.skinningClasses = skinningClasses;
+ }
+
+ public void setSkins(List<String> skins) {
+ this.skins = skins;
+ }
+
+ public List<String> getSkins() {
+ return skins;
+ }
+
+ public void setReDefault(boolean reDefault) {
+ this.reDefault = reDefault;
+ }
+
+ public boolean isReDefault() {
+ return reDefault;
+ }
+
+ public void setReComponent(boolean reComponent) {
+ this.reComponent = reComponent;
+ }
+
+ public boolean isReComponent() {
+ return reComponent;
+ }
+
+ public void setReAttributes(boolean reAttributes) {
+ this.reAttributes = reAttributes;
+ }
+
+ public boolean isReAttributes() {
+ return reAttributes;
+ }
+
+ public void setLog(boolean log) {
+ this.log = log;
+ }
+
+ public boolean isLog() {
+ return log;
+ }
+
+ public void setComponent(String component) {
+ this.component = component;
+ }
+
+ public String getComponent() {
+ return component;
+ }
+
+ public Set<String> getComponentList() {
+ return components.keySet();
+ }
+
+ /**
+ * @return the components
+ */
+ public Map<String, String> getComponents() {
+ return components;
+ }
+
+ /**
+ * @param components the components to set
+ */
+ public void setComponents(Map<String, String> components) {
+ this.components = components;
+ }
+
+ public String getContainer() {
+ return container;
+ }
+
+ public void setContainer(String container) {
+ this.container = container;
+ }
+
+ public boolean isReTests() {
+ return reTests;
+ }
+
+ public void setReTests(boolean reTests) {
+ this.reTests = reTests;
+ }
+
+ public String getSkinningSelect() {
+ return skinningSelect;
+ }
+
+ public void setSkinningSelect(String skinningSelect) {
+ this.skinningSelect = skinningSelect;
+ }
+
+ public String getListPage(String component) {
+ if ("none".equals(component)) {
+ return "/index?faces-redirect=true";
+ } else {
+ this.component = component;
+ return String.format("/components/%s/list.xhtml?faces-redirect=true", component);
+ }
+ }
+
+ public String getTestsPage() {
+ if (component.equals("none")) {
+ return "/blank.xhtml";
+ } else {
+ return String.format("/components/%s/tests.xhtml", component);
+ }
+ }
+
+ public String invalidateSession() {
+ Object session = FacesContext.getCurrentInstance().getExternalContext().getSession(false);
+
+ if (session == null) {
+ return "/index";
+ }
+
+ if (session instanceof HttpSession) {
+ ((HttpSession) session).invalidate();
+ return FacesContext.getCurrentInstance().getViewRoot().getViewId();
+ }
+
+ throw new IllegalStateException();
+ }
+}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/TemplateBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/TemplateBean.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/TemplateBean.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,154 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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 library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.testapp.bean;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.el.ELException;
+import javax.el.ExpressionFactory;
+import javax.el.MethodExpression;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.model.SelectItem;
+
+import org.richfaces.testapp.Template;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@ManagedBean
+@SessionScoped
+public class TemplateBean implements Serializable {
+
+ private static final long serialVersionUID = 5078700314562231363L;
+
+ private static final Logger logger = LoggerFactory.getLogger(TemplateBean.class);
+
+ static final List<String> dataTableModel = new ArrayList<String>();
+ static {
+ dataTableModel.add("1");
+ dataTableModel.add("2");
+ }
+
+ public static final String PARAM_NAME = "t";
+
+ private Template template = Template.PLAIN;
+
+ private Template templatePath = Template.PLAIN;
+
+ private String methodName;
+
+ private Integer dataTableRowIndex = 0;
+
+ public String getTemplateId() {
+ return template.toString();
+ }
+
+ public void setTemplateId(String template) {
+ this.template = Template.valueOf(template);
+// if (this.template.equals(Template.DATA_TABLE)) {
+// dataTableRowIndex = 0;
+// } else if (this.template.equals(Template.DATA_TABLE2)) {
+// dataTableRowIndex = 1;
+// }
+
+ }
+
+ public String getParentId() {
+ return template.getPrefix();
+ }
+
+ /**
+ * @return the template
+ */
+ public String getTemplate() {
+ return "/templates/" + template.getName() + ".xhtml";
+ }
+
+ /**
+ * @return the template
+ */
+ public String getAutoTestTemplate() {
+ return "/templates/autotest/" + template.getName() + ".xhtml";
+ }
+
+ /**
+ * @return the template
+ */
+ public String getTemplatePath() {
+ return template.getName() + ".xhtml";
+ }
+
+ /**
+ * @param template
+ * the template to set
+ */
+ public void setTemplate(Template template) {
+ this.template = template;
+ }
+
+ public void setTemplatePath(Template templatePath) {
+ this.templatePath = templatePath;
+ }
+
+ public List<SelectItem> getAvailableTemplates() {
+ List<SelectItem> retVal = new ArrayList<SelectItem>();
+ for (Template template : Template.values()) {
+ retVal.add(new SelectItem(template.toString(), template.getDesc()));
+ }
+
+ return retVal;
+ }
+
+ /**
+ * @return the methodName
+ */
+ public String getMethodName() {
+ return methodName;
+ }
+
+ /**
+ * @param methodName
+ * the methodName to set
+ */
+ public void setMethodName(String methodName) {
+ this.methodName = methodName;
+ }
+
+ /**
+ * @return the dataTableRowIndex
+ */
+ public Integer getDataTableRowIndex() {
+ return dataTableRowIndex;
+ }
+
+ /**
+ * @return the dataTableModel
+ */
+ public List<String> getDataTableModel() {
+ return dataTableModel;
+ }
+
+}
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,460 +0,0 @@
-package org.richfaces.testapp.commandlink;
-
-public class LinkAttributes {
-
- private String render = "output1,output2,output3,output4";
- private String value = "update";
- private boolean disabled = false;
- private boolean ajaxSingle = false;
- private boolean bypassUpdates = false;
- private boolean rendered = true;
- private String action;
- private String actionListener;
- private String style;
- private String styleClass;
- private String lang;
- private String title;
- private String dir;
- private String hreflang;
- private String charset;
- private String focus;
- private String accesskey;
- private String target;
- private String coords;
- private String rel;
- private String rev;
- private String shape = "default";
- private String type;
- private int tabindex;
-
- private String onbeforedomupdate;
- private String onblur;
- private String onclick;
- private String oncomplete;
- private String ondblclick;
- private String onfocus;
- private String onkeydown;
- private String onkeypress;
- private String onkeyup;
- private String onmousedown;
- private String onmousemove;
- private String onmouseout;
- private String onmouseover;
- private String onmouseup;
-
- private boolean limitRender;
- private String queue;
- private int requestDelay;
- private boolean ignoreDupResponses;
- private String process;
- private boolean immediate;
-
- private String onbegin;
- private String onsuccess;
- private String onerror;
- private String data;
- private String onsubmit;
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getAccesskey() {
- return accesskey;
- }
-
- public void setAccessKey(String accesskey) {
- this.accesskey = accesskey;
- }
-
- public boolean isAjaxSingle() {
- return ajaxSingle;
- }
-
- public void setAjaxSingle(boolean ajaxSingle) {
- this.ajaxSingle = ajaxSingle;
- }
-
- public String getLang() {
- return lang;
- }
-
- public void setLang(String lang) {
- this.lang = lang;
- }
-
- public String getRender() {
- return render;
- }
-
- public void setRender(String render) {
- this.render = render;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public boolean isLimitRender() {
- return limitRender;
- }
-
- public void setLimitRender(boolean limitRender) {
- this.limitRender = limitRender;
- }
-
- public String getQueue() {
- return queue;
- }
-
- public void setQueue(String queue) {
- this.queue = queue;
- }
-
- public int getRequestDelay() {
- return requestDelay;
- }
-
- public void setRequestDelay(int requestDelay) {
- this.requestDelay = requestDelay;
- }
-
- public String getTarget() {
- return target;
- }
-
- public void setTarget(String target) {
- this.target = target;
- }
-
- public boolean isIgnoreDupResponses() {
- return ignoreDupResponses;
- }
-
- public void setIgnoreDupResponses(boolean ignoreDupResponses) {
- this.ignoreDupResponses = ignoreDupResponses;
- }
-
- public String getProcess() {
- return process;
- }
-
- public void setProcess(String process) {
- this.process = process;
- }
-
- public boolean isImmediate() {
- return immediate;
- }
-
- public void setImmediate(boolean immediate) {
- this.immediate = immediate;
- }
-
- public boolean isBypassUpdates() {
- return bypassUpdates;
- }
-
- public void setBypassUpdates(boolean bypassUpdates) {
- this.bypassUpdates = bypassUpdates;
- }
-
- public String getAction() {
- return action;
- }
-
- public void setAction(String action) {
- this.action = action;
- }
-
- public String getActionListener() {
- return actionListener;
- }
-
- public void setActionListener(String actionListener) {
- this.actionListener = actionListener;
- }
-
- public String getCharset() {
- return charset;
- }
-
- public void setCharset(String charset) {
- this.charset = charset;
- }
-
- public String getCoords() {
- return coords;
- }
-
- public void setCoords(String coords) {
- this.coords = coords;
- }
-
- public String getRel() {
- return rel;
- }
-
- public void setRel(String rel) {
- this.rel = rel;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public int getTabindex() {
- return tabindex;
- }
-
- public void setTabindex(int tabindex) {
- this.tabindex = tabindex;
- }
-
- public String getShape() {
- return shape;
- }
-
- public void setShape(String shape) {
- this.shape = shape;
- }
-
- public void setAccesskey(String accesskey) {
- this.accesskey = accesskey;
- }
-
- public String getOnsubmit() {
- return onsubmit;
- }
-
- public void setOnsubmit(String onsubmit) {
- this.onsubmit = onsubmit;
- }
-
- public String getOnbegin() {
- return onbegin;
- }
-
- public void setOnbegin(String onbegin) {
- this.onbegin = onbegin;
- }
-
- public String getOnclick() {
- return onclick;
- }
-
- public void setOnclick(String onclick) {
- this.onclick = onclick;
- }
-
- public String getOnsuccess() {
- return onsuccess;
- }
-
- public void setOnsuccess(String onsuccess) {
- this.onsuccess = onsuccess;
- }
-
- public String getOncomplete() {
- return oncomplete;
- }
-
- public void setOncomplete(String oncomplete) {
- this.oncomplete = oncomplete;
- }
-
- public String getOnerror() {
- return onerror;
- }
-
- public void setOnerror(String onerror) {
- this.onerror = onerror;
- }
-
- public String getOnbeforedomupdate() {
- return onbeforedomupdate;
- }
-
- public void setOnbeforedomupdate(String onbeforedomupdate) {
- this.onbeforedomupdate = onbeforedomupdate;
- }
-
- public String getOnblur() {
- return onblur;
- }
-
- public void setOnblur(String onblur) {
- this.onblur = onblur;
- }
-
- public String getOndblclick() {
- return ondblclick;
- }
-
- public void setOndblclick(String ondblclick) {
- this.ondblclick = ondblclick;
- }
-
- public String getOnfocus() {
- return onfocus;
- }
-
- public void setOnfocus(String onfocus) {
- this.onfocus = onfocus;
- }
-
- public String getOnkeydown() {
- return onkeydown;
- }
-
- public void setOnkeydown(String onkeydown) {
- this.onkeydown = onkeydown;
- }
-
- public String getOnkeypress() {
- return onkeypress;
- }
-
- public void setOnkeypress(String onkeypress) {
- this.onkeypress = onkeypress;
- }
-
- public String getOnkeyup() {
- return onkeyup;
- }
-
- public void setOnkeyup(String onkeyup) {
- this.onkeyup = onkeyup;
- }
-
- public String getOnmousedown() {
- return onmousedown;
- }
-
- public void setOnmousedown(String onmousedown) {
- this.onmousedown = onmousedown;
- }
-
- public String getOnmousemove() {
- return onmousemove;
- }
-
- public void setOnmousemove(String onmousemove) {
- this.onmousemove = onmousemove;
- }
-
- public String getOnmouseout() {
- return onmouseout;
- }
-
- public void setOnmouseout(String onmouseout) {
- this.onmouseout = onmouseout;
- }
-
- public String getOnmouseover() {
- return onmouseover;
- }
-
- public void setOnmouseover(String onmouseover) {
- this.onmouseover = onmouseover;
- }
-
- public String getOnmouseup() {
- return onmouseup;
- }
-
- public void setOnmouseup(String onmouseup) {
- this.onmouseup = onmouseup;
- }
-
- public String getData() {
- return data;
- }
-
- public void setData(String data) {
- this.data = data;
- }
-
- public String getRev() {
- return rev;
- }
-
- public void setRev(String rev) {
- this.rev = rev;
- }
-
- public boolean isDisabled() {
- return disabled;
- }
-
- public void setDisabled(boolean disabled) {
- this.disabled = disabled;
- }
-
- public String getFocus() {
- return focus;
- }
-
- public void setFocus(String focus) {
- this.focus = focus;
- }
-
- public String getDir() {
- return dir;
- }
-
- public void setDir(String dir) {
- this.dir = dir;
- }
-
- public String getStyle() {
- return style;
- }
-
- public void setStyle(String style) {
- this.style = style;
- }
-
- public String getStyleClass() {
- return styleClass;
- }
-
- public void setStyleClass(String styleClass) {
- this.styleClass = styleClass;
- }
-
- public void setHreflang(String hreflang) {
- this.hreflang = hreflang;
- }
-
- public String getHreflang() {
- return hreflang;
- }
-
- public void setRendered(boolean rendered) {
- this.rendered = rendered;
- }
-
- public boolean isRendered() {
- return rendered;
- }
-
- public static LinkAttributes getInstanceTestDisabled() {
- LinkAttributes cLinkBean = new LinkAttributes();
- cLinkBean.setDisabled(true);
- return cLinkBean;
- }
-
-}
Deleted: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,140 +0,0 @@
-/*******************************************************************************
- * 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.
- *******************************************************************************/
-
-package org.richfaces.testapp.commandlink;
-
-import java.util.List;
-import java.util.Set;
-
-import javax.annotation.PostConstruct;
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-import javax.faces.context.FacesContext;
-import javax.faces.event.ActionEvent;
-
-import org.richfaces.testapp.model.People;
-import org.richfaces.testapp.model.Person;
-
-/**
- *
- *
- * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
- * @version $Revision$
- */
-@ManagedBean
-@SessionScoped
-public class LinkBean {
-
- private LinkAttributes attrs;
- private String input;
- private String input2;
- private String input3;
- private People people;
- private int id;
-
- @PostConstruct
- public void init() {
- attrs = new LinkAttributes();
- }
-
- public LinkAttributes getAttrs() {
- return attrs;
- }
-
- public void setAttrs(LinkAttributes attrs) {
- this.attrs = attrs;
- }
-
- public String getInput() {
- return input;
- }
-
- public String getInput2() {
- return input2;
- }
-
- public String getInput3() {
- return input3;
- }
-
- public void setInput(String input) {
- this.input = input;
- }
-
- public List<Person> getPeople() {
- if (people == null) {
- people = new People();
- }
-
- return people.getPeople();
- }
-
- public void setPeople(List<Person> people) {
- this.people.setPeople(people);
- }
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public void runTestDisabled() {
- attrs = LinkAttributes.getInstanceTestDisabled();
- }
-
- public String first6CharsAction() {
- int endIndex = input.length() > 6 ? 6 : input.length();
- input2 = (String) input.subSequence(0, endIndex);
- return null;
- }
-
- public void toUpperCaseActionListener(ActionEvent e) {
- input3 = input.toUpperCase();
- }
-
- public String first6CharsNameAction() {
- for (Person p : getPeople()) {
- if (p.getId() == id) {
- p.setUpperCaseName(p.getName().toUpperCase());
- input = p.getName();
- int endIndex = input.length() > 6 ? 6 : input.length();
- input2 = (String) input.subSequence(0, endIndex);
- p.setShortName(input2);
- break;
- }
- }
-
- return null;
- }
-
- public void toUpperCaseNameActionListener(ActionEvent e) {
- for (Person p : getPeople()) {
- if (p.getId() == id) {
- p.setUpperCaseName(p.getName().toUpperCase());
- break;
- }
- }
- }
-}
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java 2010-07-10 18:08:18 UTC (rev 17813)
@@ -27,7 +27,6 @@
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
-import org.richfaces.testapp.model.Person;
/**
*
Deleted: root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf
===================================================================
--- root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,50 +0,0 @@
-CWSD1
-۾���Ŧg�3fe�ǁ[���e|��¹����P�3��F�a{_�&��Y�m9�`���Xqw^�y�����/��亶��b�jMޝ�j{�c3�FQ�尼�uD��}k�L��gmr�}��r��$y��!�b�J�5��i
-ו��q��Fw��_H��a�L�����[=R��-g$�H�o]mğ�[��f;[�U6K-Mo�y��xM�Z�����n{��M٧�#��v%��Co'8/�����Z�]/�j%�����r���/�y}^5�kg�����v�ƨ����Xڻ���Q��K9�����?mr�S����/�1Y����DK�;>���/���^aR�R��w^�X�w��z~�����Vz�b�#��<�5�Ə�?Y��Fʑ���Փ*�Y�'Jr�;�ly��^c\�����v��Yc��ޕ��}S�H�=�p�¥lE������D��T��j��%����)8���:��u������>-���Ǘ�LL`_��b9n=�JШ��v!���1�?�̖�Z&���v��\�=Z���~%��L�*��,տ|�!T�nSXi��̝˗�'d����%f/'�"R#Tl-�?dnP��R�f�D��b�|��p��U�?�����'.� &z�F;i���S�&}�IL���:o��ӭrX�
-��_��ڊ�U�_7Q�A�Cc�Pml3/`�k�S�4
-����n����J�ӕ�wN� �%T{�=,��7"�N�&"����u�/�=��7\��˱3_��ɢ������VN�8bSOz��߸Į�I�UH��j)��{|ӌ���gvB�T�@���a�LbVվΥy����;�8���m�]?2�|�� �\h��/��P�8��=��֖�o��sv;�OJ��8�~?�aW���,_΅���9S�@`!`-��g ���ƴf��G[��BE�o��֙0&�|{j�֬09�����/W���א�|�uct�������o����ă��=(Xc)z|����-�[v׳B��=�pa,�ЩvV�8��2�ek�Of �bS,%n��x�bp8M��f���u�/�ԉ'�.����bI�4��_m}g��o�S�w�g�2�a=3j祱��f_2s=;�5UE��vA��$7ABخ7F�6�X���k�
-s���,����f���X;�f�F��~��t�,�3e�6�<�L���O�q�S�}lG��|�a�\f��vְ���&�M��T�$7���~ʡ�U��b����YK�>�Y�5p�G�ۚ��1�ܫXg���M��G�ґ����n�� R����[�[/�Rq��Ӎ�v���^W˽��MY\�N�BD"�3���o.�FěHU�!�ʥ��'�b��XZ|w2��5��K�:��
-�/<2��[�={I�q�ڔEq7U
-b}
-� �&����tSŲ���4�>�s�VmK�9�ϸ�fIj��]���
-�#�~l��i�-5��v]>:�qOr�
-�5��I|��7���
-���-]�*�oE��fJX�%��fl[�%����eG���9#;mR@˴���E��5��p"6^�7�C�[�
-gI�=6�_̰����$�`I(�K>�[6m
-�J�|���$H�SWI�#_&Uz{���?���*��K"IZ�M����[�bGT�O��Vb��7��^�
-2�P��/j�{��l`:h�k���;�$ִ�}��%����Y��w4���w�|�]_[���a�4���2����+G
-�i��.᷶rb^��1
-�{�������D��3G`�h�߈/��mǍ,�^��GJ��������0h�f�y��ٵ�Ri��¿m���C�*���Tzz�Lͼ�.�<�v�����
-gY��tp��"C �%=����q ���ǧk��}ub�Ǵg�B�4��W�(J9�L0�l��u��A���B=]M`�!C ��Ks����
-o��L*2�����Xҵ6e � S�m����1�'#qo?�;i��ࡨ�]�s�*��n4�;�ӟS|���Y��#C �9nd�9y|��4R�*����B��Xxt�,d(�#2xɦ�c�x6:ӌ�[��f�PFzY,|+J�HW�����|���L�GC�ov�ޮ���;��[�t��{mO3^3}�G-�tW��1E>2��3F�`̗�n��l�U�H��?5���>����Q��'���l���÷��%�DJq�s��&Q��F(������A��/�z��V�?.!�����Y�?"�yZ�����[����/��
-�E ���<x�I>�k� SҲ~[��'�&˴�>�
-�p�92�9�/�^Z�'��nd(Ac�����V���4����k�w��G]���[2��an�u0�43��Ŀ4߽:�xY>�%hh���x�#I3r�r^�dnFM��
-cџ�P�z����|�$�A��Z��r����~��_)��9�&*�u��@�X�{�н���'��npK٘c� ��z�W}#l�l:�"���'��?���h� s,D�+�>�Z� A�s,�ޮ͖���� ��hO�0�A��jv��5�
-:�"+r9
-d�܅�>�1�At\j�Nn�_ �9y�t���\pۓ�B46�X ���,�ǽ�?�αȋRλ�=m�ùލ�@�QԄE���#���<m��$y�M�n�Z�٘c�
-��V0y�t�E/�i"�m�Z��xt�P��禃O�{8��l:�"��ZbOfJg��|
-%������i�K�MgY䟭��<����'�A2@�Do�*�F���4��;��,�M+�<���6B�D�����O�D�γ��ǧאw��=���� � D "�[>�xsW���D�� c,A68�7p>Ɖj�%�&��O湭;�W�3-��픭���S�� �dg#D "����<�V^�N�H������6�ܹ�>B�!J)ތL�E���+ѹ��K�[%{mߕk-v(a�BE�U��:�
-�'���HU9����aq5�t�1?�b��;{����3R�AF�|\���i� a~BY[��I�N���æ�3R�B�S����j�O���1?��w��� ��)S(�T~f����ғ `c~B���.�G�"C�g��!;������x5=���k�P6^�T����k�X�K,\�i��@��\���5�*�I�2:�"Y)�ݒ���L8J�k�P�D�ǭ�&��t�E�IJ�(�q<ݍQ�\�{>��:��
-1��I� ����M��-�� * ���s�]����2x��$(�&:_LP�T������uyޘ
-y�-1�qQުŹ98`����dbſnL�Β6�1���s��.�C���:b-N�`��Ǧ�-݀�M�<�A�v��f���&i8=��&�i��͗9?a�|%p/��'L\�v}�X���
-���_�$>�� �� ��%�`������O|0����8xd2�`8i�
-1��p6�ڭ"4�y�Ù,(�#]|�C�k�<�͙aD��_1���o�d6"d�` N���a�8��ȆW�yψ*AD�]��"q�1��B
-Ŏ��x���U(����x�Ym��J�j�6$���,Ä��b�YՁ�Mr�p�;���{�L6a��Y=�"ѩ�hZG��GPVz��w�f�
-�Q�����0J\�����]�R�|Ŭ�A�k�N-�7�`�e��C�:\�Q̲T�|���"��ݠq�B����|���y+��A�/��0�Pf!�>��BO��`�����z�<
-fV,�0��&�1�P�J��,�g�F����+���qG�CC�V�'��$�j�P�
-ך����,�BM�G���P����S��fV��x��� �S�`���氯���0��P���ـ�I�`�|
-u���׆�Ƭ�C9�;���H�`�N��u��J�̂<�ݽ�0���RV����̬�C�ߛ��_�`��-a�q�rd�@'����&�I j1�ރ��ɃE#{f/�,x���](_0��
-��4�ۛ��)������mTT�TXS�����mT�_U�x��6�]����o
-��ò]ܮ}\q��|4�maT��d����-�ń��p��1�Ϩ.3�&����;��gT_�7���Kc��Q�l�M��x�u��ܨ��o�����l������w!�#n����NG�����,�m���[�?^O��m�����p��~>fw ��[�M?�݁T�භ�!2�q�JK�����!hG�5��?���
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- id="richfaces-demo" version="2.5">
+ version="2.5">
<display-name>testapp</display-name>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,210 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:outputStylesheet library="css" name="commandLink.css" />
-
- <h:panelGrid id="attributes" columns="2">
- <h:outputLabel id="disabledLabel" value="disabled" for="disabledCheckbox" />
- <h:selectBooleanCheckbox id="disabledCheckbox" value="#{linkBean.attrs.disabled}">
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectBooleanCheckbox>
-
- <h:outputLabel id="renderedLabel" value="rendered" for="renderedCheckbox" />
- <h:selectBooleanCheckbox id="renderedCheckbox" value="#{linkBean.attrs.rendered}">
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectBooleanCheckbox>
-
- <h:outputLabel id="valueLabel" value="value" for="valueInput" />
- <h:inputText id="valueInput" value="#{linkBean.attrs.value}">
- <a4j:ajax event="keyup" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="renderLabel" value="render" for="renderSelect" />
- <h:selectOneRadio id="renderSelect" value="#{linkBean.attrs.render}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="output1" itemValue="output1" />
- <f:selectItem itemLabel="output2" itemValue="output2" />
- <f:selectItem itemLabel="all" itemValue="output1,output2,output3,output4" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="focusLabel" value="focus" for="focusInput" />
- <h:inputText id="focusInput" value="#{linkBean.attrs.focus}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="styleLabel" value="style" for="styleInput" />
- <h:inputText id="styleInput" value="#{linkBean.attrs.style}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="styleClassLabel" value="styleClass" for="styleClassSelect" />
- <h:selectOneRadio id="styleClassSelect" value="#{linkBean.attrs.styleClass}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="big" itemValue="big" />
- <f:selectItem itemLabel="red + big" itemValue="red big" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="langLabel" value="lang" for="langSelect" />
- <h:selectOneRadio id="langSelect" value="#{linkBean.attrs.lang}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="en" itemValue="en" />
- <f:selectItem itemLabel="sk" itemValue="sk" />
- <f:selectItem itemLabel="ru" itemValue="ru" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="hreflangLabel" value="hreflang" for="hreflangSelect" />
- <h:selectOneRadio id="hreflangSelect" value="#{linkBean.attrs.hreflang}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="en" itemValue="en" />
- <f:selectItem itemLabel="sk" itemValue="sk" />
- <f:selectItem itemLabel="ru" itemValue="ru" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="charsetLabel" value="charset" for="charsetSelect" />
- <h:selectOneRadio id="charsetSelect" value="#{linkBean.attrs.charset}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="utf-8" itemValue="utf-8" />
- <f:selectItem itemLabel="iso-8859-1" itemValue="iso-8859-1" />
- <f:selectItem itemLabel="iso-8859-2" itemValue="iso-8859-2" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="dirLabel" value="dir" for="dirSelect" />
- <h:selectOneRadio id="dirSelect" value="#{linkBean.attrs.dir}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="ltr" itemValue="ltr" />
- <f:selectItem itemLabel="rtl" itemValue="rtl" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="targetLabel" value="target" for="targetSelect" />
- <h:selectOneRadio id="targetSelect" value="#{linkBean.attrs.target}">
- <f:selectItem itemLabel="none" itemValue="" />
- <f:selectItem itemLabel="_self" itemValue="_self" />
- <f:selectItem itemLabel="_blank" itemValue="_blank" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="shapeLabel" value="shape" for="shapeSelect" />
- <h:selectOneRadio id="shapeSelect" value="#{linkBean.attrs.shape}">
- <f:selectItem itemLabel="default" itemValue="default" />
- <f:selectItem itemLabel="rect" itemValue="rect" />
- <f:selectItem itemLabel="circle" itemValue="circle" />
- <f:selectItem itemLabel="poly" itemValue="poly" />
- <a4j:ajax even="change" render="panel" execute="@this" />
- </h:selectOneRadio>
-
- <h:outputLabel id="typeLabel" value="type" for="typeInput" />
- <h:inputText id="typeInput" value="#{linkBean.attrs.type}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="titleLabel" value="title" for="titleInput" />
- <h:inputText id="titleInput" value="#{linkBean.attrs.title}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="accesskeyLabel" value="accesskey" for="accesskeyInput" />
- <h:inputText id="accesskeyInput" value="#{linkBean.attrs.accesskey}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="coordsLabel" value="coords" for="coordsInput" />
- <h:inputText id="coordsInput" value="#{linkBean.attrs.coords}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="relLabel" value="rel" for="relInput" />
- <h:inputText id="relInput" value="#{linkBean.attrs.rel}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="revLabel" value="rev" for="revInput" />
- <h:inputText id="revInput" value="#{linkBean.attrs.rev}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="tabindexLabel" value="tabindex" for="tabindexInput" />
- <h:inputText id="tabindexInput" value="#{linkBean.attrs.tabindex}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onbeforedomupdateLabel" value="onbeforedomupdate" for="onbeforedomupdateInput" />
- <h:inputText id="onbeforedomupdateInput" value="#{linkBean.attrs.onbeforedomupdate}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onblurLabel" value="onblur" for="onblurInput" />
- <h:inputText id="onblurInput" value="#{linkBean.attrs.onblur}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onclickLabel" value="onclick" for="onclickInput" />
- <h:inputText id="onclickInput" value="#{linkBean.attrs.onclick}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="oncompleteLabel" value="oncomplete" for="oncompleteInput" />
- <h:inputText id="oncompleteInput" value="#{linkBean.attrs.oncomplete}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="ondblclickLabel" value="ondblclick" for="ondblclickInput" />
- <h:inputText id="ondblclickInput" value="#{linkBean.attrs.ondblclick}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onfocusLabel" value="onfocus" for="onfocusInput" />
- <h:inputText id="onfocusInput" value="#{linkBean.attrs.onfocus}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onkeydownLabel" value="onkeydown" for="onkeydownInput" />
- <h:inputText id="onkeydownInput" value="#{linkBean.attrs.onkeydown}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onkeypressLabel" value="onkeypress" for="onkeypressInput" />
- <h:inputText id="onkeypressInput" value="#{linkBean.attrs.onkeypress}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onkeyupLabel" value="onkeyup" for="onkeyupInput" />
- <h:inputText id="onkeyupInput" value="#{linkBean.attrs.onkeyup}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onmousedownLabel" value="onmousedown" for="onmousedownInput" />
- <h:inputText id="onmousedownInput" value="#{linkBean.attrs.onmousedown}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onmousemoveLabel" value="onmousemove" for="onmousemoveInput" />
- <h:inputText id="onmousemoveInput" value="#{linkBean.attrs.onmousemove}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onmouseoutLabel" value="onmouseout" for="onmouseoutInput" />
- <h:inputText id="onmouseoutInput" value="#{linkBean.attrs.onmouseout}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onmouseoverLabel" value="onmouseover" for="onmouseoverInput" />
- <h:inputText id="onmouseoverInput" value="#{linkBean.attrs.onmouseover}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- <h:outputLabel id="onmouseupLabel" value="onmouseup" for="onmouseupInput" />
- <h:inputText id="onmouseupInput" value="#{linkBean.attrs.onmouseup}">
- <a4j:ajax event="blur" render="panel" execute="@this" />
- </h:inputText>
-
- </h:panelGrid>
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,83 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:panelGrid id="panel">
- <h:dataTable id="linkDataTable" value="#{linkBean.people}" var="person" >
- <f:facet name="header">
- <h:outputText value="List of famous people" />
- </f:facet>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="Name" />
- </f:facet>
- <h:inputText id="input" value="#{person.name}" style="width: 200px;" />
- </h:column>
-
- <h:column id="commandLink">
- <f:facet name="header">
- <h:outputText value="Update" />
- </f:facet>
- <a4j:commandLink id="commandLinka" action="#{linkBean.first6CharsNameAction}"
- actionListener="#{linkBean.toUpperCaseNameActionListener}" disabled="#{linkBean.attrs.disabled}"
- value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}"
- styleClass="#{linkBean.attrs.styleClass}" lang="#{linkBean.attrs.lang}"
- title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}" hreflang="#{linkBean.attrs.hreflang}"
- render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}" onsubmit="alert('onsubmit')"
- onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}" onblur="#{linkBean.attrs.onblur}"
- onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
- ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
- onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
- onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
- onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
- onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
- accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
- bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
- rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}"
- coords="#{linkBean.attrs.coords}" rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}"
- shape="#{linkBean.attrs.shape}" tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}">
-
- <f:setPropertyActionListener target="#{linkBean.id}" value="#{person.id}"/>
- </a4j:commandLink>
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="output1" />
- </f:facet>
- <h:outputText id="output1" value="#{person.name}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="output2" />
- </f:facet>
- <h:outputText id="output2" value="#{person.name}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="action (first 6 chars)" />
- </f:facet>
- <h:outputText id="output3" value="#{person.shortName}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="action listener (upper case)" />
- </f:facet>
- <h:outputText id="output4" value="#{person.upperCaseName}" />
- </h:column>
-
- <f:facet name="footer">
- <h:outputText value="List of famous people" />
- </f:facet>
-
- </h:dataTable>
-
- </h:panelGrid>
-
- <a4j:commandButton value="Rerender" render="panel" />
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,25 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- There will be a command link inside extended data table.
-
- <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
- actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
- value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
- lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
- hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
- onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
- onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
- ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
- onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
- onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
- onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
- onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
- accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
- bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
- rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}" coords="#{linkBean.attrs.coords}"
- rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}" shape="#{linkBean.attrs.shape}"
- tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,25 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- There will be a command link inside modal panel.
-
- <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
- actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
- value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
- lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
- hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
- onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
- onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
- ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
- onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
- onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
- onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
- onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
- accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
- bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
- rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}" coords="#{linkBean.attrs.coords}"
- rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}" shape="#{linkBean.attrs.shape}"
- tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,25 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- There will be a command link inside panel.
-
- <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
- actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
- value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
- lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
- hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
- onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
- onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
- ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
- onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
- onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
- onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
- onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
- accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
- bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
- rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}" coords="#{linkBean.attrs.coords}"
- rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}" shape="#{linkBean.attrs.shape}"
- tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,37 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:panelGrid id="panel" columns="2">
- <h:inputText id="input" value="#{linkBean.input}" />
-
- <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
- actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
- value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
- lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
- hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
- onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
- onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}"
- oncomplete="#{linkBean.attrs.oncomplete}" ondblclick="#{linkBean.attrs.ondblclick}"
- onfocus="#{linkBean.attrs.onfocus}" onkeydown="#{linkBean.attrs.onkeydown}"
- onkeypress="#{linkBean.attrs.onkeypress}" onkeyup="#{linkBean.attrs.onkeyup}"
- onmousedown="#{linkBean.attrs.onmousedown}" onmousemove="#{linkBean.attrs.onmousemove}"
- onmouseout="#{linkBean.attrs.onmouseout}" onmouseover="#{linkBean.attrs.onmouseover}"
- onmouseup="#{linkBean.attrs.onmouseup}" accesskey="#{linkBean.attrs.accesskey}"
- ajaxSingle="#{linkBean.attrs.ajaxSingle}" bypassUpdates="#{linkBean.attrs.bypassUpdates}"
- charset="#{linkBean.attrs.charset}" rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}"
- coords="#{linkBean.attrs.coords}" rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}"
- shape="#{linkBean.attrs.shape}" tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
-
- </h:panelGrid>
-
- <h:panelGrid id="outputs" columns="2">
- output1: <h:outputText value="#{linkBean.input}" id="output1" />
- output2: <h:outputText value="#{linkBean.input}" id="output2" />
- action (first 6 chars): <h:outputText value="#{linkBean.input2}" id="output3" />
- action listener (upper case):<h:outputText value="#{linkBean.input3}" id="output4" />
- </h:panelGrid>
-
- <a4j:commandButton value="Rerender" render="panel, outputs" />
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,10 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:panelGrid columns="2">
- <a4j:commandButton id="testDisabledLink" value="Run test" action="#{linkBean.runTestDisabled}" render="componentForm"/>
- disabled = true
-
- </h:panelGrid>
-</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/list.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/list.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/list.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,18 @@
+<!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://java.sun.com/jsf/composite/rich"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jsp/jstl/core">
+
+<h:head>
+ <title>A4J Command Link</title>
+ <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
+ <!-- <h:outputStylesheet library="css" name="common.css" />-->
+</h:head>
+
+<h:body>
+
+ <h3><h:outputLink value="simple.xhtml">Simple</h:outputLink></h3>
+ <div>Simple page that contain command link and input boxes for all its attributes.</div>
+
+</h:body>
+</html>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jCommandLink/simple.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,59 @@
+<!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://java.sun.com/jsf/composite/rich"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jsp/jstl/core">
+
+<ui:composition template="#{templateBean.template}">
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <!-- <h:outputStylesheet library="css" name="a4jCommandLink.css" target="head"/> -->
+
+ <h:panelGrid id="panel" columns="2">
+ <h:inputText id="input" value="#{a4jLinkBean.input}" />
+
+ <a4j:commandLink id="a4jCommandLink" accesskey="#{a4jLinkBean.attributes['accesskey']}"
+ action="#{a4jLinkBean.attributes.action}" actionListener="#{a4jLinkBean.attributes.actionListener}"
+ charset="#{a4jLinkBean.attributes['charset']}" coords="#{a4jLinkBean.attributes['coords']}"
+ dir="#{a4jLinkBean.attributes['dir']}" disabled="#{a4jLinkBean.attributes['disabled']}"
+ hreflang="#{a4jLinkBean.attributes['hreflang']}" immediate="#{a4jLinkBean.attributes['immediate']}"
+ lang="#{a4jLinkBean.attributes['lang']}" onblur="#{a4jLinkBean.attributes['onblur']}"
+ onclick="#{a4jLinkBean.attributes['onclick']}" ondblclick="#{a4jLinkBean.attributes['ondblclick']}"
+ onfocus="#{a4jLinkBean.attributes['onfocus']}" onkeydown="#{a4jLinkBean.attributes['onkeydown']}"
+ onkeypress="#{a4jLinkBean.attributes['onkeypress']}" onkeyup="#{a4jLinkBean.attributes['onkeyup']}"
+ onmousedown="#{a4jLinkBean.attributes['onmousedown']}"
+ onmousemove="#{a4jLinkBean.attributes['onmousemove']}"
+ onmouseout="#{a4jLinkBean.attributes['onmouseout']}"
+ onmouseover="#{a4jLinkBean.attributes['onmouseover']}"
+ onmouseup="#{a4jLinkBean.attributes['onmouseup']}" rel="#{a4jLinkBean.attributes['rel']}"
+ render="#{a4jLinkBean.attributes['render']}" rendered="#{a4jLinkBean.attributes['rendered']}"
+ rev="#{a4jLinkBean.attributes['rev']}" shape="#{a4jLinkBean.attributes['shape']}"
+ style="#{a4jLinkBean.attributes['style']}" styleClass="#{a4jLinkBean.attributes['styleClass']}"
+ tabindex="#{a4jLinkBean.attributes['tabindex']}" target="#{a4jLinkBean.attributes['target']}"
+ title="#{a4jLinkBean.attributes['title']}" type="#{a4jLinkBean.attributes['type']}"
+ value="#{a4jLinkBean.attributes['value']}" />
+
+ </h:panelGrid>
+
+ <h:panelGrid id="outputs" columns="2">
+ output: <h:outputText value="#{a4jLinkBean.input}" id="output1" />
+ action: <h:outputText value="#{a4jLinkBean.input2}" id="output2" />
+ action listener:<h:outputText value="#{a4jLinkBean.input3}" id="output3" />
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <h:panelGrid id="attributes" columns="4">
+ <c:forEach items="#{a4jLinkBean.attributes}" var="entry">
+ <h:outputLabel id="#{entry.key}Label" value="#{entry.key}" />
+ <h:inputText id="#{entry.key}Input" value="#{a4jLinkBean.attributes[entry.key]}">
+ <a4j:ajax event="blur" render="panel" />
+ </h:inputText>
+ </c:forEach>
+ </h:panelGrid>
+ </ui:define>
+
+</ui:composition>
+</html>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,24 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:outputLabel id="componentLabel" for="componentSelect" value="Component:" />
-
- <h:selectOneMenu id="componentSelect" value="#{richBean.component}" immediate="true" style="width: 100%;">
- <f:selectItem itemLabel="-- None --" itemValue="none" />
- <f:selectItem itemLabel="Command Link" itemValue="commandLink" />
- </h:selectOneMenu>
-
- <h:outputLabel id="containerLabel" for="containerSelect" value="Container:" />
-
- <h:selectOneMenu id="containerSelect" value="#{richBean.container}" immediate="true">
- <f:selectItem itemLabel="-- None --" itemValue="plain" />
- <f:selectItem itemLabel="Data Table" itemValue="dataTable" />
- <f:selectItem itemLabel="Extended Data Table" itemValue="extendedDataTable" />
- <f:selectItem itemLabel="Modal Panel" itemValue="modalPanel" />
- <f:selectItem itemLabel="Panel" itemValue="panel" />
- </h:selectOneMenu>
-
- <h:commandButton action="/index" value="Submit" />
-
-</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,66 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:form id="headerForm" style="padding-bottom: 30px;" prependId="false">
- <h:panelGrid columns="6" border="1">
-
- <h:panelGrid columns="2">
- <h:outputText value="h" />
- <h:outputText value="a4j" />
- <h:commandButton id="hButton" value="submit" styleClass="button" />
- <a4j:commandButton id="a4jButton" value="submit" reRender="richGridID" styleClass="button" />
- <h:commandButton id="hButtonImmediate" value="immediate" immediate="true" styleClass="button" />
- <a4j:commandButton id="a4jButtonImmediate" value="immediate" immediate="true" reRender="richGridID"
- styleClass="button" />
- </h:panelGrid>
-
- <h:panelGrid columns="2" style="width: 120px;">
- <h:outputLabel id="a4jLogLabel" for="a4jLogCheckbox" value="a4j:log" />
- <h:selectBooleanCheckbox id="a4jLogCheckbox" value="#{richBean.log}">
- <a4j:ajax event="change" execute="@this" render="a4jLog"/>
- </h:selectBooleanCheckbox>
- <h:outputLabel id="a4jStatusLabel" for="a4jStatus" value="a4j:status" />
- <a4j:status id="a4jStatus">
- <f:facet name="start">
- <h:graphicImage value="resources/images/wait.gif" />
- </f:facet>
- </a4j:status>
- </h:panelGrid>
-
- <h:panelGrid columns="2">
- <h:outputLabel id="reTestsCheckboxLabel" value="Tests" for="reTestsCheckbox" />
- <h:selectBooleanCheckbox id="reTestsCheckbox" value="#{richBean.reTests}" onchange="submit();"/>
-
- <h:outputLabel id="reComponentCheckboxLabel" value="Component" for="reComponentCheckbox" />
- <h:selectBooleanCheckbox id="reComponentCheckbox" value="#{richBean.reComponent}" onchange="submit();" />
-
- <h:outputLabel id="reAttributesCheckboxLabel" value="Properties" for="reAttributesCheckbox" />
- <h:selectBooleanCheckbox id="reAttributesCheckbox" value="#{richBean.reAttributes}" onchange="submit();" />
- </h:panelGrid>
-
- <h:panelGrid columns="1">
- <h:outputLabel id="skinSelectLabel" value="Select skin: " for="skinSelect" />
-
- <h:selectOneMenu id="skinSelect" value="#{richBean.skin}">
- <f:selectItems value="#{richBean.skins}" />
- </h:selectOneMenu>
-
- <h:selectOneMenu id="skinningSelect" value="#{richBean.skinningSelect}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="skinning" itemValue="skinning" />
- <f:selectItem itemLabel="skinningClasses" itemValue="skinning classes" />
- </h:selectOneMenu>
- </h:panelGrid>
-
- <h:panelGrid columns="2">
- <ui:include src="/includes/components.xhtml" />
- <ui:include src="/blank.xhtml" />
- </h:panelGrid>
-
- <h:panelGrid columns="1">
- <h:commandButton action="#{richBean.invalidateSession}" value="Invalidate Session" />
- </h:panelGrid>
- </h:panelGrid>
- </h:form>
-</ui:composition>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/index.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/index.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/index.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,12 +1,23 @@
-<!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://java.sun.com/jsf/composite/rich"
- xmlns:a4j="http://richfaces.org/a4j">
-
-<ui:composition template="/templates/template.xhtml">
- <ui:define name="content">
- <h1>Welcome To RichFaces 4.x Testing Application</h1>
- </ui:define>
-</ui:composition>
-
+<!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://java.sun.com/jsf/composite/rich"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jsp/jstl/core">
+
+<h:head>
+ <title>Testing Application</title>
+ <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
+ <!-- <h:outputStylesheet library="css" name="common.css" />-->
+</h:head>
+
+<h:body>
+
+ <h:form id="linksForm">
+ <h:panelGrid id="attributes">
+ <c:forEach items="#{richBean.components}" var="entry">
+ <h:commandLink action="#{richBean.getListPage(entry.key)}" value="#{entry.key}" />
+ </c:forEach>
+ </h:panelGrid>
+ </h:form>
+
+</h:body>
</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/resources/css/a4jCommandLink.css (from rev 17812, root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/css/a4jCommandLink.css (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/css/a4jCommandLink.css 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,7 @@
+.red {
+ color: red;
+}
+
+.big {
+ font-size: xx-large;
+}
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,7 +0,0 @@
-.red {
- color: red;
-}
-
-.big {
- font-size: xx-large;
-}
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/resources/flash/text.swf (from rev 17812, root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/flash/text.swf (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/flash/text.swf 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,50 @@
+CWSD1
+۾���Ŧg�3fe�ǁ[���e|��¹����P�3��F�a{_�&��Y�m9�`���Xqw^�y�����/��亶��b�jMޝ�j{�c3�FQ�尼�uD��}k�L��gmr�}��r��$y��!�b�J�5��i
+ו��q��Fw��_H��a�L�����[=R��-g$�H�o]mğ�[��f;[�U6K-Mo�y��xM�Z�����n{��M٧�#��v%��Co'8/�����Z�]/�j%�����r���/�y}^5�kg�����v�ƨ����Xڻ���Q��K9�����?mr�S����/�1Y����DK�;>���/���^aR�R��w^�X�w��z~�����Vz�b�#��<�5�Ə�?Y��Fʑ���Փ*�Y�'Jr�;�ly��^c\�����v��Yc��ޕ��}S�H�=�p�¥lE������D��T��j��%����)8���:��u������>-���Ǘ�LL`_��b9n=�JШ��v!���1�?�̖�Z&���v��\�=Z���~%��L�*��,տ|�!T�nSXi��̝˗�'d����%f/'�"R#Tl-�?dnP��R�f�D��b�|��p��U�?�����'.� &z�F;i���S�&}�IL���:o��ӭrX�
+��_��ڊ�U�_7Q�A�Cc�Pml3/`�k�S�4
+����n����J�ӕ�wN� �%T{�=,��7"�N�&"����u�/�=��7\��˱3_��ɢ������VN�8bSOz��߸Į�I�UH��j)��{|ӌ���gvB�T�@���a�LbVվΥy����;�8���m�]?2�|�� �\h��/��P�8��=��֖�o��sv;�OJ��8�~?�aW���,_΅���9S�@`!`-��g ���ƴf��G[��BE�o��֙0&�|{j�֬09�����/W���א�|�uct�������o����ă��=(Xc)z|����-�[v׳B��=�pa,�ЩvV�8��2�ek�Of �bS,%n��x�bp8M��f���u�/�ԉ'�.����bI�4��_m}g��o�S�w�g�2�a=3j祱��f_2s=;�5UE��vA��$7ABخ7F�6�X���k�
+s���,����f���X;�f�F��~��t�,�3e�6�<�L���O�q�S�}lG��|�a�\f��vְ���&�M��T�$7���~ʡ�U��b����YK�>�Y�5p�G�ۚ��1�ܫXg���M��G�ґ����n�� R����[�[/�Rq��Ӎ�v���^W˽��MY\�N�BD"�3���o.�FěHU�!�ʥ��'�b��XZ|w2��5��K�:��
+�/<2��[�={I�q�ڔEq7U
+b}
+� �&����tSŲ���4�>�s�VmK�9�ϸ�fIj��]���
+�#�~l��i�-5��v]>:�qOr�
+�5��I|��7���
+���-]�*�oE��fJX�%��fl[�%����eG���9#;mR@˴���E��5��p"6^�7�C�[�
+gI�=6�_̰����$�`I(�K>�[6m
+�J�|���$H�SWI�#_&Uz{���?���*��K"IZ�M����[�bGT�O��Vb��7��^�
+2�P��/j�{��l`:h�k���;�$ִ�}��%����Y��w4���w�|�]_[���a�4���2����+G
+�i��.᷶rb^��1
+�{�������D��3G`�h�߈/��mǍ,�^��GJ��������0h�f�y��ٵ�Ri��¿m���C�*���Tzz�Lͼ�.�<�v�����
+gY��tp��"C �%=����q ���ǧk��}ub�Ǵg�B�4��W�(J9�L0�l��u��A���B=]M`�!C ��Ks����
+o��L*2�����Xҵ6e � S�m����1�'#qo?�;i��ࡨ�]�s�*��n4�;�ӟS|���Y��#C �9nd�9y|��4R�*����B��Xxt�,d(�#2xɦ�c�x6:ӌ�[��f�PFzY,|+J�HW�����|���L�GC�ov�ޮ���;��[�t��{mO3^3}�G-�tW��1E>2��3F�`̗�n��l�U�H��?5���>����Q��'���l���÷��%�DJq�s��&Q��F(������A��/�z��V�?.!�����Y�?"�yZ�����[����/��
+�E ���<x�I>�k� SҲ~[��'�&˴�>�
+�p�92�9�/�^Z�'��nd(Ac�����V���4����k�w��G]���[2��an�u0�43��Ŀ4߽:�xY>�%hh���x�#I3r�r^�dnFM��
+cџ�P�z����|�$�A��Z��r����~��_)��9�&*�u��@�X�{�н���'��npK٘c� ��z�W}#l�l:�"���'��?���h� s,D�+�>�Z� A�s,�ޮ͖���� ��hO�0�A��jv��5�
+:�"+r9
+d�܅�>�1�At\j�Nn�_ �9y�t���\pۓ�B46�X ���,�ǽ�?�αȋRλ�=m�ùލ�@�QԄE���#���<m��$y�M�n�Z�٘c�
+��V0y�t�E/�i"�m�Z��xt�P��禃O�{8��l:�"��ZbOfJg��|
+%������i�K�MgY䟭��<����'�A2@�Do�*�F���4��;��,�M+�<���6B�D�����O�D�γ��ǧאw��=���� � D "�[>�xsW���D�� c,A68�7p>Ɖj�%�&��O湭;�W�3-��픭���S�� �dg#D "����<�V^�N�H������6�ܹ�>B�!J)ތL�E���+ѹ��K�[%{mߕk-v(a�BE�U��:�
+�'���HU9����aq5�t�1?�b��;{����3R�AF�|\���i� a~BY[��I�N���æ�3R�B�S����j�O���1?��w��� ��)S(�T~f����ғ `c~B���.�G�"C�g��!;������x5=���k�P6^�T����k�X�K,\�i��@��\���5�*�I�2:�"Y)�ݒ���L8J�k�P�D�ǭ�&��t�E�IJ�(�q<ݍQ�\�{>��:��
+1��I� ����M��-�� * ���s�]����2x��$(�&:_LP�T������uyޘ
+y�-1�qQުŹ98`����dbſnL�Β6�1���s��.�C���:b-N�`��Ǧ�-݀�M�<�A�v��f���&i8=��&�i��͗9?a�|%p/��'L\�v}�X���
+���_�$>�� �� ��%�`������O|0����8xd2�`8i�
+1��p6�ڭ"4�y�Ù,(�#]|�C�k�<�͙aD��_1���o�d6"d�` N���a�8��ȆW�yψ*AD�]��"q�1��B
+Ŏ��x���U(����x�Ym��J�j�6$���,Ä��b�YՁ�Mr�p�;���{�L6a��Y=�"ѩ�hZG��GPVz��w�f�
+�Q�����0J\�����]�R�|Ŭ�A�k�N-�7�`�e��C�:\�Q̲T�|���"��ݠq�B����|���y+��A�/��0�Pf!�>��BO��`�����z�<
+fV,�0��&�1�P�J��,�g�F����+���qG�CC�V�'��$�j�P�
+ך����,�BM�G���P����S��fV��x��� �S�`���氯���0��P���ـ�I�`�|
+u���׆�Ƭ�C9�;���H�`�N��u��J�̂<�ݽ�0���RV����̬�C�ߛ��_�`��-a�q�rd�@'����&�I j1�ރ��ɃE#{f/�,x���](_0��
+��4�ۛ��)������mTT�TXS�����mT�_U�x��6�]����o
+��ò]ܮ}\q��|4�maT��d����-�ń��p��1�Ϩ.3�&����;��gT_�7���Kc��Q�l�M��x�u��ܨ��o�����l������w!�#n����NG�����,�m���[�?^O��m�����p��~>fw ��[�M?�݁T�භ�!2�q�JK�����!hG�5��?���
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml (from rev 17812, root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,67 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:form id="headerForm" style="padding-bottom: 30px;" prependId="false">
+ <h:panelGrid columns="6" border="1">
+
+ <h:panelGrid columns="2" style="width: 180px;">
+ <h:outputLabel id="a4jLogLabel" for="a4jLogCheckbox" value="a4j:log" />
+ <h:selectBooleanCheckbox id="a4jLogCheckbox" value="#{richBean.log}">
+ <a4j:ajax event="change" execute="@this" render="a4jLog" />
+ </h:selectBooleanCheckbox>
+ <h:outputLabel id="a4jStatusLabel" for="a4jStatus" value="a4j:status" />
+ <a4j:status id="a4jStatus">
+ <f:facet name="start">
+ <h:outputText value="WORKING" style="color: red;" />
+ </f:facet>
+ </a4j:status>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2">
+ <h:outputLabel id="reTestsCheckboxLabel" value="Display tests" for="reTestsCheckbox" />
+ <h:selectBooleanCheckbox id="reTestsCheckbox" value="#{richBean.reTests}" onchange="submit();" />
+
+ <h:outputLabel id="reComponentCheckboxLabel" value="Display component" for="reComponentCheckbox" />
+ <h:selectBooleanCheckbox id="reComponentCheckbox" value="#{richBean.reComponent}" onchange="submit();" />
+
+ <h:outputLabel id="reAttributesCheckboxLabel" value="Didplay Properties" for="reAttributesCheckbox" />
+ <h:selectBooleanCheckbox id="reAttributesCheckbox" value="#{richBean.reAttributes}" onchange="submit();" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:outputLabel id="skinSelectLabel" value="Select skin: " for="skinSelect" />
+
+ <h:selectOneMenu id="skinSelect" value="#{richBean.skin}" style="width: 130px;">
+ <f:selectItems value="#{richBean.skins}" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu id="skinningSelect" value="#{richBean.skinningSelect}" style="width: 130px;">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="skinning" itemValue="skinning" />
+ <f:selectItem itemLabel="skinningClasses" itemValue="skinning classes" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+
+ <h:panelGroup layout="block">
+ <h:outputLabel id="templateSelectMenuLabel" for="templateSelectMenu" value="Template:" />
+ <h:selectOneMenu value="#{templateBean.templateId}" id="templateSelectMenu" style="width: 150px;">
+ <f:selectItems value="#{templateBean.availableTemplates}" />
+ <a4j:ajax event="change" action="/index" />
+ </h:selectOneMenu>
+ <h:commandLink id="loadTemplate" value="Load" render="commonGrid" />
+ </h:panelGroup>
+
+ <h:commandLink id="goHomeLink" action="/index?faces-redirect=true" value="Home" />
+
+ <a4j:commandLink render="commonGrid" value="Rerender all" id="reRenderAllLink" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:commandButton action="#{richBean.invalidateSession}" value="Invalidate Session" />
+ </h:panelGrid>
+ </h:panelGrid>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/templates/plain.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/plain.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/templates/plain.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,17 @@
+<!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:rich="http://java.sun.com/jsf/composite/rich">
+
+<ui:composition template="template.xhtml">
+
+ <ui:define name="template">
+ <div style="margin-bottom: 20px;"><ui:insert name="outOfTemplateBefore" /></div>
+
+ <ui:insert name="component" />
+
+ <div style="margin-top: 20px;"><ui:insert name="outOfTemplateAfter" /></div>
+ </ui:define>
+
+</ui:composition>
+</html>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/templates/reddiv.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/reddiv.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/templates/reddiv.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -0,0 +1,17 @@
+<!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:rich="http://java.sun.com/jsf/composite/rich">
+
+<ui:composition template="template.xhtml">
+
+ <ui:define name="template">
+ <div style="margin-bottom: 20px;"><ui:insert name="outOfTemplateBefore" /></div>
+
+ <div style="border: 3px red solid; padding: 10px; margin-top: 10px; margin-bottom: 10px;"><ui:insert name="component" /></div>
+
+ <div style="margin-top: 20px;"><ui:insert name="outOfTemplateAfter" /></div>
+ </ui:define>
+
+</ui:composition>
+</html>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:06:22 UTC (rev 17812)
+++ root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:08:18 UTC (rev 17813)
@@ -1,44 +1,36 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.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:rich="http://java.sun.com/jsf/composite/rich">
-
-<h:head>
- <title>Testing Application</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-
-</h:head>
-
-<h:body>
- <h:outputStylesheet library="css" name="common.css" />
-
- <div class="header"><ui:include src="/includes/header.xhtml" /></div>
-
- <div class="content"><rich:messages id="msgs" /> <h:form id="contentForm">
-
- <a4j:outputPanel id="testsPanel" rendered="#{richBean.reTests}" layout="block">
- <ui:include src="#{richBean.testsPage}" />
- <hr />
- </a4j:outputPanel>
-
- <a4j:outputPanel id="componentPanel" rendered="#{richBean.reComponent}" layout="block">
- <ui:include src="#{richBean.componentPage}" />
- <hr />
- </a4j:outputPanel>
-
- <a4j:outputPanel id="attributesPanel" rendered="#{richBean.reAttributes}" layout="block">
- <ui:include src="#{richBean.attributesPage}" />
- <hr />
- </a4j:outputPanel>
-
- </h:form></div>
-
- <div class="log"><a4j:log id="a4jLog" style="width: 800px; height: 300px;" popup="false" level="ALL"
- rendered="#{richBean.log}" /></div>
-
- <div class="footer"><ui:insert name="footer">
- RichFaces #{a4j.version}</ui:insert></div>
-
-</h:body>
-</html>
\ No newline at end of file
+<!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:rich="http://java.sun.com/jsf/composite/rich">
+
+<h:head>
+ <title><ui:insert name="pageTitle">Testing Application</ui:insert></title>
+ <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
+ <!-- <h:outputStylesheet library="css" name="common.css" />-->
+</h:head>
+
+<h:body>
+
+ <div class="header"><ui:include src="/templates/header.xhtml" /></div>
+
+ <div class="content">
+ <div id="controlPoint1">Control1</div>
+
+ <h:panelGroup id="commonGrid" layout="block">
+ <div><b>Status: </b> <input style="border: 0px; color: black; width: 700px" readonly="true"
+ id="statusMessage" /></div>
+ <br />
+ <div><h:form id="componentForm">
+ <ui:insert name="template" />
+ </h:form></div>
+ </h:panelGroup> <br />
+ <div id="controlPoint2">Control2</div>
+ </div>
+
+ <div id="footer"><ui:insert name="footer">
+ <hr />
+ RichFaces #{a4j.version}
+ </ui:insert></div>
+</h:body>
+
+</html>
14 years, 6 months
JBoss Rich Faces SVN: r17812 - in root/tests/metamer/trunk: src/main and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:06:22 -0400 (Sat, 10 Jul 2010)
New Revision: 17812
Added:
root/tests/metamer/trunk/src/main/assembly/
root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml
Modified:
root/tests/metamer/trunk/pom.xml
Log:
https://jira.jboss.org/jira/browse/RFPL-466
pom.xml refactored to create binaries for JBoss and Tomcat
Modified: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml 2010-07-10 18:05:56 UTC (rev 17811)
+++ root/tests/metamer/trunk/pom.xml 2010-07-10 18:06:22 UTC (rev 17812)
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
- http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>examples</artifactId>
- <groupId>org.richfaces</groupId>
- <version>4.0.0-SNAPSHOT</version>
- </parent>
+ <!-- <parent>-->
+ <!-- <artifactId>examples</artifactId>-->
+ <!-- <groupId>org.richfaces</groupId>-->
+ <!-- <version>4.0.0-SNAPSHOT</version>-->
+ <!-- </parent>-->
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.testapps</groupId>
<artifactId>testapp</artifactId>
<packaging>war</packaging>
<name>RichFaces Testing Application</name>
+ <version>4.0.0-SNAPSHOT</version>
<repositories>
<repository>
@@ -39,66 +39,96 @@
</repository>
</repositories>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.richfaces.ui.components</groupId>
<artifactId>core-ui</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
-
<dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>5.9</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>2.0.2-b10</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>2.0.2-b10</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.11</version>
+ <type>jar</type>
+ <scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ <version>1.5.11</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-jcl</artifactId>
+ <version>1.5.11</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.0.2.GA</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
- <version>4.0.0-SNAPSHOT</version>
<build>
- <finalName>testapp</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/tomcat6-assembly.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
- <profiles>
- <profile>
- <id>release</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <executions>
- <execution>
- <id>jee5</id>
- <phase>package</phase>
- <goals>
- <goal>war</goal>
- </goals>
- <configuration>
- <webappDirectory>${project.build.directory}/${project.build.finalName}-jee5</webappDirectory>
- <classifier>jee5</classifier>
- <packagingExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*</packagingExcludes>
- <warSourceExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*</warSourceExcludes>
- </configuration>
- </execution>
- </executions>
- <configuration>
- <classifier>tomcat6</classifier>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>jee5</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <webappDirectory>${project.build.directory}/${project.build.finalName}-jee5</webappDirectory>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
Added: root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml
===================================================================
--- root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml (rev 0)
+++ root/tests/metamer/trunk/src/main/assembly/tomcat6-assembly.xml 2010-07-10 18:06:22 UTC (rev 17812)
@@ -0,0 +1,55 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+
+ <id>tomcat6</id>
+
+ <formats>
+ <format>war</format>
+ </formats>
+
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>src/main/webapp</directory>
+ <outputDirectory>/</outputDirectory>
+ <excludes>
+ <exclude>/WEB-INF/.faces-config.xml.jsfdia</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>target/classes</directory>
+ <outputDirectory>WEB-INF/classes</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <outputDirectory>META-INF/maven/${groupId}/${artifactId}</outputDirectory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target/maven-archiver</directory>
+ <outputDirectory>META-INF/maven/${groupId}/${artifactId}</outputDirectory>
+ <includes>
+ <include>pom.properties</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+ <dependencySets>
+ <dependencySet>
+ <scope>runtime</scope>
+ <outputDirectory>WEB-INF/lib</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
+ <excludes>
+ <exclude>org.slf4j:slf4j-jcl</exclude>
+ </excludes>
+ </dependencySet>
+ <dependencySet>
+ <scope>provided</scope>
+ <useProjectArtifact>false</useProjectArtifact>
+ <outputDirectory>WEB-INF/lib</outputDirectory>
+ </dependencySet>
+ </dependencySets>
+
+</assembly>
\ No newline at end of file
14 years, 6 months
JBoss Rich Faces SVN: r17811 - in root/tests/metamer/trunk: src/main/java/org/richfaces/testapp/commandlink and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:05:56 -0400 (Sat, 10 Jul 2010)
New Revision: 17811
Modified:
root/tests/metamer/trunk/pom.xml
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml
root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
Log:
JBQA-3172 * fixed page with data table
Modified: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/pom.xml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -4,12 +4,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>examples</artifactId>
- <groupId>org.richfaces</groupId>
- <version>4.0.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>examples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>4.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.testapps</groupId>
<artifactId>testapp</artifactId>
<packaging>war</packaging>
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:05:56 UTC (rev 17811)
@@ -23,10 +23,12 @@
package org.richfaces.testapp.commandlink;
import java.util.List;
+import java.util.Set;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
+import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import org.richfaces.testapp.model.People;
@@ -47,6 +49,7 @@
private String input2;
private String input3;
private People people;
+ private int id;
@PostConstruct
public void init() {
@@ -89,6 +92,14 @@
this.people.setPeople(people);
}
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
public void runTestDisabled() {
attrs = LinkAttributes.getInstanceTestDisabled();
}
@@ -99,9 +110,31 @@
return null;
}
- public void toUpperCaseActionListener (ActionEvent e) {
+ public void toUpperCaseActionListener(ActionEvent e) {
input3 = input.toUpperCase();
}
+ public String first6CharsNameAction() {
+ for (Person p : getPeople()) {
+ if (p.getId() == id) {
+ p.setUpperCaseName(p.getName().toUpperCase());
+ input = p.getName();
+ int endIndex = input.length() > 6 ? 6 : input.length();
+ input2 = (String) input.subSequence(0, endIndex);
+ p.setShortName(input2);
+ break;
+ }
+ }
+
+ return null;
+ }
+ public void toUpperCaseNameActionListener(ActionEvent e) {
+ for (Person p : getPeople()) {
+ if (p.getId() == id) {
+ p.setUpperCaseName(p.getName().toUpperCase());
+ break;
+ }
+ }
+ }
}
Modified: root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -22,6 +22,10 @@
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
+ <context-param>
+ <param-name>javax.faces.SKIP_COMMENTS</param-name>
+ <param-value>true</param-value>
+ </context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
Modified: root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -1,7 +1,9 @@
<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
+
+ <h:outputStylesheet library="css" name="commandLink.css" />
+
<h:panelGrid id="attributes" columns="2">
<h:outputLabel id="disabledLabel" value="disabled" for="disabledCheckbox" />
<h:selectBooleanCheckbox id="disabledCheckbox" value="#{linkBean.attrs.disabled}">
@@ -10,12 +12,12 @@
<h:outputLabel id="renderedLabel" value="rendered" for="renderedCheckbox" />
<h:selectBooleanCheckbox id="renderedCheckbox" value="#{linkBean.attrs.rendered}">
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectBooleanCheckbox>
<h:outputLabel id="valueLabel" value="value" for="valueInput" />
<h:inputText id="valueInput" value="#{linkBean.attrs.value}">
- <a4j:ajax event="keyup" render="commandLink" execute="@this" />
+ <a4j:ajax event="keyup" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="renderLabel" value="render" for="renderSelect" />
@@ -29,12 +31,12 @@
<h:outputLabel id="focusLabel" value="focus" for="focusInput" />
<h:inputText id="focusInput" value="#{linkBean.attrs.focus}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="styleLabel" value="style" for="styleInput" />
<h:inputText id="styleInput" value="#{linkBean.attrs.style}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="styleClassLabel" value="styleClass" for="styleClassSelect" />
@@ -43,7 +45,7 @@
<f:selectItem itemLabel="red" itemValue="red" />
<f:selectItem itemLabel="big" itemValue="big" />
<f:selectItem itemLabel="red + big" itemValue="red big" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="langLabel" value="lang" for="langSelect" />
@@ -52,7 +54,7 @@
<f:selectItem itemLabel="en" itemValue="en" />
<f:selectItem itemLabel="sk" itemValue="sk" />
<f:selectItem itemLabel="ru" itemValue="ru" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="hreflangLabel" value="hreflang" for="hreflangSelect" />
@@ -61,7 +63,7 @@
<f:selectItem itemLabel="en" itemValue="en" />
<f:selectItem itemLabel="sk" itemValue="sk" />
<f:selectItem itemLabel="ru" itemValue="ru" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="charsetLabel" value="charset" for="charsetSelect" />
@@ -70,7 +72,7 @@
<f:selectItem itemLabel="utf-8" itemValue="utf-8" />
<f:selectItem itemLabel="iso-8859-1" itemValue="iso-8859-1" />
<f:selectItem itemLabel="iso-8859-2" itemValue="iso-8859-2" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="dirLabel" value="dir" for="dirSelect" />
@@ -78,7 +80,7 @@
<f:selectItem itemLabel="none" itemValue="" />
<f:selectItem itemLabel="ltr" itemValue="ltr" />
<f:selectItem itemLabel="rtl" itemValue="rtl" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="targetLabel" value="target" for="targetSelect" />
@@ -86,7 +88,7 @@
<f:selectItem itemLabel="none" itemValue="" />
<f:selectItem itemLabel="_self" itemValue="_self" />
<f:selectItem itemLabel="_blank" itemValue="_blank" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="shapeLabel" value="shape" for="shapeSelect" />
@@ -95,112 +97,112 @@
<f:selectItem itemLabel="rect" itemValue="rect" />
<f:selectItem itemLabel="circle" itemValue="circle" />
<f:selectItem itemLabel="poly" itemValue="poly" />
- <a4j:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="typeLabel" value="type" for="typeInput" />
<h:inputText id="typeInput" value="#{linkBean.attrs.type}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="titleLabel" value="title" for="titleInput" />
<h:inputText id="titleInput" value="#{linkBean.attrs.title}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="accesskeyLabel" value="accesskey" for="accesskeyInput" />
<h:inputText id="accesskeyInput" value="#{linkBean.attrs.accesskey}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="coordsLabel" value="coords" for="coordsInput" />
<h:inputText id="coordsInput" value="#{linkBean.attrs.coords}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="relLabel" value="rel" for="relInput" />
<h:inputText id="relInput" value="#{linkBean.attrs.rel}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="revLabel" value="rev" for="revInput" />
<h:inputText id="revInput" value="#{linkBean.attrs.rev}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="tabindexLabel" value="tabindex" for="tabindexInput" />
<h:inputText id="tabindexInput" value="#{linkBean.attrs.tabindex}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onbeforedomupdateLabel" value="onbeforedomupdate" for="onbeforedomupdateInput" />
<h:inputText id="onbeforedomupdateInput" value="#{linkBean.attrs.onbeforedomupdate}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onblurLabel" value="onblur" for="onblurInput" />
<h:inputText id="onblurInput" value="#{linkBean.attrs.onblur}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onclickLabel" value="onclick" for="onclickInput" />
<h:inputText id="onclickInput" value="#{linkBean.attrs.onclick}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="oncompleteLabel" value="oncomplete" for="oncompleteInput" />
<h:inputText id="oncompleteInput" value="#{linkBean.attrs.oncomplete}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="ondblclickLabel" value="ondblclick" for="ondblclickInput" />
<h:inputText id="ondblclickInput" value="#{linkBean.attrs.ondblclick}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onfocusLabel" value="onfocus" for="onfocusInput" />
<h:inputText id="onfocusInput" value="#{linkBean.attrs.onfocus}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onkeydownLabel" value="onkeydown" for="onkeydownInput" />
<h:inputText id="onkeydownInput" value="#{linkBean.attrs.onkeydown}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onkeypressLabel" value="onkeypress" for="onkeypressInput" />
<h:inputText id="onkeypressInput" value="#{linkBean.attrs.onkeypress}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onkeyupLabel" value="onkeyup" for="onkeyupInput" />
<h:inputText id="onkeyupInput" value="#{linkBean.attrs.onkeyup}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onmousedownLabel" value="onmousedown" for="onmousedownInput" />
<h:inputText id="onmousedownInput" value="#{linkBean.attrs.onmousedown}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onmousemoveLabel" value="onmousemove" for="onmousemoveInput" />
<h:inputText id="onmousemoveInput" value="#{linkBean.attrs.onmousemove}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onmouseoutLabel" value="onmouseout" for="onmouseoutInput" />
<h:inputText id="onmouseoutInput" value="#{linkBean.attrs.onmouseout}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onmouseoverLabel" value="onmouseover" for="onmouseoverInput" />
<h:inputText id="onmouseoverInput" value="#{linkBean.attrs.onmouseover}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
<h:outputLabel id="onmouseupLabel" value="onmouseup" for="onmouseupInput" />
<h:inputText id="onmouseupInput" value="#{linkBean.attrs.onmouseup}">
- <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="panel" execute="@this" />
</h:inputText>
</h:panelGrid>
Modified: root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -3,7 +3,7 @@
xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://java.sun.com/jsf/composite/rich">
<h:panelGrid id="panel">
- <h:dataTable id="linkDataTable" value="#{linkBean.people}" var="person">
+ <h:dataTable id="linkDataTable" value="#{linkBean.people}" var="person" >
<f:facet name="header">
<h:outputText value="List of famous people" />
</f:facet>
@@ -15,12 +15,12 @@
<h:inputText id="input" value="#{person.name}" style="width: 200px;" />
</h:column>
- <h:column>
+ <h:column id="commandLink">
<f:facet name="header">
<h:outputText value="Update" />
</f:facet>
- <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
- actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ <a4j:commandLink id="commandLinka" action="#{linkBean.first6CharsNameAction}"
+ actionListener="#{linkBean.toUpperCaseNameActionListener}" disabled="#{linkBean.attrs.disabled}"
value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}"
styleClass="#{linkBean.attrs.styleClass}" lang="#{linkBean.attrs.lang}"
title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}" hreflang="#{linkBean.attrs.hreflang}"
@@ -36,7 +36,10 @@
bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}"
coords="#{linkBean.attrs.coords}" rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}"
- shape="#{linkBean.attrs.shape}" tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
+ shape="#{linkBean.attrs.shape}" tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}">
+
+ <f:setPropertyActionListener target="#{linkBean.id}" value="#{person.id}"/>
+ </a4j:commandLink>
</h:column>
<h:column>
@@ -52,14 +55,14 @@
</f:facet>
<h:outputText id="output2" value="#{person.name}" />
</h:column>
-
+
<h:column>
<f:facet name="header">
<h:outputText value="action (first 6 chars)" />
</f:facet>
<h:outputText id="output3" value="#{person.shortName}" />
</h:column>
-
+
<h:column>
<f:facet name="header">
<h:outputText value="action listener (upper case)" />
@@ -74,6 +77,7 @@
</h:dataTable>
</h:panelGrid>
+
+ <a4j:commandButton value="Rerender" render="panel" />
-
</ui:composition>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -2,8 +2,6 @@
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://java.sun.com/jsf/composite/rich">
- <h:outputStylesheet library="css" name="commandLink.css" />
-
<h:panelGrid id="panel" columns="2">
<h:inputText id="input" value="#{linkBean.input}" />
Modified: root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -18,7 +18,7 @@
<h:panelGrid columns="2" style="width: 120px;">
<h:outputLabel id="a4jLogLabel" for="a4jLogCheckbox" value="a4j:log" />
<h:selectBooleanCheckbox id="a4jLogCheckbox" value="#{richBean.log}">
-<!-- <a4j:ajax event="change" execute="@this" render="a4jLog"/>-->
+ <a4j:ajax event="change" execute="@this" render="a4jLog"/>
</h:selectBooleanCheckbox>
<h:outputLabel id="a4jStatusLabel" for="a4jStatus" value="a4j:status" />
<a4j:status id="a4jStatus">
Modified: root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
+++ root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:05:56 UTC (rev 17811)
@@ -6,6 +6,8 @@
<h:head>
<title>Testing Application</title>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+
</h:head>
<h:body>
@@ -13,7 +15,7 @@
<div class="header"><ui:include src="/includes/header.xhtml" /></div>
- <div class="content"><rich:messages id="msgs" /> <h:form id="contentForm" >
+ <div class="content"><rich:messages id="msgs" /> <h:form id="contentForm">
<a4j:outputPanel id="testsPanel" rendered="#{richBean.reTests}" layout="block">
<ui:include src="#{richBean.testsPage}" />
@@ -32,8 +34,8 @@
</h:form></div>
- <!-- <div class="log"><a4j:log id="a4jLog" style="width: 800px; height: 300px;" popup="false" level="ALL"-->
- <!-- rendered="#{richBean.log}" /></div>-->
+ <div class="log"><a4j:log id="a4jLog" style="width: 800px; height: 300px;" popup="false" level="ALL"
+ rendered="#{richBean.log}" /></div>
<div class="footer"><ui:insert name="footer">
RichFaces #{a4j.version}</ui:insert></div>
14 years, 6 months
JBoss Rich Faces SVN: r17810 - in root/tests/metamer/trunk/src/main: java/org/richfaces/testapp/commandlink and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:05:04 -0400 (Sat, 10 Jul 2010)
New Revision: 17810
Added:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/Person.java
root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml
Removed:
root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml
Modified:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml
root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
Log:
JBQA-3172 * added support for putting selected component into various containers * log temporarily removed * added some attributes for a4j:commandLink
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java 2010-07-10 18:05:04 UTC (rev 17810)
@@ -52,6 +52,7 @@
private boolean reTests;
private boolean log;
private String component;
+ private String container;
@PostConstruct
public void init() {
@@ -66,7 +67,8 @@
skins.add("plain");
skins.add("ruby");
skins.add("wine");
- setComponent("none");
+ component = "none";
+ container = "plain";
skin = "DEFAULT";
skinning = "disable";
skinningClasses = "disable";
@@ -166,6 +168,14 @@
return component;
}
+ public String getContainer() {
+ return container;
+ }
+
+ public void setContainer(String container) {
+ this.container = container;
+ }
+
public boolean isReTests() {
return reTests;
}
@@ -181,12 +191,12 @@
public void setSkinningSelect(String skinningSelect) {
this.skinningSelect = skinningSelect;
}
-
+
public String getComponentPage() {
if (component.equals("none")) {
return "/none.xhtml";
} else {
- return String.format("/%s/component.xhtml", component);
+ return String.format("/%s/%s.xhtml", component, container);
}
}
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java 2010-07-10 18:05:04 UTC (rev 17810)
@@ -1,12 +1,13 @@
package org.richfaces.testapp.commandlink;
public class LinkAttributes {
-
- private String render = "outputs";
+
+ private String render = "output1,output2,output3,output4";
private String value = "update";
private boolean disabled = false;
private boolean ajaxSingle = false;
private boolean bypassUpdates = false;
+ private boolean rendered = true;
private String action;
private String actionListener;
private String style;
@@ -18,9 +19,14 @@
private String charset;
private String focus;
private String accesskey;
- private boolean rendered = true;
private String target;
-
+ private String coords;
+ private String rel;
+ private String rev;
+ private String shape = "default";
+ private String type;
+ private int tabindex;
+
private String onbeforedomupdate;
private String onblur;
private String onclick;
@@ -35,22 +41,20 @@
private String onmouseout;
private String onmouseover;
private String onmouseup;
-
+
private boolean limitRender;
private String queue;
private int requestDelay;
private boolean ignoreDupResponses;
private String process;
private boolean immediate;
-
+
private String onbegin;
private String onsuccess;
private String onerror;
private String data;
private String onsubmit;
-
-
-
+
public String getTitle() {
return title;
}
@@ -86,43 +90,43 @@
public String getRender() {
return render;
}
-
+
public void setRender(String render) {
this.render = render;
}
-
+
public String getValue() {
return value;
}
-
+
public void setValue(String value) {
this.value = value;
}
-
+
public boolean isLimitRender() {
return limitRender;
}
-
+
public void setLimitRender(boolean limitRender) {
this.limitRender = limitRender;
}
-
+
public String getQueue() {
return queue;
}
-
+
public void setQueue(String queue) {
this.queue = queue;
}
-
+
public int getRequestDelay() {
return requestDelay;
}
-
+
public void setRequestDelay(int requestDelay) {
this.requestDelay = requestDelay;
}
-
+
public String getTarget() {
return target;
}
@@ -134,51 +138,51 @@
public boolean isIgnoreDupResponses() {
return ignoreDupResponses;
}
-
+
public void setIgnoreDupResponses(boolean ignoreDupResponses) {
this.ignoreDupResponses = ignoreDupResponses;
}
-
+
public String getProcess() {
return process;
}
-
+
public void setProcess(String process) {
this.process = process;
}
-
+
public boolean isImmediate() {
return immediate;
}
-
+
public void setImmediate(boolean immediate) {
this.immediate = immediate;
}
-
+
public boolean isBypassUpdates() {
return bypassUpdates;
}
-
+
public void setBypassUpdates(boolean bypassUpdates) {
this.bypassUpdates = bypassUpdates;
}
-
+
public String getAction() {
return action;
}
-
+
public void setAction(String action) {
this.action = action;
}
-
+
public String getActionListener() {
return actionListener;
}
-
+
public void setActionListener(String actionListener) {
this.actionListener = actionListener;
}
-
+
public String getCharset() {
return charset;
}
@@ -187,6 +191,46 @@
this.charset = charset;
}
+ public String getCoords() {
+ return coords;
+ }
+
+ public void setCoords(String coords) {
+ this.coords = coords;
+ }
+
+ public String getRel() {
+ return rel;
+ }
+
+ public void setRel(String rel) {
+ this.rel = rel;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public int getTabindex() {
+ return tabindex;
+ }
+
+ public void setTabindex(int tabindex) {
+ this.tabindex = tabindex;
+ }
+
+ public String getShape() {
+ return shape;
+ }
+
+ public void setShape(String shape) {
+ this.shape = shape;
+ }
+
public void setAccesskey(String accesskey) {
this.accesskey = accesskey;
}
@@ -194,51 +238,51 @@
public String getOnsubmit() {
return onsubmit;
}
-
+
public void setOnsubmit(String onsubmit) {
this.onsubmit = onsubmit;
}
-
+
public String getOnbegin() {
return onbegin;
}
-
+
public void setOnbegin(String onbegin) {
this.onbegin = onbegin;
}
-
+
public String getOnclick() {
return onclick;
}
-
+
public void setOnclick(String onclick) {
this.onclick = onclick;
}
-
+
public String getOnsuccess() {
return onsuccess;
}
-
+
public void setOnsuccess(String onsuccess) {
this.onsuccess = onsuccess;
}
-
+
public String getOncomplete() {
return oncomplete;
}
-
+
public void setOncomplete(String oncomplete) {
this.oncomplete = oncomplete;
}
-
+
public String getOnerror() {
return onerror;
}
-
+
public void setOnerror(String onerror) {
this.onerror = onerror;
}
-
+
public String getOnbeforedomupdate() {
return onbeforedomupdate;
}
@@ -338,51 +382,59 @@
public String getData() {
return data;
}
-
+
public void setData(String data) {
this.data = data;
}
-
+
+ public String getRev() {
+ return rev;
+ }
+
+ public void setRev(String rev) {
+ this.rev = rev;
+ }
+
public boolean isDisabled() {
return disabled;
}
-
+
public void setDisabled(boolean disabled) {
this.disabled = disabled;
}
-
+
public String getFocus() {
return focus;
}
-
+
public void setFocus(String focus) {
this.focus = focus;
}
-
+
public String getDir() {
return dir;
}
-
+
public void setDir(String dir) {
this.dir = dir;
}
-
+
public String getStyle() {
return style;
}
-
+
public void setStyle(String style) {
this.style = style;
}
-
+
public String getStyleClass() {
return styleClass;
}
-
+
public void setStyleClass(String styleClass) {
this.styleClass = styleClass;
}
-
+
public void setHreflang(String hreflang) {
this.hreflang = hreflang;
}
@@ -390,7 +442,7 @@
public String getHreflang() {
return hreflang;
}
-
+
public void setRendered(boolean rendered) {
this.rendered = rendered;
}
@@ -398,13 +450,11 @@
public boolean isRendered() {
return rendered;
}
-
+
public static LinkAttributes getInstanceTestDisabled() {
- System.out.println("getInstance");
LinkAttributes cLinkBean = new LinkAttributes();
cLinkBean.setDisabled(true);
return cLinkBean;
}
-
}
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:05:04 UTC (rev 17810)
@@ -22,11 +22,16 @@
package org.richfaces.testapp.commandlink;
+import java.util.List;
+
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
+import org.richfaces.testapp.model.People;
+import org.richfaces.testapp.model.Person;
+
/**
*
*
@@ -41,6 +46,7 @@
private String input;
private String input2;
private String input3;
+ private People people;
@PostConstruct
public void init() {
@@ -71,6 +77,18 @@
this.input = input;
}
+ public List<Person> getPeople() {
+ if (people == null) {
+ people = new People();
+ }
+
+ return people.getPeople();
+ }
+
+ public void setPeople(List<Person> people) {
+ this.people.setPeople(people);
+ }
+
public void runTestDisabled() {
attrs = LinkAttributes.getInstanceTestDisabled();
}
@@ -84,4 +102,6 @@
public void toUpperCaseActionListener (ActionEvent e) {
input3 = input.toUpperCase();
}
+
+
}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/People.java 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,124 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp.model;
+
+import java.awt.Color;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.List;
+import java.util.TimeZone;
+import org.richfaces.testapp.model.Person;
+
+/**
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+public class People {
+ private List<Person> people = new ArrayList<Person>();
+
+ public People() {
+ Calendar cal = Calendar.getInstance();
+ cal.setTimeZone(TimeZone.getDefault());
+
+ Person p = new Person();
+ p.setId(Person.getMaxId());
+ p.setName("John Smith");
+ p.setKids(2);
+ p.setSex(Person.MALE);
+ p.setDescription("worker in a huge factory");
+ p.setSalary(1000);
+ p.setColor(Color.BLACK);
+ cal.set(1985, Calendar.MAY, 30);
+ p.setBirthdate(cal.getTime());
+ people.add(p);
+
+ p = new Person();
+ p.setId(Person.getMaxId());
+ p.setName("Isaac Newton");
+ p.setKids(1);
+ p.setSex(Person.MALE);
+ p.setDescription("scientist, physician");
+ p.setSalary(1342);
+ p.setColor(Color.YELLOW);
+ cal.set(1643, Calendar.JANUARY, 4);
+ p.setBirthdate(cal.getTime());
+ people.add(p);
+
+ p = new Person();
+ p.setId(Person.getMaxId());
+ p.setName("Laura Chinchilla");
+ p.setKids(3);
+ p.setSex(Person.FEMALE);
+ p.setDescription("president of Costa Rica");
+ p.setSalary(3568);
+ p.setColor(Color.BLUE);
+ cal.set(1959, Calendar.MAY, 28);
+ p.setBirthdate(cal.getTime());
+ people.add(p);
+
+ p = new Person();
+ p.setId(Person.getMaxId());
+ p.setName("Marie Curie");
+ p.setKids(3);
+ p.setSex(Person.FEMALE);
+ p.setDescription("scientist");
+ p.setSalary(1990);
+ p.setColor(Color.CYAN);
+ cal.set(1867, Calendar.NOVEMBER, 7);
+ p.setBirthdate(cal.getTime());
+ people.add(p);
+
+ p = new Person();
+ p.setId(Person.getMaxId());
+ p.setName("Kate Moss");
+ p.setKids(0);
+ p.setSex(Person.FEMALE);
+ p.setDescription("actress");
+ p.setSalary(8577);
+ p.setColor(Color.MAGENTA);
+ cal.set(1974, Calendar.JANUARY, 16);
+ p.setBirthdate(cal.getTime());
+ people.add(p);
+
+ p = new Person();
+ p.setId(Person.getMaxId());
+ p.setName("Milan Rastislav Štefánik");
+ p.setKids(0);
+ p.setSex(Person.MALE);
+ p.setDescription("general of French army, scientist");
+ p.setSalary(11244);
+ p.setColor(Color.RED);
+ cal.set(1880, Calendar.JULY, 21);
+ p.setBirthdate(cal.getTime());
+ people.add(p);
+ }
+
+ public void setPeople(List<Person> people) {
+ this.people = people;
+ }
+
+ public List<Person> getPeople() {
+ return people;
+ }
+}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/Person.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/Person.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/model/Person.java 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,140 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp.model;
+
+import java.awt.Color;
+import java.util.Date;
+
+/**
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+public class Person {
+
+ public static final int MALE = 0;
+ public static final int FEMALE = 1;
+
+ private static int maxId = 0;
+
+ private int id;
+ private String name;
+ private String shortName;
+ private String upperCaseName;
+ private Date birthdate;
+ private int kids;
+ private String description;
+ private int sex;
+ private int salary;
+ private Color color;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getShortName() {
+ return shortName;
+ }
+
+ public void setShortName(String shortName) {
+ this.shortName = shortName;
+ }
+
+ public String getUpperCaseName() {
+ return upperCaseName;
+ }
+
+ public void setUpperCaseName(String upperCaseName) {
+ this.upperCaseName = upperCaseName;
+ }
+
+ public Date getBirthdate() {
+ return birthdate;
+ }
+
+ public void setBirthdate(Date birthdate) {
+ this.birthdate = birthdate;
+ }
+
+ public int getKids() {
+ return kids;
+ }
+
+ public void setKids(int kids) {
+ if (kids > 4) {
+ this.kids = 5;
+ } else if (kids < 0) {
+ this.kids = 0;
+ } else {
+ this.kids = kids;
+ }
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public int getSex() {
+ return sex;
+ }
+
+ public void setSex(int sex) {
+ this.sex = sex;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public int getSalary() {
+ return salary;
+ }
+
+ public void setSalary(int salary) {
+ this.salary = salary;
+ }
+
+ public void setColor(Color color) {
+ this.color = color;
+ }
+
+ public Color getColor() {
+ return color;
+ }
+
+ public static int getMaxId() {
+ return maxId++;
+ }
+}
Modified: root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -3,6 +3,6 @@
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
<lifecycle>
- <phase-listener>org.richfaces.testapp.RichPhaseListener</phase-listener>
+<!-- <phase-listener>org.richfaces.testapp.RichPhaseListener</phase-listener>-->
</lifecycle>
</faces-config>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -2,15 +2,20 @@
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://java.sun.com/jsf/composite/rich">
- <h:panelGrid id="attributes" columns="2" style="padding-top: 30px;">
+ <h:panelGrid id="attributes" columns="2">
<h:outputLabel id="disabledLabel" value="disabled" for="disabledCheckbox" />
<h:selectBooleanCheckbox id="disabledCheckbox" value="#{linkBean.attrs.disabled}">
- <f:ajax even="change" render="commandLink disabledCheckbox" execute="@this"/>
+ <a4j:ajax even="change" render="panel" execute="@this" />
</h:selectBooleanCheckbox>
+ <h:outputLabel id="renderedLabel" value="rendered" for="renderedCheckbox" />
+ <h:selectBooleanCheckbox id="renderedCheckbox" value="#{linkBean.attrs.rendered}">
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectBooleanCheckbox>
+
<h:outputLabel id="valueLabel" value="value" for="valueInput" />
<h:inputText id="valueInput" value="#{linkBean.attrs.value}">
- <f:ajax event="blur" render="commandLink" execute="@this"/>
+ <a4j:ajax event="keyup" render="commandLink" execute="@this" />
</h:inputText>
<h:outputLabel id="renderLabel" value="render" for="renderSelect" />
@@ -18,22 +23,27 @@
<f:selectItem itemLabel="none" itemValue="" />
<f:selectItem itemLabel="output1" itemValue="output1" />
<f:selectItem itemLabel="output2" itemValue="output2" />
- <f:selectItem itemLabel="all" itemValue="outputs" />
- <f:ajax even="change" render="commandLink" execute="@this"/>
+ <f:selectItem itemLabel="all" itemValue="output1,output2,output3,output4" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
</h:selectOneRadio>
-
+
+ <h:outputLabel id="focusLabel" value="focus" for="focusInput" />
+ <h:inputText id="focusInput" value="#{linkBean.attrs.focus}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
<h:outputLabel id="styleLabel" value="style" for="styleInput" />
<h:inputText id="styleInput" value="#{linkBean.attrs.style}">
- <f:ajax event="blur" render="commandLink" execute="@this" />
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
<h:outputLabel id="styleClassLabel" value="styleClass" for="styleClassSelect" />
<h:selectOneRadio id="styleClassSelect" value="#{linkBean.attrs.styleClass}">
- <f:selectItem itemLabel="none" itemValue=" " />
+ <f:selectItem itemLabel="none" itemValue="" />
<f:selectItem itemLabel="red" itemValue="red" />
<f:selectItem itemLabel="big" itemValue="big" />
<f:selectItem itemLabel="red + big" itemValue="red big" />
- <f:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
</h:selectOneRadio>
<h:outputLabel id="langLabel" value="lang" for="langSelect" />
@@ -42,95 +52,157 @@
<f:selectItem itemLabel="en" itemValue="en" />
<f:selectItem itemLabel="sk" itemValue="sk" />
<f:selectItem itemLabel="ru" itemValue="ru" />
- <f:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
</h:selectOneRadio>
- <h:outputLabel id="titleLabel" value="title" for="titleInput" />
- <h:inputText id="titleInput" value="#{linkBean.attrs.title}">
- <f:ajax event="blur" render="commandLink" execute="@this" />
- </h:inputText>
+ <h:outputLabel id="hreflangLabel" value="hreflang" for="hreflangSelect" />
+ <h:selectOneRadio id="hreflangSelect" value="#{linkBean.attrs.hreflang}">
+ <f:selectItem itemLabel="none" itemValue="" />
+ <f:selectItem itemLabel="en" itemValue="en" />
+ <f:selectItem itemLabel="sk" itemValue="sk" />
+ <f:selectItem itemLabel="ru" itemValue="ru" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+ <h:outputLabel id="charsetLabel" value="charset" for="charsetSelect" />
+ <h:selectOneRadio id="charsetSelect" value="#{linkBean.attrs.charset}">
+ <f:selectItem itemLabel="none" itemValue="" />
+ <f:selectItem itemLabel="utf-8" itemValue="utf-8" />
+ <f:selectItem itemLabel="iso-8859-1" itemValue="iso-8859-1" />
+ <f:selectItem itemLabel="iso-8859-2" itemValue="iso-8859-2" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+
<h:outputLabel id="dirLabel" value="dir" for="dirSelect" />
<h:selectOneRadio id="dirSelect" value="#{linkBean.attrs.dir}">
<f:selectItem itemLabel="none" itemValue="" />
<f:selectItem itemLabel="ltr" itemValue="ltr" />
<f:selectItem itemLabel="rtl" itemValue="rtl" />
- <f:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
</h:selectOneRadio>
-
+
<h:outputLabel id="targetLabel" value="target" for="targetSelect" />
<h:selectOneRadio id="targetSelect" value="#{linkBean.attrs.target}">
<f:selectItem itemLabel="none" itemValue="" />
<f:selectItem itemLabel="_self" itemValue="_self" />
<f:selectItem itemLabel="_blank" itemValue="_blank" />
- <f:ajax even="change" render="commandLink" execute="@this" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
</h:selectOneRadio>
-
+
+ <h:outputLabel id="shapeLabel" value="shape" for="shapeSelect" />
+ <h:selectOneRadio id="shapeSelect" value="#{linkBean.attrs.shape}">
+ <f:selectItem itemLabel="default" itemValue="default" />
+ <f:selectItem itemLabel="rect" itemValue="rect" />
+ <f:selectItem itemLabel="circle" itemValue="circle" />
+ <f:selectItem itemLabel="poly" itemValue="poly" />
+ <a4j:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+
+ <h:outputLabel id="typeLabel" value="type" for="typeInput" />
+ <h:inputText id="typeInput" value="#{linkBean.attrs.type}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="titleLabel" value="title" for="titleInput" />
+ <h:inputText id="titleInput" value="#{linkBean.attrs.title}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="accesskeyLabel" value="accesskey" for="accesskeyInput" />
+ <h:inputText id="accesskeyInput" value="#{linkBean.attrs.accesskey}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="coordsLabel" value="coords" for="coordsInput" />
+ <h:inputText id="coordsInput" value="#{linkBean.attrs.coords}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="relLabel" value="rel" for="relInput" />
+ <h:inputText id="relInput" value="#{linkBean.attrs.rel}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="revLabel" value="rev" for="revInput" />
+ <h:inputText id="revInput" value="#{linkBean.attrs.rev}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="tabindexLabel" value="tabindex" for="tabindexInput" />
+ <h:inputText id="tabindexInput" value="#{linkBean.attrs.tabindex}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
<h:outputLabel id="onbeforedomupdateLabel" value="onbeforedomupdate" for="onbeforedomupdateInput" />
<h:inputText id="onbeforedomupdateInput" value="#{linkBean.attrs.onbeforedomupdate}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onblurLabel" value="onblur" for="onblurInput" />
<h:inputText id="onblurInput" value="#{linkBean.attrs.onblur}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onclickLabel" value="onclick" for="onclickInput" />
<h:inputText id="onclickInput" value="#{linkBean.attrs.onclick}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="oncompleteLabel" value="oncomplete" for="oncompleteInput" />
<h:inputText id="oncompleteInput" value="#{linkBean.attrs.oncomplete}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="ondblclickLabel" value="ondblclick" for="ondblclickInput" />
<h:inputText id="ondblclickInput" value="#{linkBean.attrs.ondblclick}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onfocusLabel" value="onfocus" for="onfocusInput" />
<h:inputText id="onfocusInput" value="#{linkBean.attrs.onfocus}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onkeydownLabel" value="onkeydown" for="onkeydownInput" />
<h:inputText id="onkeydownInput" value="#{linkBean.attrs.onkeydown}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onkeypressLabel" value="onkeypress" for="onkeypressInput" />
<h:inputText id="onkeypressInput" value="#{linkBean.attrs.onkeypress}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onkeyupLabel" value="onkeyup" for="onkeyupInput" />
<h:inputText id="onkeyupInput" value="#{linkBean.attrs.onkeyup}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
+ <h:outputLabel id="onmousedownLabel" value="onmousedown" for="onmousedownInput" />
+ <h:inputText id="onmousedownInput" value="#{linkBean.attrs.onmousedown}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
<h:outputLabel id="onmousemoveLabel" value="onmousemove" for="onmousemoveInput" />
<h:inputText id="onmousemoveInput" value="#{linkBean.attrs.onmousemove}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onmouseoutLabel" value="onmouseout" for="onmouseoutInput" />
<h:inputText id="onmouseoutInput" value="#{linkBean.attrs.onmouseout}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onmouseoverLabel" value="onmouseover" for="onmouseoverInput" />
<h:inputText id="onmouseoverInput" value="#{linkBean.attrs.onmouseover}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
<h:outputLabel id="onmouseupLabel" value="onmouseup" for="onmouseupInput" />
<h:inputText id="onmouseupInput" value="#{linkBean.attrs.onmouseup}">
<a4j:ajax event="blur" render="commandLink" execute="@this" />
</h:inputText>
-
+
</h:panelGrid>
</ui:composition>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -1,40 +0,0 @@
-<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
-
- <h:outputStylesheet library="css" name="commandLink.css" />
-
- <a4j:queue name="myQ" />
-
- <h:panelGrid id="panel" columns="2">
- <h:inputText id="nameInput" value="#{linkBean.input}" />
-
- <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
- actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
- value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
- lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
- hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
- onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
- onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}"
- oncomplete="#{linkBean.attrs.oncomplete}" ondblclick="#{linkBean.attrs.ondblclick}"
- onfocus="#{linkBean.attrs.onfocus}" onkeydown="#{linkBean.attrs.onkeydown}"
- onkeypress="#{linkBean.attrs.onkeypress}" onkeyup="#{linkBean.attrs.onkeyup}"
- onmousedown="#{linkBean.attrs.onmousedown}" onmousemove="#{linkBean.attrs.onmousemove}"
- onmouseout="#{linkBean.attrs.onmouseout}" onmouseover="#{linkBean.attrs.onmouseover}"
- onmouseup="#{linkBean.attrs.onmouseup}" accesskey="#{linkBean.attrs.accesskey}"
- ajaxSingle="#{linkBean.attrs.ajaxSingle}" bypassUpdates="#{linkBean.attrs.bypassUpdates}"
- charset="#{linkBean.attrs.charset}" rendered="#{linkBean.attrs.rendered}" status="a4jStatus"
- target="#{linkBean.attrs.target}"/>
-
- </h:panelGrid>
-
- <h:panelGrid id="outputs" columns="2">
- output1: <h:outputText value="#{linkBean.input}" id="output1" />
- output2: <h:outputText value="#{linkBean.input}" id="output2" />
- action (first 6 chars): <h:outputText value="#{linkBean.input2}" id="output3" />
- action listener (upper case):<h:outputText value="#{linkBean.input3}" id="output4" />
- </h:panelGrid>
-
- <a4j:commandButton value="Rerender" render="panel, outputs" />
-
-</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/dataTable.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,79 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:panelGrid id="panel">
+ <h:dataTable id="linkDataTable" value="#{linkBean.people}" var="person">
+ <f:facet name="header">
+ <h:outputText value="List of famous people" />
+ </f:facet>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:inputText id="input" value="#{person.name}" style="width: 200px;" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Update" />
+ </f:facet>
+ <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
+ actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}"
+ styleClass="#{linkBean.attrs.styleClass}" lang="#{linkBean.attrs.lang}"
+ title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}" hreflang="#{linkBean.attrs.hreflang}"
+ render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}" onsubmit="alert('onsubmit')"
+ onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}" onblur="#{linkBean.attrs.onblur}"
+ onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
+ ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
+ onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
+ onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
+ onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
+ onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
+ accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
+ bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
+ rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}"
+ coords="#{linkBean.attrs.coords}" rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}"
+ shape="#{linkBean.attrs.shape}" tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="output1" />
+ </f:facet>
+ <h:outputText id="output1" value="#{person.name}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="output2" />
+ </f:facet>
+ <h:outputText id="output2" value="#{person.name}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="action (first 6 chars)" />
+ </f:facet>
+ <h:outputText id="output3" value="#{person.shortName}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="action listener (upper case)" />
+ </f:facet>
+ <h:outputText id="output4" value="#{person.upperCaseName}" />
+ </h:column>
+
+ <f:facet name="footer">
+ <h:outputText value="List of famous people" />
+ </f:facet>
+
+ </h:dataTable>
+
+ </h:panelGrid>
+
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/extendedDataTable.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,25 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ There will be a command link inside extended data table.
+
+ <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
+ actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
+ lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
+ hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
+ onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
+ onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
+ ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
+ onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
+ onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
+ onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
+ onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
+ accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
+ bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
+ rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}" coords="#{linkBean.attrs.coords}"
+ rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}" shape="#{linkBean.attrs.shape}"
+ tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/modalPanel.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,25 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ There will be a command link inside modal panel.
+
+ <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
+ actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
+ lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
+ hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
+ onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
+ onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
+ ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
+ onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
+ onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
+ onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
+ onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
+ accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
+ bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
+ rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}" coords="#{linkBean.attrs.coords}"
+ rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}" shape="#{linkBean.attrs.shape}"
+ tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/panel.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,25 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ There will be a command link inside panel.
+
+ <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
+ actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
+ lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
+ hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
+ onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
+ onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}" oncomplete="#{linkBean.attrs.oncomplete}"
+ ondblclick="#{linkBean.attrs.ondblclick}" onfocus="#{linkBean.attrs.onfocus}"
+ onkeydown="#{linkBean.attrs.onkeydown}" onkeypress="#{linkBean.attrs.onkeypress}"
+ onkeyup="#{linkBean.attrs.onkeyup}" onmousedown="#{linkBean.attrs.onmousedown}"
+ onmousemove="#{linkBean.attrs.onmousemove}" onmouseout="#{linkBean.attrs.onmouseout}"
+ onmouseover="#{linkBean.attrs.onmouseover}" onmouseup="#{linkBean.attrs.onmouseup}"
+ accesskey="#{linkBean.attrs.accesskey}" ajaxSingle="#{linkBean.attrs.ajaxSingle}"
+ bypassUpdates="#{linkBean.attrs.bypassUpdates}" charset="#{linkBean.attrs.charset}"
+ rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}" coords="#{linkBean.attrs.coords}"
+ rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}" shape="#{linkBean.attrs.shape}"
+ tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
+
+</ui:composition>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml (from rev 17809, root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/plain.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -0,0 +1,39 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:outputStylesheet library="css" name="commandLink.css" />
+
+ <h:panelGrid id="panel" columns="2">
+ <h:inputText id="input" value="#{linkBean.input}" />
+
+ <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
+ actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
+ lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
+ hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
+ onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
+ onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}"
+ oncomplete="#{linkBean.attrs.oncomplete}" ondblclick="#{linkBean.attrs.ondblclick}"
+ onfocus="#{linkBean.attrs.onfocus}" onkeydown="#{linkBean.attrs.onkeydown}"
+ onkeypress="#{linkBean.attrs.onkeypress}" onkeyup="#{linkBean.attrs.onkeyup}"
+ onmousedown="#{linkBean.attrs.onmousedown}" onmousemove="#{linkBean.attrs.onmousemove}"
+ onmouseout="#{linkBean.attrs.onmouseout}" onmouseover="#{linkBean.attrs.onmouseover}"
+ onmouseup="#{linkBean.attrs.onmouseup}" accesskey="#{linkBean.attrs.accesskey}"
+ ajaxSingle="#{linkBean.attrs.ajaxSingle}" bypassUpdates="#{linkBean.attrs.bypassUpdates}"
+ charset="#{linkBean.attrs.charset}" rendered="#{linkBean.attrs.rendered}" target="#{linkBean.attrs.target}"
+ coords="#{linkBean.attrs.coords}" rel="#{linkBean.attrs.rel}" rev="#{linkBean.attrs.rev}"
+ shape="#{linkBean.attrs.shape}" tabindex="#{linkBean.attrs.tabindex}" type="#{linkBean.attrs.type}" />
+
+ </h:panelGrid>
+
+ <h:panelGrid id="outputs" columns="2">
+ output1: <h:outputText value="#{linkBean.input}" id="output1" />
+ output2: <h:outputText value="#{linkBean.input}" id="output2" />
+ action (first 6 chars): <h:outputText value="#{linkBean.input2}" id="output3" />
+ action listener (upper case):<h:outputText value="#{linkBean.input3}" id="output4" />
+ </h:panelGrid>
+
+ <a4j:commandButton value="Rerender" render="panel, outputs" />
+
+</ui:composition>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -2,13 +2,23 @@
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://java.sun.com/jsf/composite/rich">
- <h:outputText value="Select component:" />
+ <h:outputLabel id="componentLabel" for="componentSelect" value="Component:" />
- <h:selectOneMenu id="componentSelect" value="#{richBean.component}" immediate="true">
+ <h:selectOneMenu id="componentSelect" value="#{richBean.component}" immediate="true" style="width: 100%;">
<f:selectItem itemLabel="-- None --" itemValue="none" />
<f:selectItem itemLabel="Command Link" itemValue="commandLink" />
</h:selectOneMenu>
+ <h:outputLabel id="containerLabel" for="containerSelect" value="Container:" />
+
+ <h:selectOneMenu id="containerSelect" value="#{richBean.container}" immediate="true">
+ <f:selectItem itemLabel="-- None --" itemValue="plain" />
+ <f:selectItem itemLabel="Data Table" itemValue="dataTable" />
+ <f:selectItem itemLabel="Extended Data Table" itemValue="extendedDataTable" />
+ <f:selectItem itemLabel="Modal Panel" itemValue="modalPanel" />
+ <f:selectItem itemLabel="Panel" itemValue="panel" />
+ </h:selectOneMenu>
+
<h:commandButton action="/index" value="Submit" />
-
+
</ui:composition>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -16,9 +16,9 @@
</h:panelGrid>
<h:panelGrid columns="2" style="width: 120px;">
- <h:outputLabel id="a4jLogLabel" for="a4jLog" value="a4j:log" />
+ <h:outputLabel id="a4jLogLabel" for="a4jLogCheckbox" value="a4j:log" />
<h:selectBooleanCheckbox id="a4jLogCheckbox" value="#{richBean.log}">
- <a4j:ajax event="change" execute="@this" render="a4jLog"/>
+<!-- <a4j:ajax event="change" execute="@this" render="a4jLog"/>-->
</h:selectBooleanCheckbox>
<h:outputLabel id="a4jStatusLabel" for="a4jStatus" value="a4j:status" />
<a4j:status id="a4jStatus">
@@ -53,8 +53,9 @@
</h:selectOneMenu>
</h:panelGrid>
- <h:panelGrid columns="1">
+ <h:panelGrid columns="2">
<ui:include src="/includes/components.xhtml" />
+ <ui:include src="/blank.xhtml" />
</h:panelGrid>
<h:panelGrid columns="1">
Modified: root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
+++ root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:05:04 UTC (rev 17810)
@@ -1,3 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.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:rich="http://java.sun.com/jsf/composite/rich">
@@ -11,27 +13,30 @@
<div class="header"><ui:include src="/includes/header.xhtml" /></div>
- <div class="content"><rich:messages id="msgs" /> <h:form id="testsForm" prependId="false">
- <a4j:outputPanel id="testsPanel" rendered="#{richBean.reTests}">
+ <div class="content"><rich:messages id="msgs" /> <h:form id="contentForm" >
+
+ <a4j:outputPanel id="testsPanel" rendered="#{richBean.reTests}" layout="block">
<ui:include src="#{richBean.testsPage}" />
<hr />
</a4j:outputPanel>
- </h:form> <h:form id="componentForm" prependId="false">
- <a4j:outputPanel id="componentPanel" rendered="#{richBean.reComponent}">
+
+ <a4j:outputPanel id="componentPanel" rendered="#{richBean.reComponent}" layout="block">
<ui:include src="#{richBean.componentPage}" />
+ <hr />
</a4j:outputPanel>
-<!-- </h:form> <h:form id="attributesForm" prependId="false">-->
- <a4j:outputPanel id="attributesPanel" rendered="#{richBean.reAttributes}">
+
+ <a4j:outputPanel id="attributesPanel" rendered="#{richBean.reAttributes}" layout="block">
<ui:include src="#{richBean.attributesPage}" />
+ <hr />
</a4j:outputPanel>
+
</h:form></div>
-
- <div class="log">
- <a4j:log id="a4jlog" style="width: 800px; height: 300px;" popup="false" level="ALL" rendered="#{richBean.log}"/>
- </div>
-
+
+ <!-- <div class="log"><a4j:log id="a4jLog" style="width: 800px; height: 300px;" popup="false" level="ALL"-->
+ <!-- rendered="#{richBean.log}" /></div>-->
+
<div class="footer"><ui:insert name="footer">
- <hr />RichFaces #{a4j.version}</ui:insert></div>
+ RichFaces #{a4j.version}</ui:insert></div>
</h:body>
</html>
\ No newline at end of file
14 years, 6 months
JBoss Rich Faces SVN: r17809 - in root/tests/metamer/trunk: src and 20 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-07-10 14:04:01 -0400 (Sat, 10 Jul 2010)
New Revision: 17809
Added:
root/tests/metamer/trunk/pom.xml
root/tests/metamer/trunk/src/
root/tests/metamer/trunk/src/main/
root/tests/metamer/trunk/src/main/java/
root/tests/metamer/trunk/src/main/java/org/
root/tests/metamer/trunk/src/main/java/org/richfaces/
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
root/tests/metamer/trunk/src/main/resources/
root/tests/metamer/trunk/src/main/resources/org/
root/tests/metamer/trunk/src/main/resources/org/richfaces/
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf
root/tests/metamer/trunk/src/main/webapp/
root/tests/metamer/trunk/src/main/webapp/META-INF/
root/tests/metamer/trunk/src/main/webapp/META-INF/MANIFEST.MF
root/tests/metamer/trunk/src/main/webapp/WEB-INF/
root/tests/metamer/trunk/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml
root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml
root/tests/metamer/trunk/src/main/webapp/blank.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/
root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml
root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/
root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml
root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
root/tests/metamer/trunk/src/main/webapp/index.xhtml
root/tests/metamer/trunk/src/main/webapp/none.xhtml
root/tests/metamer/trunk/src/main/webapp/resources/
root/tests/metamer/trunk/src/main/webapp/resources/css/
root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css
root/tests/metamer/trunk/src/main/webapp/resources/css/common.css
root/tests/metamer/trunk/src/main/webapp/resources/images/
root/tests/metamer/trunk/src/main/webapp/resources/images/wait.gif
root/tests/metamer/trunk/src/main/webapp/templates/
root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
Log:
JBQA-3172 * first version of a test application for RichFaces 4
Added: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml (rev 0)
+++ root/tests/metamer/trunk/pom.xml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <artifactId>examples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>4.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.testapps</groupId>
+ <artifactId>testapp</artifactId>
+ <packaging>war</packaging>
+ <name>RichFaces Testing Application</name>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository for Maven</name>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository for Maven</name>
+ <url>http://snapshots.jboss.org/maven2</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <id>maven-repository2.dev.java.net</id>
+ <name>Java.net Repository for Maven 2</name>
+ <url>http://download.java.net/maven/2</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui.components</groupId>
+ <artifactId>core-ui</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.5.11</version>
+ </dependency>
+ </dependencies>
+
+ <version>4.0.0-SNAPSHOT</version>
+ <build>
+ <finalName>testapp</finalName>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>jee5</id>
+ <phase>package</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <webappDirectory>${project.build.directory}/${project.build.finalName}-jee5</webappDirectory>
+ <classifier>jee5</classifier>
+ <packagingExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*</packagingExcludes>
+ <warSourceExcludes>WEB-INF/lib/jsf-api*,WEB-INF/lib/jsf-impl*,WEB-INF/lib/jta-*</warSourceExcludes>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <classifier>tomcat6</classifier>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>jee5</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <webappDirectory>${project.build.directory}/${project.build.finalName}-jee5</webappDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichBean.java 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,223 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.context.FacesContext;
+import javax.servlet.http.HttpSession;
+
+/**
+ *
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean
+@SessionScoped
+public class RichBean {
+
+ private String skin;
+ private String skinning;
+ private String skinningClasses;
+ private String skinningSelect;
+ private List<String> skins;
+ private boolean reDefault;
+ private boolean reComponent;
+ private boolean reAttributes;
+ private boolean reTests;
+ private boolean log;
+ private String component;
+
+ @PostConstruct
+ public void init() {
+ skins = new ArrayList<String>();
+ skins.add("DEFAULT");
+ skins.add("NULL");
+ skins.add("blueSky");
+ skins.add("classic");
+ skins.add("deepMarine");
+ skins.add("emeraldTown");
+ skins.add("japanCherry");
+ skins.add("plain");
+ skins.add("ruby");
+ skins.add("wine");
+ setComponent("none");
+ skin = "DEFAULT";
+ skinning = "disable";
+ skinningClasses = "disable";
+ reTests = true;
+ reComponent = true;
+ reAttributes = true;
+ }
+
+ /**
+ * Getter for user's skin.
+ *
+ * @return a RichFaces skin
+ */
+ public String getSkin() {
+ return skin;
+ }
+
+ /**
+ * Setter for user's skin.
+ *
+ * @param skin
+ * a RichFaces skin
+ */
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
+ public String getSkinning() {
+ if (skinningSelect.equals("skinning")) {
+ return "enabled";
+ } else {
+ return "disabled";
+ }
+ }
+
+ public void setSkinning(String skinning) {
+ this.skinning = skinning;
+ }
+
+ public String getSkinningClasses() {
+ if (skinningSelect.equals("skinning classes")) {
+ return "enabled";
+ } else {
+ return "disabled";
+ }
+ }
+
+ public void setSkinningClasses(String skinningClasses) {
+ this.skinningClasses = skinningClasses;
+ }
+
+ public void setSkins(List<String> skins) {
+ this.skins = skins;
+ }
+
+ public List<String> getSkins() {
+ return skins;
+ }
+
+ public void setReDefault(boolean reDefault) {
+ this.reDefault = reDefault;
+ }
+
+ public boolean isReDefault() {
+ return reDefault;
+ }
+
+ public void setReComponent(boolean reComponent) {
+ this.reComponent = reComponent;
+ }
+
+ public boolean isReComponent() {
+ return reComponent;
+ }
+
+ public void setReAttributes(boolean reAttributes) {
+ this.reAttributes = reAttributes;
+ }
+
+ public boolean isReAttributes() {
+ return reAttributes;
+ }
+
+ public void setLog(boolean log) {
+ this.log = log;
+ }
+
+ public boolean isLog() {
+ return log;
+ }
+
+ public void setComponent(String component) {
+ this.component = component;
+ }
+
+ public String getComponent() {
+ return component;
+ }
+
+ public boolean isReTests() {
+ return reTests;
+ }
+
+ public void setReTests(boolean reTests) {
+ this.reTests = reTests;
+ }
+
+ public String getSkinningSelect() {
+ return skinningSelect;
+ }
+
+ public void setSkinningSelect(String skinningSelect) {
+ this.skinningSelect = skinningSelect;
+ }
+
+ public String getComponentPage() {
+ if (component.equals("none")) {
+ return "/none.xhtml";
+ } else {
+ return String.format("/%s/component.xhtml", component);
+ }
+ }
+
+ public String getTestsPage() {
+ if (component.equals("none")) {
+ return "/blank.xhtml";
+ } else {
+ return String.format("/%s/tests.xhtml", component);
+ }
+ }
+
+ public String getAttributesPage() {
+ if (component.equals("none")) {
+ return "/blank.xhtml";
+ } else {
+ return String.format("/%s/attributes.xhtml", component);
+ }
+ }
+
+ public String invalidateSession() {
+ Object session = FacesContext.getCurrentInstance().getExternalContext().getSession(false);
+
+ if (session == null) {
+ return "/index";
+ }
+
+ if (session instanceof HttpSession) {
+ ((HttpSession) session).invalidate();
+ return "/index";
+ }
+
+ throw new IllegalStateException();
+ }
+}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,23 @@
+package org.richfaces.testapp;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+
+public class RichPhaseListener implements javax.faces.event.PhaseListener {
+
+ private static final long serialVersionUID = 9026842190917014131L;
+
+ public void afterPhase(PhaseEvent event) {
+ FacesContext.getCurrentInstance().getExternalContext().log("AFTER - " + event.getPhaseId());
+ }
+
+ public void beforePhase(PhaseEvent event) {
+ FacesContext.getCurrentInstance().getExternalContext().log("BEFORE - " + event.getPhaseId());
+
+ }
+
+ public PhaseId getPhaseId() {
+ return PhaseId.ANY_PHASE;
+ }
+}
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkAttributes.java 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,410 @@
+package org.richfaces.testapp.commandlink;
+
+public class LinkAttributes {
+
+ private String render = "outputs";
+ private String value = "update";
+ private boolean disabled = false;
+ private boolean ajaxSingle = false;
+ private boolean bypassUpdates = false;
+ private String action;
+ private String actionListener;
+ private String style;
+ private String styleClass;
+ private String lang;
+ private String title;
+ private String dir;
+ private String hreflang;
+ private String charset;
+ private String focus;
+ private String accesskey;
+ private boolean rendered = true;
+ private String target;
+
+ private String onbeforedomupdate;
+ private String onblur;
+ private String onclick;
+ private String oncomplete;
+ private String ondblclick;
+ private String onfocus;
+ private String onkeydown;
+ private String onkeypress;
+ private String onkeyup;
+ private String onmousedown;
+ private String onmousemove;
+ private String onmouseout;
+ private String onmouseover;
+ private String onmouseup;
+
+ private boolean limitRender;
+ private String queue;
+ private int requestDelay;
+ private boolean ignoreDupResponses;
+ private String process;
+ private boolean immediate;
+
+ private String onbegin;
+ private String onsuccess;
+ private String onerror;
+ private String data;
+ private String onsubmit;
+
+
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getAccesskey() {
+ return accesskey;
+ }
+
+ public void setAccessKey(String accesskey) {
+ this.accesskey = accesskey;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
+
+ public String getLang() {
+ return lang;
+ }
+
+ public void setLang(String lang) {
+ this.lang = lang;
+ }
+
+ public String getRender() {
+ return render;
+ }
+
+ public void setRender(String render) {
+ this.render = render;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public boolean isLimitRender() {
+ return limitRender;
+ }
+
+ public void setLimitRender(boolean limitRender) {
+ this.limitRender = limitRender;
+ }
+
+ public String getQueue() {
+ return queue;
+ }
+
+ public void setQueue(String queue) {
+ this.queue = queue;
+ }
+
+ public int getRequestDelay() {
+ return requestDelay;
+ }
+
+ public void setRequestDelay(int requestDelay) {
+ this.requestDelay = requestDelay;
+ }
+
+ public String getTarget() {
+ return target;
+ }
+
+ public void setTarget(String target) {
+ this.target = target;
+ }
+
+ public boolean isIgnoreDupResponses() {
+ return ignoreDupResponses;
+ }
+
+ public void setIgnoreDupResponses(boolean ignoreDupResponses) {
+ this.ignoreDupResponses = ignoreDupResponses;
+ }
+
+ public String getProcess() {
+ return process;
+ }
+
+ public void setProcess(String process) {
+ this.process = process;
+ }
+
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+ public boolean isBypassUpdates() {
+ return bypassUpdates;
+ }
+
+ public void setBypassUpdates(boolean bypassUpdates) {
+ this.bypassUpdates = bypassUpdates;
+ }
+
+ public String getAction() {
+ return action;
+ }
+
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ public String getActionListener() {
+ return actionListener;
+ }
+
+ public void setActionListener(String actionListener) {
+ this.actionListener = actionListener;
+ }
+
+ public String getCharset() {
+ return charset;
+ }
+
+ public void setCharset(String charset) {
+ this.charset = charset;
+ }
+
+ public void setAccesskey(String accesskey) {
+ this.accesskey = accesskey;
+ }
+
+ public String getOnsubmit() {
+ return onsubmit;
+ }
+
+ public void setOnsubmit(String onsubmit) {
+ this.onsubmit = onsubmit;
+ }
+
+ public String getOnbegin() {
+ return onbegin;
+ }
+
+ public void setOnbegin(String onbegin) {
+ this.onbegin = onbegin;
+ }
+
+ public String getOnclick() {
+ return onclick;
+ }
+
+ public void setOnclick(String onclick) {
+ this.onclick = onclick;
+ }
+
+ public String getOnsuccess() {
+ return onsuccess;
+ }
+
+ public void setOnsuccess(String onsuccess) {
+ this.onsuccess = onsuccess;
+ }
+
+ public String getOncomplete() {
+ return oncomplete;
+ }
+
+ public void setOncomplete(String oncomplete) {
+ this.oncomplete = oncomplete;
+ }
+
+ public String getOnerror() {
+ return onerror;
+ }
+
+ public void setOnerror(String onerror) {
+ this.onerror = onerror;
+ }
+
+ public String getOnbeforedomupdate() {
+ return onbeforedomupdate;
+ }
+
+ public void setOnbeforedomupdate(String onbeforedomupdate) {
+ this.onbeforedomupdate = onbeforedomupdate;
+ }
+
+ public String getOnblur() {
+ return onblur;
+ }
+
+ public void setOnblur(String onblur) {
+ this.onblur = onblur;
+ }
+
+ public String getOndblclick() {
+ return ondblclick;
+ }
+
+ public void setOndblclick(String ondblclick) {
+ this.ondblclick = ondblclick;
+ }
+
+ public String getOnfocus() {
+ return onfocus;
+ }
+
+ public void setOnfocus(String onfocus) {
+ this.onfocus = onfocus;
+ }
+
+ public String getOnkeydown() {
+ return onkeydown;
+ }
+
+ public void setOnkeydown(String onkeydown) {
+ this.onkeydown = onkeydown;
+ }
+
+ public String getOnkeypress() {
+ return onkeypress;
+ }
+
+ public void setOnkeypress(String onkeypress) {
+ this.onkeypress = onkeypress;
+ }
+
+ public String getOnkeyup() {
+ return onkeyup;
+ }
+
+ public void setOnkeyup(String onkeyup) {
+ this.onkeyup = onkeyup;
+ }
+
+ public String getOnmousedown() {
+ return onmousedown;
+ }
+
+ public void setOnmousedown(String onmousedown) {
+ this.onmousedown = onmousedown;
+ }
+
+ public String getOnmousemove() {
+ return onmousemove;
+ }
+
+ public void setOnmousemove(String onmousemove) {
+ this.onmousemove = onmousemove;
+ }
+
+ public String getOnmouseout() {
+ return onmouseout;
+ }
+
+ public void setOnmouseout(String onmouseout) {
+ this.onmouseout = onmouseout;
+ }
+
+ public String getOnmouseover() {
+ return onmouseover;
+ }
+
+ public void setOnmouseover(String onmouseover) {
+ this.onmouseover = onmouseover;
+ }
+
+ public String getOnmouseup() {
+ return onmouseup;
+ }
+
+ public void setOnmouseup(String onmouseup) {
+ this.onmouseup = onmouseup;
+ }
+
+ public String getData() {
+ return data;
+ }
+
+ public void setData(String data) {
+ this.data = data;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public String getFocus() {
+ return focus;
+ }
+
+ public void setFocus(String focus) {
+ this.focus = focus;
+ }
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public String getStyle() {
+ return style;
+ }
+
+ public void setStyle(String style) {
+ this.style = style;
+ }
+
+ public String getStyleClass() {
+ return styleClass;
+ }
+
+ public void setStyleClass(String styleClass) {
+ this.styleClass = styleClass;
+ }
+
+ public void setHreflang(String hreflang) {
+ this.hreflang = hreflang;
+ }
+
+ public String getHreflang() {
+ return hreflang;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public static LinkAttributes getInstanceTestDisabled() {
+ System.out.println("getInstance");
+ LinkAttributes cLinkBean = new LinkAttributes();
+ cLinkBean.setDisabled(true);
+ return cLinkBean;
+ }
+
+
+}
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java (rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/commandlink/LinkBean.java 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,87 @@
+/*******************************************************************************
+ * 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.
+ *******************************************************************************/
+
+package org.richfaces.testapp.commandlink;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.event.ActionEvent;
+
+/**
+ *
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean
+@SessionScoped
+public class LinkBean {
+
+ private LinkAttributes attrs;
+ private String input;
+ private String input2;
+ private String input3;
+
+ @PostConstruct
+ public void init() {
+ attrs = new LinkAttributes();
+ }
+
+ public LinkAttributes getAttrs() {
+ return attrs;
+ }
+
+ public void setAttrs(LinkAttributes attrs) {
+ this.attrs = attrs;
+ }
+
+ public String getInput() {
+ return input;
+ }
+
+ public String getInput2() {
+ return input2;
+ }
+
+ public String getInput3() {
+ return input3;
+ }
+
+ public void setInput(String input) {
+ this.input = input;
+ }
+
+ public void runTestDisabled() {
+ attrs = LinkAttributes.getInstanceTestDisabled();
+ }
+
+ public String first6CharsAction() {
+ int endIndex = input.length() > 6 ? 6 : input.length();
+ input2 = (String) input.subSequence(0, endIndex);
+ return null;
+ }
+
+ public void toUpperCaseActionListener (ActionEvent e) {
+ input3 = input.toUpperCase();
+ }
+}
Added: root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf
===================================================================
--- root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf (rev 0)
+++ root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/mediaOutput/text.swf 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,50 @@
+CWSD1
+۾���Ŧg�3fe�ǁ[���e|��¹����P�3��F�a{_�&��Y�m9�`���Xqw^�y�����/��亶��b�jMޝ�j{�c3�FQ�尼�uD��}k�L��gmr�}��r��$y��!�b�J�5��i
+ו��q��Fw��_H��a�L�����[=R��-g$�H�o]mğ�[��f;[�U6K-Mo�y��xM�Z�����n{��M٧�#��v%��Co'8/�����Z�]/�j%�����r���/�y}^5�kg�����v�ƨ����Xڻ���Q��K9�����?mr�S����/�1Y����DK�;>���/���^aR�R��w^�X�w��z~�����Vz�b�#��<�5�Ə�?Y��Fʑ���Փ*�Y�'Jr�;�ly��^c\�����v��Yc��ޕ��}S�H�=�p�¥lE������D��T��j��%����)8���:��u������>-���Ǘ�LL`_��b9n=�JШ��v!���1�?�̖�Z&���v��\�=Z���~%��L�*��,տ|�!T�nSXi��̝˗�'d����%f/'�"R#Tl-�?dnP��R�f�D��b�|��p��U�?�����'.� &z�F;i���S�&}�IL���:o��ӭrX�
+��_��ڊ�U�_7Q�A�Cc�Pml3/`�k�S�4
+����n����J�ӕ�wN� �%T{�=,��7"�N�&"����u�/�=��7\��˱3_��ɢ������VN�8bSOz��߸Į�I�UH��j)��{|ӌ���gvB�T�@���a�LbVվΥy����;�8���m�]?2�|�� �\h��/��P�8��=��֖�o��sv;�OJ��8�~?�aW���,_΅���9S�@`!`-��g ���ƴf��G[��BE�o��֙0&�|{j�֬09�����/W���א�|�uct�������o����ă��=(Xc)z|����-�[v׳B��=�pa,�ЩvV�8��2�ek�Of �bS,%n��x�bp8M��f���u�/�ԉ'�.����bI�4��_m}g��o�S�w�g�2�a=3j祱��f_2s=;�5UE��vA��$7ABخ7F�6�X���k�
+s���,����f���X;�f�F��~��t�,�3e�6�<�L���O�q�S�}lG��|�a�\f��vְ���&�M��T�$7���~ʡ�U��b����YK�>�Y�5p�G�ۚ��1�ܫXg���M��G�ґ����n�� R����[�[/�Rq��Ӎ�v���^W˽��MY\�N�BD"�3���o.�FěHU�!�ʥ��'�b��XZ|w2��5��K�:��
+�/<2��[�={I�q�ڔEq7U
+b}
+� �&����tSŲ���4�>�s�VmK�9�ϸ�fIj��]���
+�#�~l��i�-5��v]>:�qOr�
+�5��I|��7���
+���-]�*�oE��fJX�%��fl[�%����eG���9#;mR@˴���E��5��p"6^�7�C�[�
+gI�=6�_̰����$�`I(�K>�[6m
+�J�|���$H�SWI�#_&Uz{���?���*��K"IZ�M����[�bGT�O��Vb��7��^�
+2�P��/j�{��l`:h�k���;�$ִ�}��%����Y��w4���w�|�]_[���a�4���2����+G
+�i��.᷶rb^��1
+�{�������D��3G`�h�߈/��mǍ,�^��GJ��������0h�f�y��ٵ�Ri��¿m���C�*���Tzz�Lͼ�.�<�v�����
+gY��tp��"C �%=����q ���ǧk��}ub�Ǵg�B�4��W�(J9�L0�l��u��A���B=]M`�!C ��Ks����
+o��L*2�����Xҵ6e � S�m����1�'#qo?�;i��ࡨ�]�s�*��n4�;�ӟS|���Y��#C �9nd�9y|��4R�*����B��Xxt�,d(�#2xɦ�c�x6:ӌ�[��f�PFzY,|+J�HW�����|���L�GC�ov�ޮ���;��[�t��{mO3^3}�G-�tW��1E>2��3F�`̗�n��l�U�H��?5���>����Q��'���l���÷��%�DJq�s��&Q��F(������A��/�z��V�?.!�����Y�?"�yZ�����[����/��
+�E ���<x�I>�k� SҲ~[��'�&˴�>�
+�p�92�9�/�^Z�'��nd(Ac�����V���4����k�w��G]���[2��an�u0�43��Ŀ4߽:�xY>�%hh���x�#I3r�r^�dnFM��
+cџ�P�z����|�$�A��Z��r����~��_)��9�&*�u��@�X�{�н���'��npK٘c� ��z�W}#l�l:�"���'��?���h� s,D�+�>�Z� A�s,�ޮ͖���� ��hO�0�A��jv��5�
+:�"+r9
+d�܅�>�1�At\j�Nn�_ �9y�t���\pۓ�B46�X ���,�ǽ�?�αȋRλ�=m�ùލ�@�QԄE���#���<m��$y�M�n�Z�٘c�
+��V0y�t�E/�i"�m�Z��xt�P��禃O�{8��l:�"��ZbOfJg��|
+%������i�K�MgY䟭��<����'�A2@�Do�*�F���4��;��,�M+�<���6B�D�����O�D�γ��ǧאw��=���� � D "�[>�xsW���D�� c,A68�7p>Ɖj�%�&��O湭;�W�3-��픭���S�� �dg#D "����<�V^�N�H������6�ܹ�>B�!J)ތL�E���+ѹ��K�[%{mߕk-v(a�BE�U��:�
+�'���HU9����aq5�t�1?�b��;{����3R�AF�|\���i� a~BY[��I�N���æ�3R�B�S����j�O���1?��w��� ��)S(�T~f����ғ `c~B���.�G�"C�g��!;������x5=���k�P6^�T����k�X�K,\�i��@��\���5�*�I�2:�"Y)�ݒ���L8J�k�P�D�ǭ�&��t�E�IJ�(�q<ݍQ�\�{>��:��
+1��I� ����M��-�� * ���s�]����2x��$(�&:_LP�T������uyޘ
+y�-1�qQުŹ98`����dbſnL�Β6�1���s��.�C���:b-N�`��Ǧ�-݀�M�<�A�v��f���&i8=��&�i��͗9?a�|%p/��'L\�v}�X���
+���_�$>�� �� ��%�`������O|0����8xd2�`8i�
+1��p6�ڭ"4�y�Ù,(�#]|�C�k�<�͙aD��_1���o�d6"d�` N���a�8��ȆW�yψ*AD�]��"q�1��B
+Ŏ��x���U(����x�Ym��J�j�6$���,Ä��b�YՁ�Mr�p�;���{�L6a��Y=�"ѩ�hZG��GPVz��w�f�
+�Q�����0J\�����]�R�|Ŭ�A�k�N-�7�`�e��C�:\�Q̲T�|���"��ݠq�B����|���y+��A�/��0�Pf!�>��BO��`�����z�<
+fV,�0��&�1�P�J��,�g�F����+���qG�CC�V�'��$�j�P�
+ך����,�BM�G���P����S��fV��x��� �S�`���氯���0��P���ـ�I�`�|
+u���׆�Ƭ�C9�;���H�`�N��u��J�̂<�ݽ�0���RV����̬�C�ߛ��_�`��-a�q�rd�@'����&�I j1�ރ��ɃE#{f/�,x���](_0��
+��4�ۛ��)������mTT�TXS�����mT�_U�x��6�]����o
+��ò]ܮ}\q��|4�maT��d����-�ń��p��1�Ϩ.3�&����;��gT_�7���Kc��Q�l�M��x�u��ܨ��o�����l������w!�#n����NG�����,�m���[�?^O��m�����p��~>fw ��[�M?�݁T�භ�!2�q�JK�����!hG�5��?���
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/META-INF/MANIFEST.MF 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: root/tests/metamer/trunk/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess"/>
Added: root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
+ <lifecycle>
+ <phase-listener>org.richfaces.testapp.RichPhaseListener</phase-listener>
+ </lifecycle>
+</faces-config>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/web.xml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="richfaces-demo" version="2.5">
+ <display-name>testapp</display-name>
+ <welcome-file-list>
+ <welcome-file>faces/index.xhtml</welcome-file>
+ </welcome-file-list>
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>#{richBean.skin}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+ <param-value>#{richBean.skinning}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
+ <param-value>#{richBean.skinningClasses}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.PROJECT_STAGE</param-name>
+ <param-value>Development</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/blank.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/blank.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/blank.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,5 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/attributes.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,136 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:panelGrid id="attributes" columns="2" style="padding-top: 30px;">
+ <h:outputLabel id="disabledLabel" value="disabled" for="disabledCheckbox" />
+ <h:selectBooleanCheckbox id="disabledCheckbox" value="#{linkBean.attrs.disabled}">
+ <f:ajax even="change" render="commandLink disabledCheckbox" execute="@this"/>
+ </h:selectBooleanCheckbox>
+
+ <h:outputLabel id="valueLabel" value="value" for="valueInput" />
+ <h:inputText id="valueInput" value="#{linkBean.attrs.value}">
+ <f:ajax event="blur" render="commandLink" execute="@this"/>
+ </h:inputText>
+
+ <h:outputLabel id="renderLabel" value="render" for="renderSelect" />
+ <h:selectOneRadio id="renderSelect" value="#{linkBean.attrs.render}">
+ <f:selectItem itemLabel="none" itemValue="" />
+ <f:selectItem itemLabel="output1" itemValue="output1" />
+ <f:selectItem itemLabel="output2" itemValue="output2" />
+ <f:selectItem itemLabel="all" itemValue="outputs" />
+ <f:ajax even="change" render="commandLink" execute="@this"/>
+ </h:selectOneRadio>
+
+ <h:outputLabel id="styleLabel" value="style" for="styleInput" />
+ <h:inputText id="styleInput" value="#{linkBean.attrs.style}">
+ <f:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="styleClassLabel" value="styleClass" for="styleClassSelect" />
+ <h:selectOneRadio id="styleClassSelect" value="#{linkBean.attrs.styleClass}">
+ <f:selectItem itemLabel="none" itemValue=" " />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="big" itemValue="big" />
+ <f:selectItem itemLabel="red + big" itemValue="red big" />
+ <f:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+
+ <h:outputLabel id="langLabel" value="lang" for="langSelect" />
+ <h:selectOneRadio id="langSelect" value="#{linkBean.attrs.lang}">
+ <f:selectItem itemLabel="none" itemValue="" />
+ <f:selectItem itemLabel="en" itemValue="en" />
+ <f:selectItem itemLabel="sk" itemValue="sk" />
+ <f:selectItem itemLabel="ru" itemValue="ru" />
+ <f:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+
+ <h:outputLabel id="titleLabel" value="title" for="titleInput" />
+ <h:inputText id="titleInput" value="#{linkBean.attrs.title}">
+ <f:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="dirLabel" value="dir" for="dirSelect" />
+ <h:selectOneRadio id="dirSelect" value="#{linkBean.attrs.dir}">
+ <f:selectItem itemLabel="none" itemValue="" />
+ <f:selectItem itemLabel="ltr" itemValue="ltr" />
+ <f:selectItem itemLabel="rtl" itemValue="rtl" />
+ <f:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+
+ <h:outputLabel id="targetLabel" value="target" for="targetSelect" />
+ <h:selectOneRadio id="targetSelect" value="#{linkBean.attrs.target}">
+ <f:selectItem itemLabel="none" itemValue="" />
+ <f:selectItem itemLabel="_self" itemValue="_self" />
+ <f:selectItem itemLabel="_blank" itemValue="_blank" />
+ <f:ajax even="change" render="commandLink" execute="@this" />
+ </h:selectOneRadio>
+
+ <h:outputLabel id="onbeforedomupdateLabel" value="onbeforedomupdate" for="onbeforedomupdateInput" />
+ <h:inputText id="onbeforedomupdateInput" value="#{linkBean.attrs.onbeforedomupdate}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onblurLabel" value="onblur" for="onblurInput" />
+ <h:inputText id="onblurInput" value="#{linkBean.attrs.onblur}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onclickLabel" value="onclick" for="onclickInput" />
+ <h:inputText id="onclickInput" value="#{linkBean.attrs.onclick}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="oncompleteLabel" value="oncomplete" for="oncompleteInput" />
+ <h:inputText id="oncompleteInput" value="#{linkBean.attrs.oncomplete}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="ondblclickLabel" value="ondblclick" for="ondblclickInput" />
+ <h:inputText id="ondblclickInput" value="#{linkBean.attrs.ondblclick}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onfocusLabel" value="onfocus" for="onfocusInput" />
+ <h:inputText id="onfocusInput" value="#{linkBean.attrs.onfocus}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onkeydownLabel" value="onkeydown" for="onkeydownInput" />
+ <h:inputText id="onkeydownInput" value="#{linkBean.attrs.onkeydown}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onkeypressLabel" value="onkeypress" for="onkeypressInput" />
+ <h:inputText id="onkeypressInput" value="#{linkBean.attrs.onkeypress}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onkeyupLabel" value="onkeyup" for="onkeyupInput" />
+ <h:inputText id="onkeyupInput" value="#{linkBean.attrs.onkeyup}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onmousemoveLabel" value="onmousemove" for="onmousemoveInput" />
+ <h:inputText id="onmousemoveInput" value="#{linkBean.attrs.onmousemove}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onmouseoutLabel" value="onmouseout" for="onmouseoutInput" />
+ <h:inputText id="onmouseoutInput" value="#{linkBean.attrs.onmouseout}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onmouseoverLabel" value="onmouseover" for="onmouseoverInput" />
+ <h:inputText id="onmouseoverInput" value="#{linkBean.attrs.onmouseover}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ <h:outputLabel id="onmouseupLabel" value="onmouseup" for="onmouseupInput" />
+ <h:inputText id="onmouseupInput" value="#{linkBean.attrs.onmouseup}">
+ <a4j:ajax event="blur" render="commandLink" execute="@this" />
+ </h:inputText>
+
+ </h:panelGrid>
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/component.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,40 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:outputStylesheet library="css" name="commandLink.css" />
+
+ <a4j:queue name="myQ" />
+
+ <h:panelGrid id="panel" columns="2">
+ <h:inputText id="nameInput" value="#{linkBean.input}" />
+
+ <a4j:commandLink id="commandLink" action="#{linkBean.first6CharsAction}"
+ actionListener="#{linkBean.toUpperCaseActionListener}" disabled="#{linkBean.attrs.disabled}"
+ value="#{linkBean.attrs.value}" style="#{linkBean.attrs.style}" styleClass="#{linkBean.attrs.styleClass}"
+ lang="#{linkBean.attrs.lang}" title="#{linkBean.attrs.title}" dir="#{linkBean.attrs.dir}"
+ hreflang="#{linkBean.attrs.hreflang}" render="#{linkBean.attrs.render}" focus="#{linkBean.attrs.focus}"
+ onsubmit="alert('onsubmit')" onbeforedomupdate="#{linkBean.attrs.onbeforedomupdate}"
+ onblur="#{linkBean.attrs.onblur}" onclick="#{linkBean.attrs.onclick}"
+ oncomplete="#{linkBean.attrs.oncomplete}" ondblclick="#{linkBean.attrs.ondblclick}"
+ onfocus="#{linkBean.attrs.onfocus}" onkeydown="#{linkBean.attrs.onkeydown}"
+ onkeypress="#{linkBean.attrs.onkeypress}" onkeyup="#{linkBean.attrs.onkeyup}"
+ onmousedown="#{linkBean.attrs.onmousedown}" onmousemove="#{linkBean.attrs.onmousemove}"
+ onmouseout="#{linkBean.attrs.onmouseout}" onmouseover="#{linkBean.attrs.onmouseover}"
+ onmouseup="#{linkBean.attrs.onmouseup}" accesskey="#{linkBean.attrs.accesskey}"
+ ajaxSingle="#{linkBean.attrs.ajaxSingle}" bypassUpdates="#{linkBean.attrs.bypassUpdates}"
+ charset="#{linkBean.attrs.charset}" rendered="#{linkBean.attrs.rendered}" status="a4jStatus"
+ target="#{linkBean.attrs.target}"/>
+
+ </h:panelGrid>
+
+ <h:panelGrid id="outputs" columns="2">
+ output1: <h:outputText value="#{linkBean.input}" id="output1" />
+ output2: <h:outputText value="#{linkBean.input}" id="output2" />
+ action (first 6 chars): <h:outputText value="#{linkBean.input2}" id="output3" />
+ action listener (upper case):<h:outputText value="#{linkBean.input3}" id="output4" />
+ </h:panelGrid>
+
+ <a4j:commandButton value="Rerender" render="panel, outputs" />
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/commandLink/tests.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,10 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:panelGrid columns="2">
+ <a4j:commandButton id="testDisabledLink" value="Run test" action="#{linkBean.runTestDisabled}" render="componentForm"/>
+ disabled = true
+
+ </h:panelGrid>
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/includes/components.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,14 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:outputText value="Select component:" />
+
+ <h:selectOneMenu id="componentSelect" value="#{richBean.component}" immediate="true">
+ <f:selectItem itemLabel="-- None --" itemValue="none" />
+ <f:selectItem itemLabel="Command Link" itemValue="commandLink" />
+ </h:selectOneMenu>
+
+ <h:commandButton action="/index" value="Submit" />
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/includes/header.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,65 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+ <h:form id="headerForm" style="padding-bottom: 30px;" prependId="false">
+ <h:panelGrid columns="6" border="1">
+
+ <h:panelGrid columns="2">
+ <h:outputText value="h" />
+ <h:outputText value="a4j" />
+ <h:commandButton id="hButton" value="submit" styleClass="button" />
+ <a4j:commandButton id="a4jButton" value="submit" reRender="richGridID" styleClass="button" />
+ <h:commandButton id="hButtonImmediate" value="immediate" immediate="true" styleClass="button" />
+ <a4j:commandButton id="a4jButtonImmediate" value="immediate" immediate="true" reRender="richGridID"
+ styleClass="button" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="2" style="width: 120px;">
+ <h:outputLabel id="a4jLogLabel" for="a4jLog" value="a4j:log" />
+ <h:selectBooleanCheckbox id="a4jLogCheckbox" value="#{richBean.log}">
+ <a4j:ajax event="change" execute="@this" render="a4jLog"/>
+ </h:selectBooleanCheckbox>
+ <h:outputLabel id="a4jStatusLabel" for="a4jStatus" value="a4j:status" />
+ <a4j:status id="a4jStatus">
+ <f:facet name="start">
+ <h:graphicImage value="resources/images/wait.gif" />
+ </f:facet>
+ </a4j:status>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2">
+ <h:outputLabel id="reTestsCheckboxLabel" value="Tests" for="reTestsCheckbox" />
+ <h:selectBooleanCheckbox id="reTestsCheckbox" value="#{richBean.reTests}" onchange="submit();"/>
+
+ <h:outputLabel id="reComponentCheckboxLabel" value="Component" for="reComponentCheckbox" />
+ <h:selectBooleanCheckbox id="reComponentCheckbox" value="#{richBean.reComponent}" onchange="submit();" />
+
+ <h:outputLabel id="reAttributesCheckboxLabel" value="Properties" for="reAttributesCheckbox" />
+ <h:selectBooleanCheckbox id="reAttributesCheckbox" value="#{richBean.reAttributes}" onchange="submit();" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:outputLabel id="skinSelectLabel" value="Select skin: " for="skinSelect" />
+
+ <h:selectOneMenu id="skinSelect" value="#{richBean.skin}">
+ <f:selectItems value="#{richBean.skins}" />
+ </h:selectOneMenu>
+
+ <h:selectOneMenu id="skinningSelect" value="#{richBean.skinningSelect}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="skinning" itemValue="skinning" />
+ <f:selectItem itemLabel="skinningClasses" itemValue="skinning classes" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <ui:include src="/includes/components.xhtml" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:commandButton action="#{richBean.invalidateSession}" value="Invalidate Session" />
+ </h:panelGrid>
+ </h:panelGrid>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/index.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/index.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/index.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,12 @@
+<!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://java.sun.com/jsf/composite/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:composition template="/templates/template.xhtml">
+ <ui:define name="content">
+ <h1>Welcome To RichFaces 4.x Testing Application</h1>
+ </ui:define>
+</ui:composition>
+
+</html>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/none.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/none.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/none.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,7 @@
+<ui:composition 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:rich="http://java.sun.com/jsf/composite/rich">
+
+Welcome to RichFaces 4 testing application
+
+</ui:composition>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/css/commandLink.css 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,7 @@
+.red {
+ color: red;
+}
+
+.big {
+ font-size: xx-large;
+}
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/resources/css/common.css
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/css/common.css (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/css/common.css 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,4 @@
+.button {
+ width: 100px;
+ height: 21px;
+}
Added: root/tests/metamer/trunk/src/main/webapp/resources/images/wait.gif
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/images/wait.gif (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/images/wait.gif 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,6 @@
+GIF89a
+���@�8�5p�{�۸�����@�.s��
+E��B
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml (rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/templates/template.xhtml 2010-07-10 18:04:01 UTC (rev 17809)
@@ -0,0 +1,37 @@
+<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:rich="http://java.sun.com/jsf/composite/rich">
+
+<h:head>
+ <title>Testing Application</title>
+</h:head>
+
+<h:body>
+ <h:outputStylesheet library="css" name="common.css" />
+
+ <div class="header"><ui:include src="/includes/header.xhtml" /></div>
+
+ <div class="content"><rich:messages id="msgs" /> <h:form id="testsForm" prependId="false">
+ <a4j:outputPanel id="testsPanel" rendered="#{richBean.reTests}">
+ <ui:include src="#{richBean.testsPage}" />
+ <hr />
+ </a4j:outputPanel>
+ </h:form> <h:form id="componentForm" prependId="false">
+ <a4j:outputPanel id="componentPanel" rendered="#{richBean.reComponent}">
+ <ui:include src="#{richBean.componentPage}" />
+ </a4j:outputPanel>
+<!-- </h:form> <h:form id="attributesForm" prependId="false">-->
+ <a4j:outputPanel id="attributesPanel" rendered="#{richBean.reAttributes}">
+ <ui:include src="#{richBean.attributesPage}" />
+ </a4j:outputPanel>
+ </h:form></div>
+
+ <div class="log">
+ <a4j:log id="a4jlog" style="width: 800px; height: 300px;" popup="false" level="ALL" rendered="#{richBean.log}"/>
+ </div>
+
+ <div class="footer"><ui:insert name="footer">
+ <hr />RichFaces #{a4j.version}</ui:insert></div>
+
+</h:body>
+</html>
\ No newline at end of file
14 years, 6 months
JBoss Rich Faces SVN: r17808 - root/dist/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2010-07-10 12:16:38 -0400 (Sat, 10 Jul 2010)
New Revision: 17808
Modified:
root/dist/trunk/pom.xml
Log:
RF-8729 Renamed to richfaces-distribution
Modified: root/dist/trunk/pom.xml
===================================================================
--- root/dist/trunk/pom.xml 2010-07-10 16:01:23 UTC (rev 17807)
+++ root/dist/trunk/pom.xml 2010-07-10 16:16:38 UTC (rev 17808)
@@ -28,10 +28,10 @@
</parent>
<groupId>org.richfaces</groupId>
- <artifactId>richfaces-assembler</artifactId>
+ <artifactId>richfaces-distribution</artifactId>
<version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
- <name>Richfaces Assembler</name>
+ <name>Richfaces Distribution Assembler</name>
<properties>
<org.richfaces.commons.version>4.0.0-SNAPSHOT</org.richfaces.commons.version>
14 years, 6 months
JBoss Rich Faces SVN: r17807 - in root: core/trunk/bom and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2010-07-10 12:01:23 -0400 (Sat, 10 Jul 2010)
New Revision: 17807
Modified:
root/build/bom/trunk/pom.xml
root/core/trunk/bom/pom.xml
Log:
RF-8910 Updated and centralized option runtime cache versions
Modified: root/build/bom/trunk/pom.xml
===================================================================
--- root/build/bom/trunk/pom.xml 2010-07-10 12:10:46 UTC (rev 17806)
+++ root/build/bom/trunk/pom.xml 2010-07-10 16:01:23 UTC (rev 17807)
@@ -98,7 +98,24 @@
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.8</version>
</dependency>
- </dependencies>
+
+ <!-- Optional cache dependencies -->
+ <dependency>
+ <groupId>opensymphony</groupId>
+ <artifactId>oscache</artifactId>
+ <version>2.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.cache</groupId>
+ <artifactId>jbosscache-core</artifactId>
+ <version>3.2.5.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.ehcache</groupId>
+ <artifactId>ehcache</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ </dependencies>
</dependencyManagement>
<build>
Modified: root/core/trunk/bom/pom.xml
===================================================================
--- root/core/trunk/bom/pom.xml 2010-07-10 12:10:46 UTC (rev 17806)
+++ root/core/trunk/bom/pom.xml 2010-07-10 16:01:23 UTC (rev 17807)
@@ -69,23 +69,6 @@
<artifactId>cssparser</artifactId>
<version>0.9.5</version>
</dependency>
-
- <!-- TODO: legacy dependnecies -->
- <dependency>
- <groupId>opensymphony</groupId>
- <artifactId>oscache</artifactId>
- <version>2.3</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.cache</groupId>
- <artifactId>jbosscache-core</artifactId>
- <version>3.1.0.GA</version>
- </dependency>
- <dependency>
- <groupId>net.sf.ehcache</groupId>
- <artifactId>ehcache</artifactId>
- <version>1.6.0</version>
- </dependency>
</dependencies>
</dependencyManagement>
14 years, 6 months