You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gp...@apache.org on 2009/10/08 23:28:43 UTC

svn commit: r823332 - in /myfaces/extensions/validator/branches/branch_for_jsf_1_1: examples/ examples/hello_bean-validation/ examples/hello_bean-validation/src/ examples/hello_bean-validation/src/main/ examples/hello_bean-validation/src/main/java/ exa...

Author: gpetracek
Date: Thu Oct  8 21:28:42 2009
New Revision: 823332

URL: http://svn.apache.org/viewvc?rev=823332&view=rev
Log:
updates to be compatible with the latest jsr 303 version + hello world example

Added:
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/pom.xml
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/HelloWorldController.java
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/domain/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/domain/Person.java
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Address.java
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Admin.java
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/User.java
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/web.xml
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form1.jsp
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form2.jsp
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/helloWorld.jsp
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/index.jsp
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/result.jsp
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/violation.jsp
Modified:
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/pom.xml
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/pom.xml
    myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/BeanValidationInterceptor.java

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/pom.xml?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/pom.xml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/pom.xml Thu Oct  8 21:28:42 2009
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <packaging>war</packaging>
+
+    <groupId>org.apache.myfaces.extensions.validator.examples</groupId>
+    <artifactId>examples-hello_bean-validation</artifactId>
+
+    <name>MyFaces Extensions-Validator examples hello bean-validation</name>
+    <version>1.1.3-SNAPSHOT</version>
+
+    <parent>
+        <groupId>org.apache.myfaces.extensions.validator.examples</groupId>
+        <artifactId>examples-project</artifactId>
+        <version>1.1.3-SNAPSHOT</version>
+    </parent>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.myfaces.extensions.validator</groupId>
+            <artifactId>myfaces-extval-core</artifactId>
+            <version>1.1.3-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId>
+            <artifactId>myfaces-extval-property-validation</artifactId>
+            <version>1.1.3-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId>
+            <artifactId>myfaces-extval-bean-validation</artifactId>
+            <version>1.1.3-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-api</artifactId>
+            <version>${jsf.version}</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-impl</artifactId>
+            <version>${jsf.version}</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>javax.el</groupId>
+            <artifactId>el-api</artifactId>
+            <version>1.0</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>el-impl</groupId>
+            <artifactId>el-impl</artifactId>
+            <version>1.0</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.hibernate</groupId>
+            <artifactId>hibernate-validator</artifactId>
+            <version>4.0.0.GA</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.4.2</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <version>1.4.2</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <inherited>true</inherited>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/HelloWorldController.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/HelloWorldController.java?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/HelloWorldController.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/HelloWorldController.java Thu Oct  8 21:28:42 2009
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.blank;
+
+import org.apache.myfaces.blank.domain.Person;
+import org.apache.myfaces.blank.validation.group.Admin;
+import org.apache.myfaces.blank.validation.group.User;
+import org.apache.myfaces.blank.validation.group.Address;
+import org.apache.myfaces.extensions.validator.beanval.annotation.BeanValidation;
+import org.apache.myfaces.extensions.validator.beanval.annotation.ModelValidation;
+
+/**
+ * A typical simple backing bean, that is backed to <code>helloworld.jsp</code>
+ */
+
+//in case of deactivated default validation
+@BeanValidation
+public class HelloWorldController
+{
+    //@BeanValidation(viewIds = "/form1.jsp")
+    private Person person = new Person();
+
+    /**
+     * default empty constructor
+     */
+    public HelloWorldController()
+    {
+    }
+
+    /**
+     * Method that is backed to a submit button of a form.
+     */
+    public String send()
+    {
+        //do real logic, return a string which will be used for the navigation system of JSF
+        return "success";
+    }
+
+    @BeanValidation.List({
+            @BeanValidation(viewIds = "/helloWorld.jsp"),
+            @BeanValidation(viewIds = "/form1.jsp", useGroups = User.class),
+            @BeanValidation(viewIds = "/form2.jsp", useGroups = Admin.class),
+            @BeanValidation(viewIds = "/violation.jsp", useGroups = Admin.class),
+            @BeanValidation(viewIds = "/violation.jsp", useGroups = Address.class,
+                    modelValidation = @ModelValidation(isActive = true))
+    })
+    public Person getPerson()
+    {
+        return person;
+    }
+
+    public void setPerson(Person person)
+    {
+        this.person = person;
+    }
+}

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/domain/Person.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/domain/Person.java?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/domain/Person.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/domain/Person.java Thu Oct  8 21:28:42 2009
@@ -0,0 +1,99 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.blank.domain;
+
+import org.apache.myfaces.blank.validation.group.Admin;
+import org.apache.myfaces.blank.validation.group.User;
+import org.apache.myfaces.blank.validation.group.Address;
+import org.apache.myfaces.extensions.validator.baseval.annotation.Required;
+
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+
+public class Person
+{
+    //hello world demo
+    @Required
+    private String firstName;
+
+    //demo for bean validation based validation support
+    @NotNull
+    @Size.List({
+            @Size(min = 3, max = 6, groups = User.class),
+            @Size(min = 3, max = 12, groups = Admin.class)
+    })
+    private String lastName;
+
+    @NotNull(groups = Address.class, message = "street is required")
+    private String street;
+    @NotNull(groups = Address.class, message = "zip is required")
+    private String zip;
+    @NotNull(groups = Address.class, message = "city is required")
+    private String city;
+
+    public String getFirstName()
+    {
+        return firstName;
+    }
+
+    public void setFirstName(String firstName)
+    {
+        this.firstName = firstName;
+    }
+
+    public String getLastName()
+    {
+        return lastName;
+    }
+
+    public void setLastName(String lastName)
+    {
+        this.lastName = lastName;
+    }
+
+    public String getStreet()
+    {
+        return street;
+    }
+
+    public void setStreet(String street)
+    {
+        this.street = street;
+    }
+
+    public String getZip()
+    {
+        return zip;
+    }
+
+    public void setZip(String zip)
+    {
+        this.zip = zip;
+    }
+
+    public String getCity()
+    {
+        return city;
+    }
+
+    public void setCity(String city)
+    {
+        this.city = city;
+    }
+}

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Address.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Address.java?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Address.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Address.java Thu Oct  8 21:28:42 2009
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.blank.validation.group;
+
+public interface Address
+{
+}

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Admin.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Admin.java?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Admin.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/Admin.java Thu Oct  8 21:28:42 2009
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.blank.validation.group;
+
+public interface Admin
+{
+}

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/User.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/User.java?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/User.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/java/org/apache/myfaces/blank/validation/group/User.java Thu Oct  8 21:28:42 2009
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.blank.validation.group;
+
+public interface User
+{
+}

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/faces-config.xml?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/faces-config.xml Thu Oct  8 21:28:42 2009
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC
+        "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+        "http://java.sun.com/dtd/web-facesconfig_1_1.dtd" >
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+<faces-config>
+
+	<!-- managed beans of the simple hello world app -->
+	<managed-bean>
+		<managed-bean-name>helloWorld</managed-bean-name>
+		<managed-bean-class>org.apache.myfaces.blank.HelloWorldController</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
+	
+	<!-- navigation rules for helloWorld.jsp -->
+	<navigation-rule>
+		<from-view-id>*</from-view-id>
+		<navigation-case>
+			<from-outcome>success</from-outcome>
+			<to-view-id>/result.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	
+	<!-- navigation rules for result.jsp -->
+	<navigation-rule>
+		<from-view-id>/result.jsp</from-view-id>
+		<navigation-case>
+			<from-outcome>back</from-outcome>
+			<to-view-id>/helloWorld.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+</faces-config>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/web.xml?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/WEB-INF/web.xml Thu Oct  8 21:28:42 2009
@@ -0,0 +1,182 @@
+<?xml version="1.0"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<web-app 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"
+         version="2.4">
+
+    <description>MyProject web.xml</description>
+
+    <!--optional: context-param>
+        <description>Comma separated list of URIs of (additional) faces config files.
+            (e.g. /WEB-INF/my-config.xml)
+            See JSF 1.0 PRD2, 10.3.2
+            Attention: You do not need to put /WEB-INF/faces-config.xml in here.
+        </description>
+        <param-name>javax.faces.CONFIG_FILES</param-name>
+        <param-value>/WEB-INF/examples-config.xml</param-value>
+    </context-param-->
+    <context-param>
+        <description>State saving method: "client" or "server" (= default)
+            See JSF Specification 2.5.3</description>
+        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+        <param-value>client</param-value>
+    </context-param>
+    <context-param>
+        <description>Only applicable if state saving method is "server" (= default).
+            Defines the amount (default = 20) of the latest views are stored in session.</description>
+        <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
+        <param-value>20</param-value>
+    </context-param>
+    <context-param>
+        <description>Only applicable if state saving method is "server" (= default).
+            If true (default) the state will be serialized to a byte stream before it
+            is written to the session.
+            If false the state will not be serialized to a byte stream.</description>
+        <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
+        <param-value>true</param-value>
+    </context-param>
+    <context-param>
+        <description>Only applicable if state saving method is "server" (= default) and if
+            org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default)
+            If true (default) the serialized state will be compressed before it
+            is written to the session. If false the state will not be compressed.</description>
+        <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
+        <param-value>true</param-value>
+    </context-param>
+    <context-param>
+        <description>This parameter tells MyFaces if javascript code should be allowed in the
+            rendered HTML output.
+            If javascript is allowed, command_link anchors will have javascript code
+            that submits the corresponding form.
+            If javascript is not allowed, the state saving info and nested parameters
+            will be added as url parameters.
+            Default: "true"</description>
+        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
+        <param-value>true</param-value>
+    </context-param>
+    <context-param>
+        <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
+        <param-value>false</param-value>
+    </context-param>
+    <context-param>
+        <description>If true, rendered HTML code will be formatted, so that it is "human readable".
+            i.e. additional line separators and whitespace will be written, that do not
+            influence the HTML code.
+            Default: "true"</description>
+        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
+        <param-value>true</param-value>
+    </context-param>
+    <context-param>
+        <description>If true, a javascript function will be rendered that is able to restore the
+            former vertical scroll on every request. Convenient feature if you have pages
+            with long lists and you do not want the browser page to always jump to the top
+            if you trigger a link or button action that stays on the same page.
+            Default: "false"</description>
+        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <context-param>
+        <description>Used for encrypting view state. Only relevant for client side
+            state saving. See MyFaces wiki/web site documentation for instructions
+            on how to configure an application for diffenent encryption strengths.
+        </description>
+        <param-name>org.apache.myfaces.SECRET</param-name>
+        <param-value>NzY1NDMyMTA=</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Validate managed beans, navigation rules and ensure that forms are not nested.
+        </description>
+        <param-name>org.apache.myfaces.VALIDATE</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Treat readonly same as if disabled attribute was set for select elements.
+        </description>
+        <param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Use the defined class as the class which will be called when a resource is added to the
+            ExtensionFilter handling. Using StreamingAddResource here helps with performance. If you want to add
+            custom components and want to use the ExtensionFilter, you need to provide your custom implementation here.
+        </description>
+        <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
+        <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Virtual path in the URL which triggers loading of resources for the MyFaces extended components
+            in the ExtensionFilter.
+        </description>
+        <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
+        <param-value>/faces/myFacesExtensionResource</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Check if the extensions-filter has been properly configured.
+        </description>
+        <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Define partial state saving as true/false.
+        </description>
+        <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
+        <param-value>false</param-value>
+    </context-param>
+
+    <!-- Listener, to allow Jetty serving MyFaces apps -->
+    <listener>
+        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+    </listener>
+
+    <!-- Faces Servlet -->
+    <servlet>
+        <servlet-name>Faces Servlet</servlet-name>
+        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <!-- Faces Servlet Mapping -->
+    <servlet-mapping>
+        <servlet-name>Faces Servlet</servlet-name>
+        <url-pattern>*.jsf</url-pattern>
+    </servlet-mapping>
+
+    <!-- Welcome files -->
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form1.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form1.jsp?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form1.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form1.jsp Thu Oct  8 21:28:42 2009
@@ -0,0 +1,44 @@
+<%--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+    <head>
+        <title>Hello World</title>
+    </head>
+    <body>
+        <f:view>
+            <h:form id="mainForm">
+              <h:panelGrid columns="3">
+                <h:outputLabel for="first_name" value="First name:"/>
+                <h:inputText id="first_name" label="First name" value="#{helloWorld['person'].firstName}"/>
+                <h:message for="first_name" showSummary="true" showDetail="false"/>
+
+                <h:outputLabel for="last_name" value="Last name:"/>
+                <h:inputText id="last_name" label="Last name" value="#{helloWorld.person.lastName}"/>
+                <h:message for="last_name" showSummary="true" showDetail="false"/>
+
+                <h:commandButton value="Press me" action="#{helloWorld.send}"/>
+                <h:panelGroup/>
+                <h:panelGroup/>
+              </h:panelGrid>
+            </h:form>
+            <h:messages globalOnly="true" showDetail="true" showSummary="false"/>
+        </f:view>
+    </body>
+</html>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form2.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form2.jsp?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form2.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/form2.jsp Thu Oct  8 21:28:42 2009
@@ -0,0 +1,44 @@
+<%--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+    <head>
+        <title>Hello World</title>
+    </head>
+    <body>
+        <f:view>
+            <h:form id="mainForm">
+              <h:panelGrid columns="3">
+                <h:outputLabel for="first_name" value="First name:"/>
+                <h:inputText id="first_name" label="First name" value="#{helloWorld['person'].firstName}"/>
+                <h:message for="first_name" showSummary="true" showDetail="false"/>
+
+                <h:outputLabel for="last_name" value="Last name:"/>
+                <h:inputText id="last_name" label="Last name" value="#{helloWorld.person.lastName}"/>
+                <h:message for="last_name" showSummary="true" showDetail="false"/>
+
+                <h:commandButton value="Press me" action="#{helloWorld.send}"/>
+                <h:panelGroup/>
+                <h:panelGroup/>
+              </h:panelGrid>
+            </h:form>
+            <h:messages globalOnly="true" showDetail="true" showSummary="false"/>
+        </f:view>
+    </body>
+</html>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/helloWorld.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/helloWorld.jsp?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/helloWorld.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/helloWorld.jsp Thu Oct  8 21:28:42 2009
@@ -0,0 +1,43 @@
+<%--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+    <head>
+        <title>Hello World</title>
+    </head>
+    <body>
+        <f:view>
+            <h:form id="mainForm">
+              <h:panelGrid columns="3">
+                <h:outputLabel for="first_name" value="First name:"/>
+                <h:inputText id="first_name" label="First name" value="#{helloWorld.person.firstName}"/>
+                <h:message for="first_name" showSummary="true" showDetail="false"/>
+
+                <h:outputLabel for="last_name" value="Last name:"/>
+                <h:inputText id="last_name" label="Last name" value="#{helloWorld.person.lastName}"/>
+                <h:message for="last_name" showSummary="true" showDetail="false"/>
+
+                <h:commandButton value="Press me" action="#{helloWorld.send}"/>
+                <h:panelGroup/>
+                <h:panelGroup/>
+              </h:panelGrid>
+            </h:form>
+        </f:view>
+    </body>
+</html>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/index.jsp?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/index.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/index.jsp Thu Oct  8 21:28:42 2009
@@ -0,0 +1,21 @@
+<%--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+
+<%@ page session="false"%>
+<%
+response.sendRedirect("helloWorld.jsf");
+%>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/result.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/result.jsp?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/result.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/result.jsp Thu Oct  8 21:28:42 2009
@@ -0,0 +1,35 @@
+<%--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+    <head>
+        <title>Hello World</title>
+    </head>
+    <body>
+        <f:view>
+            <h:form id="mainForm">
+                <h2><h:outputText value="Hello #{helloWorld.person.firstName} #{helloWorld.person.lastName}. We hope you enjoy Apache MyFaces Extensions Validator!"/></h2>
+                <h:commandLink action="back">
+                    <h:outputText value="Home"/>
+                </h:commandLink>
+            </h:form>
+            <h:messages globalOnly="true" showDetail="true" showSummary="false"/>
+        </f:view>
+    </body>
+</html>

