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