JBoss Rich Faces SVN: r9413 - in trunk/sandbox/ui/beanValidator: src/main/config/component and 10 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-07-03 15:24:07 -0400 (Thu, 03 Jul 2008)
New Revision: 9413
Added:
trunk/sandbox/ui/beanValidator/src/main/java/META-INF/
trunk/sandbox/ui/beanValidator/src/main/java/META-INF/MANIFEST.MF
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/validator/
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/validator/BeanValidator.java
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/component/
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java
Removed:
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/
Modified:
trunk/sandbox/ui/beanValidator/pom.xml
trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
Log:
Create stub projects for a Bean Validator and Flex integration
Modified: trunk/sandbox/ui/beanValidator/pom.xml
===================================================================
--- trunk/sandbox/ui/beanValidator/pom.xml 2008-07-03 17:40:59 UTC (rev 9412)
+++ trunk/sandbox/ui/beanValidator/pom.xml 2008-07-03 19:24:07 UTC (rev 9413)
@@ -1,50 +1,66 @@
-<?xml version="1.0"?><project>
- <parent>
- <artifactId>ui</artifactId>
- <groupId>org.richfaces.sandbox</groupId>
- <version>3.2.2-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>beanValidator</artifactId>
- <name>beanValidator</name>
- <version>3.2.2-SNAPSHOT</version>
- <build>
- <plugins>
- <plugin>
- <groupId>org.richfaces.cdk</groupId>
- <artifactId>maven-cdk-plugin</artifactId>
- <version>3.2.2-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <library>
- <prefix>org.richfaces.ui</prefix>
- <taglib>
- <shortName>beanValidator</shortName>
- </taglib>
- </library>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.framework</groupId>
- <artifactId>richfaces-impl</artifactId>
- <version>3.2.2-SNAPSHOT</version>
- </dependency>
- </dependencies>
+<?xml version="1.0"?>
+<project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>beanValidator</artifactId>
+ <name>beanValidator</name>
+ <version>3.2.2-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces.ui</prefix>
+ <taglib>
+ <shortName>beanValidator</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>3.1.0.CR1</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>hibernate-core</artifactId>
+ <groupId>org.hibernate</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>slf4j-api</artifactId>
+ <groupId>org.slf4j</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
</project>
\ No newline at end of file
Modified: trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
+++ trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-07-03 19:24:07 UTC (rev 9413)
@@ -3,21 +3,21 @@
<components>
<component>
- <name>org.richfaces.ui.BeanValidator</name>
- <family>org.richfaces.ui.BeanValidator</family>
- <classname>org.richfaces.ui.component.html.HtmlBeanValidator</classname>
- <superclass>org.richfaces.ui.component.UIBeanValidator</superclass>
+ <name>org.richfaces.BeanValidator</name>
+ <family>org.richfaces.BeanValidator</family>
+ <classname>org.richfaces.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.component.UIBeanValidator</superclass>
<description>
<![CDATA[
]]>
</description>
<renderer generate="true" override="true">
- <name>org.richfaces.ui.BeanValidatorRenderer</name>
+ <name>org.richfaces.BeanValidatorRenderer</name>
<template>org/richfaces/ui/htmlBeanValidator.jspx</template>
</renderer>
<tag>
- <name>beanValidator</name>
- <classname>org.richfaces.ui.taglib.BeanValidatorTag</classname>
+ <name>ajaxValidator</name>
+ <classname>org.richfaces.taglib.BeanValidatorTag</classname>
<superclass>
org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
</superclass>
@@ -38,4 +38,17 @@
</property>
-->
</component>
+ <validator generate="false">
+ <id>org.richfaces.BeanValidator</id>
+ <classname>org.richfaces.validator.BeanValidator</classname>
+ <description>
+ <![CDATA[Validate Input by the Bean/Hibernate validator annotations]]>
+ </description>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.taglib.BeanValidatorTag</classname>
+ <superclass>javax.faces.webapp.ValidatorELTag</superclass>
+ </tag>
+ </validator>
+
</components>
Added: trunk/sandbox/ui/beanValidator/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/main/java/META-INF/MANIFEST.MF 2008-07-03 19:24:07 UTC (rev 9413)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/sandbox/ui/beanValidator/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java (from rev 9412, trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/UIBeanValidator.java)
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-03 19:24:07 UTC (rev 9413)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.ui.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.ui.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/validator/BeanValidator.java
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/validator/BeanValidator.java (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/validator/BeanValidator.java 2008-07-03 19:24:07 UTC (rev 9413)
@@ -0,0 +1,26 @@
+/**
+ *
+ */
+package org.richfaces.validator;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class BeanValidator implements Validator {
+
+ /* (non-Javadoc)
+ * @see javax.faces.validator.Validator#validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)
+ */
+ public void validate(FacesContext context, UIComponent component, Object convertedValue)
+ throws ValidatorException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/validator/BeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
+++ trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx 2008-07-03 19:24:07 UTC (rev 9413)
@@ -5,9 +5,9 @@
xmlns:ui=" http://ajax4jsf.org/cdk/ui"
xmlns:u=" http://ajax4jsf.org/cdk/u"
xmlns:x=" http://ajax4jsf.org/cdk/x"
- class="org.richfaces.ui.renderkit.html.BeanValidatorRenderer"
+ class="org.richfaces.renderkit.html.BeanValidatorRenderer"
baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
- component="org.richfaces.ui.component.UIBeanValidator"
+ component="org.richfaces.component.UIBeanValidator"
>
<f:clientid var="clientId"/>
<div id="#{clientId}"
Copied: trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java (from rev 9412, trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/JSFComponentTest.java)
===================================================================
--- trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java 2008-07-03 19:24:07 UTC (rev 9413)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}
Property changes on: trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/component/JSFComponentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
16 years, 2 months
JBoss Rich Faces SVN: r9412 - in trunk: samples and 83 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-07-03 13:40:59 -0400 (Thu, 03 Jul 2008)
New Revision: 9412
Added:
trunk/extensions/flex/
trunk/sandbox/samples/beanValidatorSample/
trunk/sandbox/samples/beanValidatorSample/pom.xml
trunk/sandbox/samples/beanValidatorSample/src/
trunk/sandbox/samples/beanValidatorSample/src/main/
trunk/sandbox/samples/beanValidatorSample/src/main/java/
trunk/sandbox/samples/beanValidatorSample/src/main/java/org/
trunk/sandbox/samples/beanValidatorSample/src/main/java/org/richfaces/
trunk/sandbox/samples/beanValidatorSample/src/main/java/org/richfaces/Bean.java
trunk/sandbox/samples/beanValidatorSample/src/main/resources/
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/index.jsp
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml
trunk/sandbox/samples/beanValidatorSample/src/test/
trunk/sandbox/samples/beanValidatorSample/src/test/java/
trunk/sandbox/samples/beanValidatorSample/src/test/java/org/
trunk/sandbox/samples/beanValidatorSample/src/test/java/org/richfaces/
trunk/sandbox/samples/beanValidatorSample/src/test/java/org/richfaces/BeanTest.java
trunk/sandbox/ui/beanValidator/
trunk/sandbox/ui/beanValidator/pom.xml
trunk/sandbox/ui/beanValidator/src/
trunk/sandbox/ui/beanValidator/src/main/
trunk/sandbox/ui/beanValidator/src/main/config/
trunk/sandbox/ui/beanValidator/src/main/config/component/
trunk/sandbox/ui/beanValidator/src/main/config/component/README
trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/beanValidator/src/main/java/
trunk/sandbox/ui/beanValidator/src/main/java/org/
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/README
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/UIBeanValidator.java
trunk/sandbox/ui/beanValidator/src/main/resources/
trunk/sandbox/ui/beanValidator/src/main/templates/
trunk/sandbox/ui/beanValidator/src/main/templates/README
trunk/sandbox/ui/beanValidator/src/main/templates/org/
trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/
trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/
trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
trunk/sandbox/ui/beanValidator/src/test/
trunk/sandbox/ui/beanValidator/src/test/java/
trunk/sandbox/ui/beanValidator/src/test/java/org/
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/
trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
trunk/sandbox/ui/create.sh
trunk/sandbox/ui/extendedDataTable/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/component/
trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
trunk/sandbox/ui/extendedDataTable/src/main/templates/org/richfaces/sandbox/
trunk/sandbox/ui/extendedDataTable/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
trunk/sandbox/ui/panel2/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/panel2/src/main/java/org/richfaces/component/UIBeanValidator.java
trunk/sandbox/ui/panel2/src/main/templates/org/
trunk/sandbox/ui/panel2/src/main/templates/org/richfaces/
trunk/sandbox/ui/panel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx
trunk/sandbox/ui/rex-messageBox/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/rex-messageBox/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
trunk/sandbox/ui/rex-messageBox/src/main/templates/org/
trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/
trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/sandbox/
trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
trunk/sandbox/ui/rex-resizable/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/rex-resizable/src/main/java/org/richfaces/component/UIBeanValidator.java
trunk/sandbox/ui/rex-resizable/src/main/templates/org/
trunk/sandbox/ui/rex-resizable/src/main/templates/org/richfaces/
trunk/sandbox/ui/rex-resizable/src/main/templates/org/richfaces/htmlBeanValidator.jspx
trunk/sandbox/ui/simpleTogglePanel2/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/simpleTogglePanel2/src/main/java/org/richfaces/component/UIBeanValidator.java
trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/
trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/richfaces/
trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx
trunk/sandbox/ui/sortableHeader/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/
trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/component/
trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
trunk/sandbox/ui/sortableHeader/src/main/templates/
trunk/sandbox/ui/sortableHeader/src/main/templates/org/
trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/
trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/sandbox/
trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
trunk/sandbox/ui/state/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/state/src/main/java/META-INF/
trunk/sandbox/ui/state/src/main/java/META-INF/MANIFEST.MF
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplicationFactory.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateMethodExpressionWrapper.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIBeanValidator.java
trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
trunk/sandbox/ui/treeTable/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/treeTable/src/main/java/org/richfaces/component/UIBeanValidator.java
trunk/sandbox/ui/treeTable/src/main/templates/org/
trunk/sandbox/ui/treeTable/src/main/templates/org/richfaces/
trunk/sandbox/ui/treeTable/src/main/templates/org/richfaces/htmlBeanValidator.jspx
Modified:
trunk/samples/createProject.sh
trunk/sandbox/samples/pom.xml
trunk/sandbox/samples/state-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/ui/create.bat
trunk/sandbox/ui/pom.xml
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplication.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateExpressionFactory.java
Log:
Create stub projects for a Bean Validator and Flex integration
Copied: trunk/extensions/flex (from rev 9411, trunk/extensions/gwt)
Modified: trunk/samples/createProject.sh
===================================================================
--- trunk/samples/createProject.sh 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/samples/createProject.sh 2008-07-03 17:40:59 UTC (rev 9412)
@@ -1,3 +1,3 @@
-#!/bin/sh
-mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsfwebapp \
- -DarchetypeVersion=3.2.0-SNAPSHOT -DgroupId=org.richfaces -DartifactId=$1
\ No newline at end of file
+#!/bin/sh
+mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsfwebapp \
+ -DarchetypeVersion=3.2.2-SNAPSHOT -Dversion=3.2.2-SNAPSHOT -DgroupId=org.richfaces -DartifactId=$1
Added: trunk/sandbox/samples/beanValidatorSample/pom.xml
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/pom.xml (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/pom.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>samples</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples</groupId>
+ <artifactId>beanValidatorSample</artifactId>
+ <packaging>war</packaging>
+ <name>beanValidatorSample Maven Webapp</name>
+ <version>3.2.2-SNAPSHOT</version>
+ <build>
+ <finalName>beanValidatorSample</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: trunk/sandbox/samples/beanValidatorSample/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/main/java/org/richfaces/Bean.java (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/main/java/org/richfaces/Bean.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,29 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces;
+/**
+ * @author $Autor$
+ *
+ */
+public class Bean {
+
+}
\ No newline at end of file
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/main/java/org/richfaces/Bean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/faces-config.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.richfaces.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/web.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <!--
+ -->
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ <dispatcher>ERROR</dispatcher>
+ </filter-mapping>
+ <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>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/index.jsp
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/main/webapp/index.jsp (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/main/webapp/index.jsp 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="/pages/index.jsf" />
+ </body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.jsp (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.jsp 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,12 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <f:view>
+
+ </f:view>
+ </body>
+</html>
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -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:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ >
+ <f:view>
+
+ </f:view>
+</html>
\ No newline at end of file
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/main/webapp/pages/index.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/samples/beanValidatorSample/src/test/java/org/richfaces/BeanTest.java
===================================================================
--- trunk/sandbox/samples/beanValidatorSample/src/test/java/org/richfaces/BeanTest.java (rev 0)
+++ trunk/sandbox/samples/beanValidatorSample/src/test/java/org/richfaces/BeanTest.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,46 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+*/
+public class BeanTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public BeanTest( String testName )
+ {
+ super( testName );
+ }
+
+ public void testStub() throws Exception {
+
+ }
+}
Property changes on: trunk/sandbox/samples/beanValidatorSample/src/test/java/org/richfaces/BeanTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/samples/pom.xml
===================================================================
--- trunk/sandbox/samples/pom.xml 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/sandbox/samples/pom.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -19,5 +19,6 @@
<module>fileUploadPOC</module>
<module>darkX</module>
<module>glassX</module>
+ <module>beanValidatorSample</module>
</modules>
</project>
\ No newline at end of file
Modified: trunk/sandbox/samples/state-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/state-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/sandbox/samples/state-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -8,6 +8,9 @@
org.richfaces.ui.application.StateNavigationHandler</navigation-handler>
<el-resolver>org.richfaces.el.StateELResolver</el-resolver>
</application>
+ <factory>
+ <application-factory>org.richfaces.ui.application.StateApplicationFactory</application-factory>
+ </factory>
<managed-bean>
<managed-bean-name>loginbean</managed-bean-name>
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
Added: trunk/sandbox/ui/beanValidator/pom.xml
===================================================================
--- trunk/sandbox/ui/beanValidator/pom.xml (rev 0)
+++ trunk/sandbox/ui/beanValidator/pom.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>beanValidator</artifactId>
+ <name>beanValidator</name>
+ <version>3.2.2-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces.ui</prefix>
+ <taglib>
+ <shortName>beanValidator</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.2.2-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/beanValidator/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/beanValidator/src/main/config/component/README
===================================================================
Added: trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.ui.BeanValidator</name>
+ <family>org.richfaces.ui.BeanValidator</family>
+ <classname>org.richfaces.ui.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.ui.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.ui.BeanValidatorRenderer</name>
+ <template>org/richfaces/ui/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.ui.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/README
===================================================================
Added: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.ui.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.ui.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.ui.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/ui/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/beanValidator/src/main/templates/README
===================================================================
Added: trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.ui.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.ui.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/beanValidator/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
===================================================================
--- trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/JSFComponentTest.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.ui.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}
Property changes on: trunk/sandbox/ui/beanValidator/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/ui/create.bat
===================================================================
--- trunk/sandbox/ui/create.bat 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/sandbox/ui/create.bat 2008-07-03 17:40:59 UTC (rev 9412)
@@ -1 +1 @@
-mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsf-component -DarchetypeVersion=3.2.2-SNAPSHOT -DgroupId=org.richfaces -DartifactId=%1
\ No newline at end of file
+mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsf-component -DarchetypeVersion=3.2.2-SNAPSHOT -DgroupId=org.richfaces.ui -DartifactId=%1
\ No newline at end of file
Added: trunk/sandbox/ui/create.sh
===================================================================
--- trunk/sandbox/ui/create.sh (rev 0)
+++ trunk/sandbox/ui/create.sh 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,2 @@
+#!/bin/sh
+mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsf-component -DarchetypeVersion=3.2.2-SNAPSHOT -DgroupId=org.richfaces.ui -DartifactId=${1}
\ No newline at end of file
Property changes on: trunk/sandbox/ui/create.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/sandbox/ui/extendedDataTable/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/extendedDataTable/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.sandbox.BeanValidator</name>
+ <family>org.richfaces.sandbox.BeanValidator</family>
+ <classname>org.richfaces.sandbox.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.sandbox.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.sandbox.BeanValidatorRenderer</name>
+ <template>org/richfaces/sandbox/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.sandbox.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/extendedDataTable/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.sandbox.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.sandbox.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.sandbox.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/extendedDataTable/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/extendedDataTable/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/extendedDataTable/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/extendedDataTable/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.sandbox.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.sandbox.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/extendedDataTable/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/panel2/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/panel2/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/panel2/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.BeanValidator</name>
+ <family>org.richfaces.BeanValidator</family>
+ <classname>org.richfaces.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.BeanValidatorRenderer</name>
+ <template>org/richfaces/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/panel2/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/panel2/src/main/java/org/richfaces/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/panel2/src/main/java/org/richfaces/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/panel2/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/panel2/src/main/java/org/richfaces/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/panel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/panel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/panel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/panel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/sandbox/ui/pom.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -20,5 +20,6 @@
<!--module>rex-button</module-->
<module>sortableHeader</module>
<module>extendedDataTable</module>
+ <module>beanValidator</module>
</modules>
</project>
\ No newline at end of file
Added: trunk/sandbox/ui/rex-messageBox/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/rex-messageBox/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/rex-messageBox/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.sandbox.BeanValidator</name>
+ <family>org.richfaces.sandbox.BeanValidator</family>
+ <classname>org.richfaces.sandbox.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.sandbox.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.sandbox.BeanValidatorRenderer</name>
+ <template>org/richfaces/sandbox/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.sandbox.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/rex-messageBox/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/rex-messageBox/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/rex-messageBox/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/rex-messageBox/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.sandbox.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.sandbox.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.sandbox.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/rex-messageBox/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.sandbox.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.sandbox.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/rex-messageBox/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/rex-resizable/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/rex-resizable/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/rex-resizable/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.BeanValidator</name>
+ <family>org.richfaces.BeanValidator</family>
+ <classname>org.richfaces.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.BeanValidatorRenderer</name>
+ <template>org/richfaces/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/rex-resizable/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/rex-resizable/src/main/java/org/richfaces/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/rex-resizable/src/main/java/org/richfaces/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/rex-resizable/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/rex-resizable/src/main/java/org/richfaces/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/rex-resizable/src/main/templates/org/richfaces/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/rex-resizable/src/main/templates/org/richfaces/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/rex-resizable/src/main/templates/org/richfaces/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/rex-resizable/src/main/templates/org/richfaces/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/simpleTogglePanel2/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/simpleTogglePanel2/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/simpleTogglePanel2/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.BeanValidator</name>
+ <family>org.richfaces.BeanValidator</family>
+ <classname>org.richfaces.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.BeanValidatorRenderer</name>
+ <template>org/richfaces/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/simpleTogglePanel2/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/simpleTogglePanel2/src/main/java/org/richfaces/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/simpleTogglePanel2/src/main/java/org/richfaces/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/simpleTogglePanel2/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/simpleTogglePanel2/src/main/java/org/richfaces/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/simpleTogglePanel2/src/main/templates/org/richfaces/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/sortableHeader/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/sortableHeader/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/sortableHeader/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.sandbox.BeanValidator</name>
+ <family>org.richfaces.sandbox.BeanValidator</family>
+ <classname>org.richfaces.sandbox.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.sandbox.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.sandbox.BeanValidatorRenderer</name>
+ <template>org/richfaces/sandbox/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.sandbox.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/sortableHeader/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.sandbox.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.sandbox.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.sandbox.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/sortableHeader/src/main/java/org/richfaces/sandbox/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.sandbox.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.sandbox.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/sortableHeader/src/main/templates/org/richfaces/sandbox/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/state/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/state/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/state/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.ui.BeanValidator</name>
+ <family>org.richfaces.ui.BeanValidator</family>
+ <classname>org.richfaces.ui.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.ui.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.ui.BeanValidatorRenderer</name>
+ <template>org/richfaces/ui/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.ui.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/state/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/state/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/sandbox/ui/state/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/META-INF/MANIFEST.MF 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/sandbox/ui/state/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplication.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplication.java 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplication.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -41,10 +41,15 @@
/**
* @param parent
*/
- public StateApplication(Application parent) {
+ public StateApplication(Application parentApp) {
super();
- this.parent = parent;
- this.exprFactory = new StateExpressionFactory(parent.getExpressionFactory());
+ this.parent = parentApp;
+ this.exprFactory = new StateExpressionFactory(){
+ @Override
+ public ExpressionFactory getDefaultFactory() {
+ return parent.getExpressionFactory();
+ }
+ };
}
/**
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplicationFactory.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplicationFactory.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplicationFactory.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,50 @@
+/**
+ *
+ */
+package org.richfaces.ui.application;
+
+import javax.faces.application.Application;
+import javax.faces.application.ApplicationFactory;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class StateApplicationFactory extends ApplicationFactory {
+
+ private ApplicationFactory parent;
+
+ private Application application;
+
+ /**
+ * @param parent
+ */
+ public StateApplicationFactory(ApplicationFactory parent) {
+ super();
+ this.parent = parent;
+ }
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.application.ApplicationFactory#getApplication()
+ */
+ @Override
+ public Application getApplication() {
+ if (application == null) {
+ application = new StateApplication(parent.getApplication());
+
+ }
+
+ return application;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.application.ApplicationFactory#setApplication(javax.faces.application.Application)
+ */
+ @Override
+ public void setApplication(Application application) {
+ parent.setApplication(application);
+ this.application = new StateApplication(application);
+ }
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateApplicationFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateExpressionFactory.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateExpressionFactory.java 2008-07-02 15:48:16 UTC (rev 9411)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateExpressionFactory.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -12,26 +12,17 @@
* @author asmirnov
*
*/
-public class StateExpressionFactory extends ExpressionFactory {
+public abstract class StateExpressionFactory extends ExpressionFactory {
- ExpressionFactory defaultFactory;
/**
- * @param defaultFactory
- */
- public StateExpressionFactory(ExpressionFactory defaultFactory) {
- super();
- this.defaultFactory = defaultFactory;
- }
-
- /**
* @param obj
* @param targetType
* @return
* @see javax.el.ExpressionFactory#coerceToType(java.lang.Object, java.lang.Class)
*/
public Object coerceToType(Object obj, Class<?> targetType) {
- return defaultFactory.coerceToType(obj, targetType);
+ return getDefaultFactory().coerceToType(obj, targetType);
}
/**
@@ -45,8 +36,10 @@
public MethodExpression createMethodExpression(ELContext context,
String expression, Class<?> expectedReturnType,
Class<?>[] expectedParamTypes) {
- return defaultFactory.createMethodExpression(context, expression,
- expectedReturnType, expectedParamTypes);
+ MethodExpression methodExpression = getDefaultFactory().createMethodExpression(context, expression,
+ expectedReturnType, expectedParamTypes);
+ ValueExpression valueExpression = getDefaultFactory().createValueExpression(context, expression, MethodExpression.class);
+ return new StateMethodExpressionWrapper(methodExpression,valueExpression);
}
/**
@@ -58,7 +51,7 @@
*/
public ValueExpression createValueExpression(ELContext context,
String expression, Class<?> expectedType) {
- return defaultFactory.createValueExpression(context, expression,
+ return getDefaultFactory().createValueExpression(context, expression,
expectedType);
}
@@ -70,7 +63,12 @@
*/
public ValueExpression createValueExpression(Object instance,
Class<?> expectedType) {
- return defaultFactory.createValueExpression(instance, expectedType);
+ return getDefaultFactory().createValueExpression(instance, expectedType);
}
+ /**
+ * @return the defaultFactory
+ */
+ public abstract ExpressionFactory getDefaultFactory() ;
+
}
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateMethodExpressionWrapper.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateMethodExpressionWrapper.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateMethodExpressionWrapper.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,105 @@
+/**
+ *
+ */
+package org.richfaces.ui.application;
+
+import javax.el.ELContext;
+import javax.el.MethodExpression;
+import javax.el.MethodInfo;
+import javax.el.MethodNotFoundException;
+import javax.el.ValueExpression;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class StateMethodExpressionWrapper extends MethodExpression {
+
+ private MethodExpression parent;
+
+ private ValueExpression baseObjectExpression = null;
+
+ /**
+ * @param parent
+ */
+ public StateMethodExpressionWrapper(MethodExpression parent,ValueExpression baseObject) {
+ this.parent = parent;
+ this.baseObjectExpression = baseObject;
+ }
+
+ /**
+ * @return
+ * @see javax.el.Expression#getExpressionString()
+ */
+ public String getExpressionString() {
+ return parent.getExpressionString();
+ }
+
+ /**
+ * @param context
+ * @return
+ * @see javax.el.MethodExpression#getMethodInfo(javax.el.ELContext)
+ */
+ public MethodInfo getMethodInfo(ELContext context) {
+ MethodInfo methodInfo = parent.getMethodInfo(context);
+ return methodInfo;
+ }
+
+ /**
+ * @param context
+ * @param params
+ * @return
+ * @see javax.el.MethodExpression#invoke(javax.el.ELContext,
+ * java.lang.Object[])
+ */
+ public Object invoke(ELContext context, Object[] params) {
+ Object result;
+ try {
+ result = parent.invoke(context, params);
+ } catch (MethodNotFoundException e) {
+ Object base = baseObjectExpression.getValue(context);
+ if (base instanceof MethodExpression) {
+ MethodExpression referencedMethod = (MethodExpression) base;
+ result = referencedMethod.invoke(context, params);
+ } else {
+ throw e;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @return
+ * @see javax.el.Expression#isLiteralText()
+ */
+ public boolean isLiteralText() {
+ return parent.isLiteralText();
+ }
+
+ /**
+ * @param obj
+ * @return
+ * @see javax.el.Expression#equals(java.lang.Object)
+ */
+ public boolean equals(Object obj) {
+ return parent.equals(obj);
+ }
+
+ /**
+ * @return
+ * @see javax.el.Expression#hashCode()
+ */
+ public int hashCode() {
+ return parent.hashCode();
+ }
+
+ /**
+ * @return
+ * @see java.lang.Object#toString()
+ */
+ public String toString() {
+ return parent.toString();
+ }
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateMethodExpressionWrapper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.ui.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.ui.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.ui.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.ui.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.ui.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/treeTable/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/treeTable/src/main/config/component/beanValidator.xml (rev 0)
+++ trunk/sandbox/ui/treeTable/src/main/config/component/beanValidator.xml 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.richfaces.BeanValidator</name>
+ <family>org.richfaces.BeanValidator</family>
+ <classname>org.richfaces.component.html.HtmlBeanValidator</classname>
+ <superclass>org.richfaces.component.UIBeanValidator</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.BeanValidatorRenderer</name>
+ <template>org/richfaces/htmlBeanValidator.jspx</template>
+ </renderer>
+ <tag>
+ <name>beanValidator</name>
+ <classname>org.richfaces.taglib.BeanValidatorTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/treeTable/src/main/config/component/beanValidator.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/treeTable/src/main/java/org/richfaces/component/UIBeanValidator.java
===================================================================
--- trunk/sandbox/ui/treeTable/src/main/java/org/richfaces/component/UIBeanValidator.java (rev 0)
+++ trunk/sandbox/ui/treeTable/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIBeanValidator extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.BeanValidator";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.BeanValidator";
+
+}
Property changes on: trunk/sandbox/ui/treeTable/src/main/java/org/richfaces/component/UIBeanValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/treeTable/src/main/templates/org/richfaces/htmlBeanValidator.jspx
===================================================================
--- trunk/sandbox/ui/treeTable/src/main/templates/org/richfaces/htmlBeanValidator.jspx (rev 0)
+++ trunk/sandbox/ui/treeTable/src/main/templates/org/richfaces/htmlBeanValidator.jspx 2008-07-03 17:40:59 UTC (rev 9412)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.renderkit.html.BeanValidatorRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.component.UIBeanValidator"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/treeTable/src/main/templates/org/richfaces/htmlBeanValidator.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
16 years, 2 months
JBoss Rich Faces SVN: r9411 - trunk/ui/hotKey/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-07-02 11:48:16 -0400 (Wed, 02 Jul 2008)
New Revision: 9411
Modified:
trunk/ui/hotKey/src/main/config/component/hotKey.xml
Log:
http://cloud.prod.atl2.jboss.com/jira/browse/RF-3783 - fix description of the 'checkParent' attribute
Modified: trunk/ui/hotKey/src/main/config/component/hotKey.xml
===================================================================
--- trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-07-02 14:52:17 UTC (rev 9410)
+++ trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-07-02 15:48:16 UTC (rev 9411)
@@ -75,7 +75,7 @@
<name>checkParent</name>
<classname>java.lang.Boolean</classname>
<description>
- Defines the hotkey handling of events generated by child components nested into the parent component to which the <emphasis role="bold"><property><rich:hotKey></property></emphasis> is attached.
+ Defines the hotkey handling of events generated by child components nested into the parent component to which the <rich:hotKey> is attached.
</description>
</property>
<property>
16 years, 2 months
JBoss Rich Faces SVN: r9410 - in trunk/test-applications/jsp/src/main: webapp/ContextMenu and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-07-02 10:52:17 -0400 (Wed, 02 Jul 2008)
New Revision: 9410
Modified:
trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java 2008-07-02 14:41:46 UTC (rev 9409)
+++ trunk/test-applications/jsp/src/main/java/componentControl/ComponentControl.java 2008-07-02 14:52:17 UTC (rev 9410)
@@ -28,9 +28,4 @@
public void setCalendarPopup(boolean calendarPopup) {
this.calendarPopup = calendarPopup;
}
-
- public void addHtmlComponentControl(){
- ComponentInfo info = ComponentInfo.getInstance();
- info.addField(htmlComponentControl);
- }
}
Modified: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2008-07-02 14:41:46 UTC (rev 9409)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2008-07-02 14:52:17 UTC (rev 9410)
@@ -4,7 +4,7 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="contextMenuPropertySubviewID">
-<h:commandButton value="add test" action="#{combobox.addHtmlContextMenu}"></h:commandButton>
+<h:commandButton value="add test" action="#{contextMenu.addHtmlContextMenu}"></h:commandButton>
<a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
<a4j:commandButton action="submit();" immediate="true"
value="immediate submit(); (a4j)"></a4j:commandButton>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp 2008-07-02 14:41:46 UTC (rev 9409)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Info/Info.jsp 2008-07-02 14:52:17 UTC (rev 9410)
@@ -21,7 +21,7 @@
</h:dataTable>
<h:outputText value="attribute"></h:outputText>
- <h:selectBooleanCheckbox value="#{option.attribute}"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{option.attribute}" onchange="submit();"></h:selectBooleanCheckbox>
<h:outputText value="attribute:" rendered="#{option.attribute}"></h:outputText>
16 years, 2 months
JBoss Rich Faces SVN: r9409 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-07-02 10:41:46 -0400 (Wed, 02 Jul 2008)
New Revision: 9409
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-3163
More info about how to add the skin to the project is added
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-02 13:55:01 UTC (rev 9408)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-02 14:41:46 UTC (rev 9409)
@@ -3958,9 +3958,12 @@
<para>
Now, you can use your newly-created skin in your project
- by adding your new skin parameters to web.xml file.
+ by adding your new skin parameters to web.xml file and
+ placing the jar file with your skin
+ ( the jar file is located in "target" folder of your skin project)
+ to "\WebContent\WEB-INF\lib\".
</para>
-
+
<programlisting role="XML"><![CDATA[...
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
16 years, 2 months
JBoss Rich Faces SVN: r9408 - trunk/ui/hotKey/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-07-02 09:55:01 -0400 (Wed, 02 Jul 2008)
New Revision: 9408
Modified:
trunk/ui/hotKey/src/main/config/component/hotKey.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - checkParent description
Modified: trunk/ui/hotKey/src/main/config/component/hotKey.xml
===================================================================
--- trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-07-02 13:53:47 UTC (rev 9407)
+++ trunk/ui/hotKey/src/main/config/component/hotKey.xml 2008-07-02 13:55:01 UTC (rev 9408)
@@ -60,7 +60,7 @@
<name>type</name>
<classname>java.lang.String</classname>
<description>
- Defines the type of a keyboard event (onkeyup onkeypress etc.)
+ Defines the type of a keyboard event (onkeyup, onkeypress etc.)
</description>
<defaultvalue>""</defaultvalue>
</property>
@@ -75,6 +75,7 @@
<name>checkParent</name>
<classname>java.lang.Boolean</classname>
<description>
+ Defines the hotkey handling of events generated by child components nested into the parent component to which the <emphasis role="bold"><property><rich:hotKey></property></emphasis> is attached.
</description>
</property>
<property>
16 years, 2 months
JBoss Rich Faces SVN: r9407 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-07-02 09:53:47 -0400 (Wed, 02 Jul 2008)
New Revision: 9407
Modified:
trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - Details of Usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-07-02 13:49:57 UTC (rev 9406)
+++ trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-07-02 13:53:47 UTC (rev 9407)
@@ -67,10 +67,10 @@
There are two ways to register <emphasis role="bold"><property><rich:hotKey></property></emphasis>:
</para>
<itemizedlist>
- <listitem>
- <para>
- by attaching it to the whole page (<property>html[0] element</property>). This is default scenario.
- </para>
+ <listitem>
+ <para>
+ by attaching it to the whole page (<property>html[0] element</property>). This is default scenario.
+ </para>
</listitem>
<listitem>
<para>
@@ -81,19 +81,51 @@
</para>
</listitem>
</itemizedlist>
- <para>
+ <para>
The <emphasis><property>"key"</property></emphasis> attribute defines the hot key itself
- which is processed by the component.
+ which is processed by the component.
</para>
- <para>
+ <para>
After the hot key has been registered and defined you could set the <emphasis><property>"handler"</property></emphasis>
- attribute which determines a JavaScript function to be called every time when corresponding keys are pressed.
+ attribute which determines a JavaScript function to be called every time when corresponding keys are pressed.
</para>
-
- <para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:listShuttle var="cap" sourceValue="#{capitalsBean.capitals}" id="ls">
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="State flag"/>
+ </f:facet>
+ <h:graphicImage value="#{cap.stateFlag}"/>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="State name"/>
+ </f:facet>
+ <h:outputText value="#{cap.name}"/>
+ </rich:column>
+</rich:listShuttle>
+<rich:hotKey selector="#ls" key="right" handler="#{rich:component('ls')}.copy()"/>
+<rich:hotKey selector="#ls" key="left" handler="#{rich:component('ls')}.remove()"/>
+<rich:hotKey selector="#ls" key="end" handler="#{rich:component('ls')}.copyAll()"/>
+<rich:hotKey selector="#ls" key="home" handler="#{rich:component('ls')}.removeAll()"/>
+...]]></programlisting>
+ <para>
+ In the example above the <emphasis><property>"selector"</property></emphasis> attribute is used.
+ So the keys work only if <emphasis role="bold"><property><rich:listShuttle></property></emphasis> component is focused.
+ </para>
+ <para>
+ You could press <property>Right</property> or <property>Left</property> keys in order to move some selected items between lists.
+ You could press <property>Home</property> or <property>End</property> buttons in order to move all items between lists.
+ </para>
+ <para>
With the help of the <emphasis><property>"timing"</property></emphasis> attribute
you could manage <emphasis role="bold"><property><rich:hotKey></property></emphasis> registration timing.
- There are three possible values of this attribute:
+ There are three possible values of this attribute:
</para>
<itemizedlist>
<listitem>
@@ -112,6 +144,17 @@
</para>
</listitem>
</itemizedlist>
+ <para>
+ The <emphasis><property>"type"</property></emphasis> attribute defines the type of keyboard event. Possible values are:
+ "onkeyup", "onkeypress" and "onkeydown".
+ </para>
+<!--EXAMPLE -->
+ <para>
+ The <emphasis><property>"disableInInput"</property></emphasis> attribute disables the <emphasis role="bold"><property><rich:hotKey></property></emphasis> if it is activated on input elements and the value of this attribute is "true".
+ </para>
+ <para>
+ The <emphasis><property>"checkParent"</property></emphasis> attribute defines the hotkey handling of events generated by child components nested into the parent component to which the <emphasis role="bold"><property><rich:hotKey></property></emphasis> is attached.
+ </para>
</section>
<section>
<title>JavaScript API</title>
16 years, 2 months
JBoss Rich Faces SVN: r9406 - trunk/test-applications/facelets/src/main/webapp/VirtualEarth.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 09:49:57 -0400 (Wed, 02 Jul 2008)
New Revision: 9406
Modified:
trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2008-07-02 13:46:44 UTC (rev 9405)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml 2008-07-02 13:49:57 UTC (rev 9406)
@@ -1,14 +1,20 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="virtualEarthPropertySubviewID">
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="virtualEarthPropertySubviewID">
<h:panelGrid columns="2">
- <h:outputText value="lat(-97 < x < 97):"></h:outputText>
+ <h:outputText value="lat(-97< x < 97):"></h:outputText>
<h:inputText value="#{virtualEarth.lat}" onchange="submit();"></h:inputText>
-
- <h:outputText value="lng(-180 < x < 180):"></h:outputText>
+
+ <h:outputText value="lng(-180< x < 180):"></h:outputText>
<h:inputText value="#{virtualEarth.lng}" onchange="submit();"></h:inputText>
<h:outputText value="dashboardSize"></h:outputText>
- <h:selectOneMenu value="#{virtualEarth.dashboardSize}" onchange="submit();">
+ <h:selectOneMenu value="#{virtualEarth.dashboardSize}"
+ onchange="submit();">
<f:selectItem itemLabel="Normal" itemValue="Normal" />
<f:selectItem itemLabel="Small" itemValue="Small" />
<f:selectItem itemLabel="Tiny" itemValue="Tiny" />
@@ -23,20 +29,27 @@
</h:selectOneMenu>
<h:outputText value="rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{virtualEarth.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{virtualEarth.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
</h:panelGrid>
<h:panelGroup>
<f:verbatim>
Dashboard:<br />
- <a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
- <a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+ <a href="javascript:void(0);"
+ onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);"
+ onclick="map.ShowDashboard();return false;">Show</a>
<br />
<br />
Type:<br />
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
<br />
<br />
Zoom:<br />
@@ -44,9 +57,23 @@
<a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
<br />
<br />
- <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show
+ Exadel Office</a>
<br />
- <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+ <a href="javascript:void(0);"
+ onclick="showExadelInMinsk();return false;">Show Exadel in
+ Belarus</a>
</f:verbatim>
</h:panelGroup>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('vEarthID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 2 months
JBoss Rich Faces SVN: r9404 - trunk/test-applications/facelets/src/main/webapp/Tooltip.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 09:40:23 -0400 (Wed, 02 Jul 2008)
New Revision: 9404
Modified:
trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2008-07-02 13:39:11 UTC (rev 9403)
+++ trunk/test-applications/facelets/src/main/webapp/Tooltip/TooltipProperty.xhtml 2008-07-02 13:40:23 UTC (rev 9404)
@@ -1,24 +1,41 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="toolTipStraightforwardSubviewID">
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="toolTipStraightforwardSubviewID">
<h:panelGrid columns="2">
-
- <a4j:commandLink onclick="$('formID:tooltipSubviewID:tooltipID').component.show(event)" value="show"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:tooltipSubviewID:tooltipID').component.hide(event)" value="hide"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:tooltipSubviewID:tooltipID').component.enable(event)" value="enable"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:tooltipSubviewID:tooltipID').component.disable(event)" value="disable"></a4j:commandLink>
-
+
+ <a4j:commandLink
+ onclick="$('formID:tooltipSubviewID:tooltipID').component.show(event)"
+ value="show"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:tooltipSubviewID:tooltipID').component.hide(event)"
+ value="hide"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:tooltipSubviewID:tooltipID').component.enable(event)"
+ value="enable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:tooltipSubviewID:tooltipID').component.disable(event)"
+ value="disable"></a4j:commandLink>
+
<a href="#" id="showToolTipID">componentControl(show)</a>
- <rich:componentControl attachTo="showToolTipID" for="tooltipID" event="onclick" operation="show" />
-
+ <rich:componentControl attachTo="showToolTipID" for="tooltipID"
+ event="onclick" operation="show" />
+
<a href="#" id="hideToolTipID">componentControl(hide)</a>
- <rich:componentControl attachTo="hideToolTipID" for="tooltipID" event="onclick" operation="hide" />
-
+ <rich:componentControl attachTo="hideToolTipID" for="tooltipID"
+ event="onclick" operation="hide" />
+
<a href="#" id="enableToolTipID">componentControl(enable)</a>
- <rich:componentControl attachTo="enableToolTipID" for="tooltipID" event="onclick" operation="enable" />
-
+ <rich:componentControl attachTo="enableToolTipID" for="tooltipID"
+ event="onclick" operation="enable" />
+
<a href="#" id="disableToolTipID">componentControl(disable)</a>
- <rich:componentControl attachTo="disableToolTipID" for="tooltipID" event="onclick" operation="disable" />
-
+ <rich:componentControl attachTo="disableToolTipID" for="tooltipID"
+ event="onclick" operation="disable" />
+
<h:outputText value="Text:"></h:outputText>
<h:inputText value="#{tooltip.value}">
<a4j:support event="onchange" reRender="tooltipID" />
@@ -87,10 +104,13 @@
<h:outputText value="Style:"></h:outputText>
<h:selectOneRadio value="#{tooltip.style}">
<f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="border:3px; font:bold 14px;" itemValue="border:3px; font:bold 14px;" />
- <f:selectItem itemLabel="border:green 3px solid; background-color:yellow;"
+ <f:selectItem itemLabel="border:3px; font:bold 14px;"
+ itemValue="border:3px; font:bold 14px;" />
+ <f:selectItem
+ itemLabel="border:green 3px solid; background-color:yellow;"
itemValue="border:green 3px solid; background-color:yellow;" />
- <f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
+ <f:selectItem
+ itemLabel="border:green 2px solid; font-family:monospace;"
itemValue="border:green 2px solid; font-family:monospace;" />
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectOneRadio>
@@ -103,7 +123,18 @@
<h:outputText value="Rendered:"></h:outputText>
<h:selectBooleanCheckbox value="#{tooltip.rendered}">
<a4j:support event="onclick" reRender="tooltipID" />
- </h:selectBooleanCheckbox>
-
+ </h:selectBooleanCheckbox>
+
</h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tooltipID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 2 months