Added: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/violation.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/violation.jsp?rev=823332&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/violation.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/hello_bean-validation/src/main/webapp/violation.jsp Thu Oct  8 21:28:42 2009
@@ -0,0 +1,44 @@
+<%--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+    <head>
+        <title>Hello World</title>
+    </head>
+    <body>
+        <f:view>
+            <h:form id="mainForm">
+              <h:panelGrid columns="3">
+                <h:outputLabel for="first_name" value="First name:"/>
+                <h:inputText id="first_name" label="First name" value="#{helloWorld['person'].firstName}"/>
+                <h:message for="first_name" showSummary="true" showDetail="false"/>
+
+                <h:outputLabel for="last_name" value="Last name:"/>
+                <h:inputText id="last_name" label="Last name" value="#{helloWorld.person.lastName}"/>
+                <h:message for="last_name" showSummary="true" showDetail="false"/>
+
+                <h:commandButton value="Press me" action="#{helloWorld.send}"/>
+                <h:panelGroup/>
+                <h:panelGroup/>
+              </h:panelGrid>
+            </h:form>
+            <h:messages globalOnly="true" showDetail="true" showSummary="false"/>
+        </f:view>
+    </body>
+</html>

Modified: myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/pom.xml?rev=823332&r1=823331&r2=823332&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/pom.xml (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/examples/pom.xml Thu Oct  8 21:28:42 2009
@@ -58,6 +58,7 @@
 
     <modules>
         <module>hello_world</module>
+        <!--module>hello_bean-validation</module-->
         <module>feature-set_01</module>
     </modules>
 

Modified: myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/pom.xml?rev=823332&r1=823331&r2=823332&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/pom.xml (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/pom.xml Thu Oct  8 21:28:42 2009
@@ -45,7 +45,7 @@
         <dependency>
             <groupId>javax.validation</groupId>
             <artifactId>validation-api</artifactId>
-            <version>1.0.CR3-SNAPSHOT</version>
+            <version>1.0.0.GA</version>
             <scope>compile</scope>
         </dependency>
         <dependency>

Modified: myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/BeanValidationInterceptor.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/BeanValidationInterceptor.java?rev=823332&r1=823331&r2=823332&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/BeanValidationInterceptor.java (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_1_1/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/BeanValidationInterceptor.java Thu Oct  8 21:28:42 2009
@@ -124,7 +124,7 @@
         Map<String, Object> metaData;
 
         for (ConstraintDescriptor<?> constraintDescriptor :
-                elementDescriptor.getUnorderdConstraintDescriptorsMatchingGroups(foundGroups))
+                elementDescriptor.findConstraints().unorderedAndMatchingGroups(foundGroups).getConstraintDescriptors())
         {
             //TODO check groups