Author: lfryc(a)redhat.com
Date: 2010-07-10 15:02:00 -0400 (Sat, 10 Jul 2010)
New Revision: 17831
Added:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JActionListenerBean.java
root/tests/metamer/trunk/src/main/resources/log4j.properties
root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/
root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/all.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/list.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandButton.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandLink.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hGraphicImage.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputSecret.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputText.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputTextarea.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectBooleanCheckbox.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyCheckbox.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyListbox.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyMenu.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneListbox.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneMenu.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneRadio.xhtml
root/tests/metamer/trunk/src/main/webapp/resources/css/a4jActionListener.css
root/tests/metamer/trunk/src/main/webapp/resources/demo/
root/tests/metamer/trunk/src/main/webapp/resources/demo/actionComposite.xhtml
root/tests/metamer/trunk/src/main/webapp/resources/images/richfaces.jpg
Removed:
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml
Modified:
root/tests/metamer/trunk/pom.xml
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplatesList.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JAjaxBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandButtonBean.java
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandButtonBean.properties
root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/list.xhtml
root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml
root/tests/metamer/trunk/src/main/webapp/index.xhtml
root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml
Log:
https://jira.jboss.org/jira/browse/RFPL-466
* created a new profile in pom.xml (glassfish3)
* added slf4j-log4j12 dependency + configuration file
* logging level changed in some classes
* unnecessary code removed from TemplateList
* added pages for a4j:ajax used inside various standard JSF components
* added a4j:actionListener
Modified: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml 2010-07-10 18:44:10 UTC (rev 17830)
+++ root/tests/metamer/trunk/pom.xml 2010-07-10 19:02:00 UTC (rev 17831)
@@ -32,25 +32,20 @@
</dependency>
<dependency>
- <groupId>org.richfaces.ui.dist</groupId>
+ <groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <version>1.5.8</version>
- </dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- RichFaces 4 -->
<dependency>
- <groupId>org.richfaces.ui.dist</groupId>
+ <groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-ui</artifactId>
</dependency>
<dependency>
@@ -90,15 +85,21 @@
<artifactId>jstl</artifactId>
</dependency>
- <!-- Simple Logging Facade for Java -->
+ <!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.5.8</version>
</dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ </dependency>
<dependency>
<groupId>org.testng</groupId>
@@ -251,8 +252,81 @@
<version>1.1</version>
<scope>provided</scope>
</dependency>
+
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.web</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>2.2</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
</profile>
+ <profile>
+ <id>glassfish3</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+
<webappDirectory>${project.build.directory}/${project.build.finalName}-glassfish3
+ </webappDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>${jsf2.api.groupid}</groupId>
+ <artifactId>${jsf2.api.artifactid}</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>${jsf2.impl.groupid}</groupId>
+ <artifactId>${jsf2.impl.artifactid}</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>1.1</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.web</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>2.2</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
<repositories>
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:44:10 UTC (rev 17830)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/RichPhaseListener.java 2010-07-10
19:02:00 UTC (rev 17831)
@@ -44,14 +44,14 @@
* {@inheritDoc}
*/
public void afterPhase(PhaseEvent event) {
- logger.info("AFTER - " + event.getPhaseId());
+ logger.debug("AFTER - " + event.getPhaseId());
}
/**
* {@inheritDoc}
*/
public void beforePhase(PhaseEvent event) {
- logger.info("BEFORE - " + event.getPhaseId());
+ logger.debug("BEFORE - " + event.getPhaseId());
}
/**
Modified: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplatesList.java
===================================================================
---
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplatesList.java 2010-07-10
18:44:10 UTC (rev 17830)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/TemplatesList.java 2010-07-10
19:02:00 UTC (rev 17831)
@@ -55,10 +55,6 @@
templates.add(templates.size() - 1, e);
- for (Template t : templates) {
- logger.info(t.toString());
- }
-
return true;
}
Added:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JActionListenerBean.java
===================================================================
---
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JActionListenerBean.java
(rev 0)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JActionListenerBean.java 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * 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 javax.faces.application.FacesMessage;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.NoneScoped;
+import javax.faces.context.FacesContext;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ActionListener;
+
+/**
+ * Managed bean for a4j:ajax.
+ *
+ * @author Nick Belaevski, <a href="mailto:ppitonak@redhat.com">Pavol
Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "a4jActionListenerBean")
+@NoneScoped
+public class A4JActionListenerBean {
+
+ public static final class ActionListenerImpl implements ActionListener {
+
+ public void processAction(ActionEvent event) throws AbortProcessingException {
+ addFacesMessage("Implementation of ActionListener created and called:
" + this);
+ }
+ }
+
+ private static final class BoundActionListener implements ActionListener {
+
+ public void processAction(ActionEvent event) throws AbortProcessingException {
+ addFacesMessage("Bound listener called");
+ }
+ }
+ private ActionListener actionListener = new BoundActionListener();
+
+ private static void addFacesMessage(String messageText) {
+ FacesContext context = FacesContext.getCurrentInstance();
+ context.addMessage(null, new FacesMessage(messageText));
+ }
+
+ public void handleActionMethod(ActionEvent event) throws AbortProcessingException {
+ addFacesMessage("Method expression listener called");
+ }
+
+ public void handleActionMethodComposite(ActionEvent event) throws
AbortProcessingException {
+ addFacesMessage("Method expression listener called from composite
component");
+ }
+
+ public ActionListener getActionListener() {
+ return actionListener;
+ }
+}
Modified:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JAjaxBean.java
===================================================================
---
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JAjaxBean.java 2010-07-10
18:44:10 UTC (rev 17830)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JAjaxBean.java 2010-07-10
19:02:00 UTC (rev 17831)
@@ -23,6 +23,8 @@
package org.richfaces.testapp.bean;
import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
@@ -43,10 +45,13 @@
@SessionScoped
public class A4JAjaxBean implements Serializable {
- private static final long serialVersionUID = -1L;
+ private static final long serialVersionUID = -546567867L;
private static Logger logger;
private Attributes attributes;
private String input;
+ private List<String> cars;
+ private String car;
+ private boolean boolVal;
/**
* Initializes the managed bean.
@@ -57,8 +62,15 @@
logger.info("initializing bean " + getClass().getName());
attributes = Attributes.getBehaviorAttributes(AjaxBehavior.class, getClass());
- attributes.put("event", "keyup");
+ // the 'event' attribute for behavior tag must be a literal
+ attributes.remove("event");
attributes.put("render", "output");
+ attributes.put("execute", "@form");
+
+ cars = new ArrayList<String>();
+ cars.add("Ferrari");
+ cars.add("Lexus");
+ car = "Ferrari";
}
/**
@@ -95,4 +107,29 @@
public void setInput(String input) {
this.input = input;
}
+
+ public String getCar() {
+ return car;
+ }
+
+ public void setCar(String car) {
+ this.car = car;
+ }
+
+ public List<String> getCars() {
+ return cars;
+ }
+
+ public void setCars(List<String> cars) {
+ this.cars = cars;
+ }
+
+ public boolean isBoolVal() {
+ return boolVal;
+ }
+
+ public void setBoolVal(boolean boolVal) {
+ this.boolVal = boolVal;
+ }
+
}
Modified:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandButtonBean.java
===================================================================
---
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandButtonBean.java 2010-07-10
18:44:10 UTC (rev 17830)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/A4JCommandButtonBean.java 2010-07-10
19:02:00 UTC (rev 17831)
@@ -66,6 +66,8 @@
attributes.put("rendered", "true");
attributes.put("disabled", "false");
attributes.putAttributeClass("disabled", Boolean.class);
+ attributes.put("action", "first6CharsAction");
+ attributes.put("actionListener",
"toUpperCaseActionListener");
attributes.put("render", "output1 output2 output3");
}
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:44:10 UTC (rev 17830)
+++
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/bean/RichBean.java 2010-07-10
19:02:00 UTC (rev 17831)
@@ -88,6 +88,7 @@
private void createComponentsMap() {
components = new TreeMap<String, String>();
+ components.put("a4jActionListener", "A4J Action Listener");
components.put("a4jAjax", "A4J Ajax");
components.put("a4jCommandLink", "A4J Command Link");
components.put("a4jCommandButton", "A4J Command Button");
Added: root/tests/metamer/trunk/src/main/resources/log4j.properties
===================================================================
--- root/tests/metamer/trunk/src/main/resources/log4j.properties
(rev 0)
+++ root/tests/metamer/trunk/src/main/resources/log4j.properties 2010-07-10 19:02:00 UTC
(rev 17831)
@@ -0,0 +1,9 @@
+#### Use two appenders, one to log to console, another to log to a file
+log4j.rootCategory=info, stdout
+
+#### First appender writes to console
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+# Pattern to output the caller's file name and line number.
+log4j.appender.stdout.layout.ConversionPattern=%d %-5p %c{2} (%F:%L) %x - %m%n
Modified:
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandButtonBean.properties
===================================================================
---
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandButtonBean.properties 2010-07-10
18:44:10 UTC (rev 17830)
+++
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandButtonBean.properties 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,7 @@
+attr.action.first6CharsAction=first6CharsAction
+attr.action.doubleStringAction=doubleStringAction
+attr.action.toUpperCaseAction=toUpperCaseAction
+
+attr.actionListener.first6CharsActionListener=first6CharsActionListener
+attr.actionListener.doubleStringActionListener=doubleStringActionListener
+attr.actionListener.toUpperCaseActionListener=toUpperCaseActionListener
\ No newline at end of file
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:44:10
UTC (rev 17830)
+++ root/tests/metamer/trunk/src/main/webapp/WEB-INF/faces-config.xml 2010-07-10 19:02:00
UTC (rev 17831)
@@ -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
Added: root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/all.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/all.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/all.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,50 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp"
xmlns:demo="http://java.sun.com/jsf/composite/demo">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+
+ <h:outputStylesheet library="css"
name="a4jActionListener.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:messages id="messages" />
+
+ <h:panelGrid columns="1">
+ <h:commandButton value="Invoke listener by type">
+ <a4j:actionListener
type="org.richfaces.testapp.bean.A4JActionListenerBean$ActionListenerImpl"
/>
+ <f:ajax render="messages" />
+ </h:commandButton>
+
+ <h:commandButton value="Invoke listener by binding">
+ <a4j:actionListener
binding="#{a4jActionListenerBean.actionListener}" />
+ <f:ajax render="messages" />
+ </h:commandButton>
+
+ <h:commandButton value="Invoke listener method">
+ <a4j:actionListener
listener="#{a4jActionListenerBean.handleActionMethod}" />
+ <f:ajax render="messages" />
+ </h:commandButton>
+
+ <demo:actionComposite render=":form:messages"
value="Invoke listener method in composite component">
+ <a4j:actionListener for="button"
listener="#{a4jActionListenerBean.handleActionMethodComposite}" />
+ </demo:actionComposite>
+ </h:panelGrid>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Added: root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/list.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/list.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jActionListener/list.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -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:a4j="http://richfaces.org/a4j"
+
xmlns:c="http://java.sun.com/jsp/jstl/core">
+
+ <h:head>
+ <title>A4J Action Listener</title>
+ <meta http-equiv="Content-Type" content="text/xhtml;
charset=UTF-8" />
+ <h:outputStylesheet library="css" name="list.css" />
+ </h:head>
+
+ <h:body>
+
+ <h:outputLink value="all.xhtml"
styleClass="link">All</h:outputLink>
+ <div class="description">Page that contains a4j:actionListener
invoked by type, binding, method and from composite component.</div>
+
+ </h:body>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandButton.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandButton.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandButton.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,52 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:inputText id="input"
value="#{a4jAjaxBean.input}"/>
+ <h:commandButton id="commandButton" value="Submit"
>
+ <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="click"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:commandButton>
+
+ <a4j:outputPanel id="output" layout="block">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandLink.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandLink.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hCommandLink.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,52 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:inputText id="input"
value="#{a4jAjaxBean.input}"/>
+ <h:commandLink id="commandLink" value="Submit">
+ <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="click"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:commandLink>
+
+ <a4j:outputPanel id="output" layout="block">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hGraphicImage.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hGraphicImage.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hGraphicImage.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,51 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:graphicImage id="image" library="images"
name="richfaces.jpg">
+ <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="click"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:graphicImage>
+
+ <a4j:outputPanel id="output">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputSecret.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputSecret.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputSecret.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,51 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:inputSecret id="input"
value="#{a4jAjaxBean.input}">
+ <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="keyup"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:inputSecret>
+
+ <a4j:outputPanel id="output">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputText.xhtml (from
rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputText.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputText.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,51 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:inputText id="input"
value="#{a4jAjaxBean.input}">
+ <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="keyup"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:inputText>
+
+ <a4j:outputPanel id="output">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputTextarea.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputTextarea.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hInputTextarea.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,51 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:inputTextarea id="input"
value="#{a4jAjaxBean.input}">
+ <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="keyup"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:inputTextarea>
+
+ <a4j:outputPanel id="output">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied:
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectBooleanCheckbox.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
---
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectBooleanCheckbox.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectBooleanCheckbox.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,53 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectBooleanCheckbox id="selectBooleanCheckbox"
value="#{a4jAjaxBean.boolVal}">
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectBooleanCheckbox>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.boolVal}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied:
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyCheckbox.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyCheckbox.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyCheckbox.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,58 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectManyCheckbox id="selectManyCheckbox"
value="#{a4jAjaxBean.cars}">
+ <f:selectItem itemValue="Audi"/>
+ <f:selectItem itemValue="Mercedes"/>
+ <f:selectItem itemValue="Ferrari"/>
+ <f:selectItem itemValue="Lexus"/>
+
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectManyCheckbox>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.cars}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied:
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyListbox.xhtml (from
rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyListbox.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyListbox.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,58 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectManyListbox id="selectManyListbox"
value="#{a4jAjaxBean.cars}">
+ <f:selectItem itemValue="Audi"/>
+ <f:selectItem itemValue="Mercedes"/>
+ <f:selectItem itemValue="Ferrari"/>
+ <f:selectItem itemValue="Lexus"/>
+
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectManyListbox>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.cars}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyMenu.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyMenu.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectManyMenu.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -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:a4j="http://richfaces.org/a4j"
+
xmlns:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectManyMenu id="selectManyMenu"
value="#{a4jAjaxBean.cars}" >
+ <f:selectItem itemValue="Audi"
itemLabel="Audi"/>
+ <f:selectItem itemValue="Mercedes"
itemLabel="Mercedes"/>
+ <f:selectItem itemValue="Ferrari"
itemLabel="Ferrari"/>
+ <f:selectItem itemValue="Lexus"
itemLabel="Lexus"/>
+ <f:selectItem itemValue="BMW"
itemLabel="BMW"/>
+
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectManyMenu>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.cars}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied:
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneListbox.xhtml (from
rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneListbox.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneListbox.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,58 @@
+<!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:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectOneListbox id="selectManyListbox"
value="#{a4jAjaxBean.car}">
+ <f:selectItem itemValue="Audi"/>
+ <f:selectItem itemValue="Mercedes"/>
+ <f:selectItem itemValue="Ferrari"/>
+ <f:selectItem itemValue="Lexus"/>
+
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectOneListbox>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.car}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneMenu.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneMenu.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneMenu.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -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:a4j="http://richfaces.org/a4j"
+
xmlns:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectOneMenu id="selectManyMenu"
value="#{a4jAjaxBean.car}" >
+ <f:selectItem itemValue="Audi"
itemLabel="Audi"/>
+ <f:selectItem itemValue="Mercedes"
itemLabel="Mercedes"/>
+ <f:selectItem itemValue="Ferrari"
itemLabel="Ferrari"/>
+ <f:selectItem itemValue="Lexus"
itemLabel="Lexus"/>
+ <f:selectItem itemValue="BMW"
itemLabel="BMW"/>
+
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectOneMenu>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.car}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Copied: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneRadio.xhtml
(from rev 17830, root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml)
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneRadio.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/hSelectOneRadio.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -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:a4j="http://richfaces.org/a4j"
+
xmlns:ta="http://java.sun.com/jsf/composite/testapp">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <h:outputStylesheet library="css"
name="a4jAjax.css"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:selectOneRadio id="selectOneRadio"
value="#{a4jAjaxBean.car}">
+ <f:selectItem itemValue="Audi"
itemLabel="Audi"/>
+ <f:selectItem itemValue="Mercedes"
itemLabel="Mercedes"/>
+ <f:selectItem itemValue="Ferrari"
itemLabel="Ferrari"/>
+ <f:selectItem itemValue="Lexus"
itemLabel="Lexus"/>
+ <f:selectItem itemValue="BMW"
itemLabel="BMW"/>
+
+ <a4j:ajax id="a4jAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
+ data="#{a4jAjaxBean.attributes['data']}"
+
disabled="#{a4jAjaxBean.attributes['disabled']}"
+ event="change"
+
execute="#{a4jAjaxBean.attributes['execute']}"
+
immediate="#{a4jAjaxBean.attributes['immediate']}"
+
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
+
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
+
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
+
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
+
onerror="#{a4jAjaxBean.attributes['onerror']}"
+
onevent="#{a4jAjaxBean.attributes['onevent']}"
+
queueId="#{a4jAjaxBean.attributes['queueId']}"
+ render="#{a4jAjaxBean.attributes['render']}"
+ status="#{a4jAjaxBean.attributes['status']}"
+ />
+ </h:selectOneRadio>
+
+ <br/>
+
+ <a4j:outputPanel id="output">
+ Your selection: #{a4jAjaxBean.car}
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Deleted: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml 2010-07-10
18:44:10 UTC (rev 17830)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/input.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -1,51 +0,0 @@
-<!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:ta="http://java.sun.com/jsf/composite/testapp">
-
- <ui:composition template="/templates/template.xhtml">
-
- <ui:define name="head">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- </f:metadata>
- <h:outputStylesheet library="css"
name="a4jAjax.css"/>
- </ui:define>
-
- <ui:define name="outOfTemplateBefore">
- </ui:define>
-
- <ui:define name="component">
- <h:inputText id="input"
value="#{a4jAjaxBean.input}">
- <a4j:ajax id="inputAjax"
bypassUpdates="#{a4jAjaxBean.attributes['bypassUpdates']}"
- data="#{a4jAjaxBean.attributes['data']}"
-
disabled="#{a4jAjaxBean.attributes['disabled']}"
- event="keyup"
-
execute="#{a4jAjaxBean.attributes['execute']}"
-
immediate="#{a4jAjaxBean.attributes['immediate']}"
-
limitRender="#{a4jAjaxBean.attributes['limitRender']}"
-
onbeforedomupdate="#{a4jAjaxBean.attributes['onbeforedomupdate']}"
-
onbegin="#{a4jAjaxBean.attributes['onbegin']}"
-
oncomplete="#{a4jAjaxBean.attributes['oncomplete']}"
-
onerror="#{a4jAjaxBean.attributes['onerror']}"
-
onevent="#{a4jAjaxBean.attributes['onevent']}"
-
queueId="#{a4jAjaxBean.attributes['queueId']}"
- render="#{a4jAjaxBean.attributes['render']}"
- status="#{a4jAjaxBean.attributes['status']}"
- />
- </h:inputText>
-
- <a4j:outputPanel id="output">
- <h:outputText value="#{a4jAjaxBean.input}"/>
- </a4j:outputPanel>
-
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <ta:attributes value="#{a4jAjaxBean.attributes}"
id="attributes" render="log"/>
- </ui:define>
-
- </ui:composition>
-</html>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/list.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/list.xhtml 2010-07-10
18:44:10 UTC (rev 17830)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jAjax/list.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -10,8 +10,43 @@
<h:body>
- <h:outputLink value="input.xhtml" styleClass="link">Input
Text</h:outputLink>
- <div class="description">Simple page that contains h:inputText with
a4j:ajax and input boxes for all its attributes.</div>
+ <h:outputLink value="hCommandButton.xhtml"
styleClass="link">Command Button</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:commandButton</b> with <b>a4j:ajax</b> and input boxes for
all its attributes.</div>
+ <h:outputLink value="hCommandLink.xhtml"
styleClass="link">Command Link</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:commandLink</b> with <b>a4j:ajax</b> and input boxes for all
its attributes.</div>
+
+ <h:outputLink value="hInputText.xhtml"
styleClass="link">Input Text</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:inputText</b> with <b>a4j:ajax</b> and input boxes for all
its attributes.</div>
+
+ <h:outputLink value="hInputSecret.xhtml"
styleClass="link">Input Secret</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:inputSecret</b> with <b>a4j:ajax</b> and input boxes for all
its attributes.</div>
+
+ <h:outputLink value="hInputTextarea.xhtml"
styleClass="link">Input Textarea</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:inputTextarea</b> with <b>a4j:ajax</b> and input boxes for
all its attributes.</div>
+
+ <h:outputLink value="hGraphicImage.xhtml"
styleClass="link">Graphic Image</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:graphicImage</b> with <b>a4j:ajax</b> and input boxes for all
its attributes.</div>
+
+ <h:outputLink value="hSelectManyMenu.xhtml"
styleClass="link">Select Many Menu</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectManyMenu</b> with <b>a4j:ajax</b> and input boxes for
all its attributes.</div>
+
+ <h:outputLink value="hSelectManyListbox.xhtml"
styleClass="link">Select Many Listbox</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectManyListbox</b> with <b>a4j:ajax</b> and input boxes
for all its attributes.</div>
+
+ <h:outputLink value="hSelectManyCheckbox.xhtml"
styleClass="link">Select Many Checkbox</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectManyCheckbox</b> with <b>a4j:ajax</b> and input boxes
for all its attributes.</div>
+
+ <h:outputLink value="hSelectOneMenu.xhtml"
styleClass="link">Select One Menu</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectOneMenu</b> with <b>a4j:ajax</b> and input boxes for
all its attributes.</div>
+
+ <h:outputLink value="hSelectBooleanCheckbox.xhtml"
styleClass="link">Select Boolean Checkbox</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectBooleanCheckbox</b> with <b>a4j:ajax</b> and input
boxes for all its attributes.</div>
+
+ <h:outputLink value="hSelectOneRadio.xhtml"
styleClass="link">Select One Radio</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectOneRadio</b> with <b>a4j:ajax</b> and input boxes for
all its attributes.</div>
+
+ <h:outputLink value="hSelectOneListbox.xhtml"
styleClass="link">Select One Listbox</h:outputLink>
+ <div class="description">Simple page that contains
<b>h:selectOneListbox</b> with <b>a4j:ajax</b> and input boxes for
all its attributes.</div>
</h:body>
</html>
\ No newline at end of file
Modified: root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml 2010-07-10
18:44:10 UTC (rev 17830)
+++ root/tests/metamer/trunk/src/main/webapp/components/a4jLog/simple.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -18,13 +18,16 @@
</ui:define>
<ui:define name="component">
- <h:inputText id="nameInput" value="#{a4jLogBean.name}"
/>
+ <h:inputText id="nameInput" styleClass="nameInput"
value="#{a4jLogBean.name}" />
<a4j:commandButton id="submitButton" value="Submit"
render="out" execute="@form" />
- <input type="button" id="debugButton"
value="Debug Message"
onclick="RichFaces.log.debug('***DEBUG***')" />
- <input type="button" id="infoButton" value="Info
Message" onclick="RichFaces.log.info('***INFO***')"/>
- <input type="button" id="warnButton"
value="Warning Message"
onclick="RichFaces.log.warn('***WARN***')"/>
- <input type="button" id="errorButton"
value="Error Message"
onclick="RichFaces.log.error('***ERROR***')"/>
-
+ <input type="button" id="debugButton"
value="Debug Message"
+ onclick="eval('RichFaces.log.debug(\'' +
jQuery('input[type=text][id$=nameInput]').val() + '\')')"/>
+ <input type="button" id="infoButton" value="Info
Message"
+ onclick="eval('RichFaces.log.info(\'' +
jQuery('input[type=text][id$=nameInput]').val() + '\')')"/>
+ <input type="button" id="warnButton"
value="Warning Message"
+ onclick="eval('RichFaces.log.warn(\'' +
jQuery('input[type=text][id$=nameInput]').val() + '\')')"/>
+ <input type="button" id="errorButton"
value="Error Message"
+ onclick="eval('RichFaces.log.error(\'' +
jQuery('input[type=text][id$=nameInput]').val() + '\')')"/>
<br/>
<a4j:outputPanel id="out">
Modified: root/tests/metamer/trunk/src/main/webapp/index.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/index.xhtml 2010-07-10 18:44:10 UTC (rev
17830)
+++ root/tests/metamer/trunk/src/main/webapp/index.xhtml 2010-07-10 19:02:00 UTC (rev
17831)
@@ -11,7 +11,7 @@
<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}"
/>
+ <h:commandLink
action="#{richBean.getListPage(entry.key)}"
value="#{richBean.components[entry.key]}" />
</c:forEach>
</h:panelGrid>
</h:form>
Copied: root/tests/metamer/trunk/src/main/webapp/resources/css/a4jActionListener.css (from
rev 17830,
root/tests/metamer/trunk/src/main/resources/org/richfaces/testapp/bean/A4JCommandButtonBean.properties)
===================================================================
Added: root/tests/metamer/trunk/src/main/webapp/resources/demo/actionComposite.xhtml
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/demo/actionComposite.xhtml
(rev 0)
+++
root/tests/metamer/trunk/src/main/webapp/resources/demo/actionComposite.xhtml 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +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:a4j="http://richfaces.org/a4j"
+
xmlns:composite="http://java.sun.com/jsf/composite">
+
+<composite:interface>
+ <composite:actionSource name="button" />
+ <composite:attribute name="render" />
+ <composite:attribute name="execute" />
+ <composite:attribute name="value" />
+</composite:interface>
+
+<composite:implementation>
+ <h:commandButton id="button" value="#{cc.attrs.value}">
+ <composite:insertChildren />
+
+ <a4j:ajax render="#{cc.attrs.render}"
execute="#{cc.attrs.execute}" />
+ </h:commandButton>
+</composite:implementation>
+</html>
Added: root/tests/metamer/trunk/src/main/webapp/resources/images/richfaces.jpg
===================================================================
--- root/tests/metamer/trunk/src/main/webapp/resources/images/richfaces.jpg
(rev 0)
+++ root/tests/metamer/trunk/src/main/webapp/resources/images/richfaces.jpg 2010-07-10
19:02:00 UTC (rev 17831)
@@ -0,0 +1,20 @@
+����
+
+
+
+
+ "" $(4,$&1'-=-157:::#+?D?8C49:7��
+
+
+
+
+7%%77777777777777777777777777777777777777777777777777��
+˼t洯��+`z�b`��c|�!��Fx�(��8���&�{9�����
+�L�ĦUr}�CM�n'[r�i�`�s���P\2��d�OG��sG�E>Df�c�?�t�GV��g�>�T��io�;0ȣ/Y�5dbppil �^l~
+9F��Mn}���d}*k��K���l�G�:���<�ZEش��l�ld��"����_����I�oe��?|�b�ըvn��{�����+�����z���TX��\|��
HA��wcN��.���
+g����Qw7�3����'X��I�wr��$�=��WUY�(cD^@�Žs����R�o@�$;u��Fڰ(���^<����/cR�t@��;T�3��b�E�1�E�3��3Ht�6����;�'P�_X`�1^v�7��#�6�O�;}�s��P�5#��u��qA�N%�b��p;�Y�;:��ZG���,����� Fx�8�9]�G�xiWY+L���mX�
+�&�A�N���k&Hdu�$l�VR����.GC�8 �8���
+�#,'|���de�c�n�^ ����a�c.�
+���Oz�� b_�ugc�]X�ŗx�N+4U��ƍ�V���,[��$���.�����Ӳ���N����7�
\ No newline at end of file
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:44:10
UTC (rev 17830)
+++ root/tests/metamer/trunk/src/main/webapp/templates/header.xhtml 2010-07-10 19:02:00
UTC (rev 17831)
@@ -1,7 +1,6 @@
<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"
-
xmlns:c="http://java.sun.com/jsp/jstl/core">
+
xmlns:a4j="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:panelGrid id="headerTable" columns="6" border="1"
styleClass="external-table" columnClasses="header-column, header-column,
header-column, header-column, header-column, header-column">