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