You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by rd...@apache.org on 2010/07/30 15:05:45 UTC
svn commit: r980776 [3/3] - in
/myfaces/extensions/validator/branches/branch_for_jsf_2_0: ./ examples/
examples/feature-set_01/ examples/feature-set_01/src/
examples/feature-set_01/src/main/ examples/feature-set_01/src/main/java/
examples/feature-set_0...
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/helloWorld.xhtml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/helloWorld.xhtml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/helloWorld.xhtml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,51 @@
+<!--
+ * 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.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ template="/layout/template.xhtml">
+ <ui:define name="title">Hello World</ui:define>
+ <ui:define name="content">
+ <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="false" showDetail="true" errorStyle="color: red;"
+ warnStyle="color: orange;"/>
+
+ <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="false" showDetail="true" errorStyle="color: red;"
+ warnStyle="color: orange;"/>
+
+ <h:commandButton value="Press me" action="#{helloWorld.send}"/>
+ <h:panelGroup/>
+ <h:panelGroup/>
+ </h:panelGrid>
+
+ <hr/>
+ <h:commandLink value="group validation example 1" action="example01" immediate="true"/><br/>
+ <h:commandLink value="group validation example 2" action="example02" immediate="true"/><br/>
+ <h:commandLink value="model validation example 1" action="example03" immediate="true"/><br/>
+ <hr/>
+ * non blocking warn mode<br/>
+ ** blocking error mode
+ </ui:define>
+</ui:composition>
+
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/modelValidation01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/modelValidation01.xhtml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/modelValidation01.xhtml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/modelValidation01.xhtml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,41 @@
+<!--
+ * 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.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ template="/layout/template.xhtml">
+ <ui:define name="title">Hello World</ui:define>
+ <ui:define name="content">
+ <h:panelGrid columns="3">
+ <h:outputLabel for="first_name" value="First name*:"/>
+ <h:inputText id="first_name" label="First name" value="#{helloGroupValidationController['person'].firstName}"/>
+ <h:message for="first_name" showSummary="true" showDetail="false" errorStyle="color: red;" warnStyle="color: orange;"/>
+
+ <h:outputLabel for="last_name" value="Last name**:"/>
+ <h:inputText id="last_name" label="Last name" value="#{helloGroupValidationController.person.lastName}"/>
+ <h:message for="last_name" showSummary="true" showDetail="false" errorStyle="color: red;" warnStyle="color: orange;"/>
+
+ <h:commandButton value="Press me" action="#{helloGroupValidationController.send}"/>
+ <h:panelGroup/>
+ <h:panelGroup/>
+ </h:panelGrid>
+ <h:messages globalOnly="true" showDetail="true" showSummary="false"/>
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/result.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/result.xhtml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/result.xhtml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_bean-validation/src/main/webapp/pages/result.xhtml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,34 @@
+<!--
+ * 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.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ template="/layout/template.xhtml">
+ <ui:define name="title">Hello World</ui:define>
+ <ui:define name="content">
+ <h2><h:outputText
+ value="Hello #{helloWorld.person.firstName} #{helloWorld.person.lastName}#{helloGroupValidationController.person.firstName} #{helloGroupValidationController.person.lastName}. We hope you enjoy Apache MyFaces Extensions Validator!"/>
+ </h2>
+ <h:commandLink action="back">
+ <h:outputText value="Home"/>
+ </h:commandLink>
+ <h:messages globalOnly="true" showDetail="true" showSummary="false"/>
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/pom.xml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/pom.xml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/pom.xml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,95 @@
+<?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_world</artifactId>
+
+ <name>MyFaces Extensions-Validator examples hello world</name>
+ <version>2.0.4-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.apache.myfaces.extensions.validator.examples</groupId>
+ <artifactId>examples-project</artifactId>
+ <version>2.0.4-SNAPSHOT</version>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.extensions.validator</groupId>
+ <artifactId>myfaces-extval-core</artifactId>
+ <version>2.0.4-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId>
+ <artifactId>myfaces-extval-property-validation</artifactId>
+ <version>2.0.4-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>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.2</version>
+ <scope>runtime</scope>
+ </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_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/HelloWorldController.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/HelloWorldController.java?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/HelloWorldController.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/HelloWorldController.java Fri Jul 30 13:05:42 2010
@@ -0,0 +1,61 @@
+/*
+ * 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 javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+
+/**
+ * A typical simple backing bean, that is backed to <code>helloworld.jsp</code>
+ *
+ */
+@ManagedBean(name = "helloWorld")
+@RequestScoped
+public class HelloWorldController
+{
+ 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";
+ }
+
+ public Person getPerson()
+ {
+ return person;
+ }
+
+ public void setPerson(Person person)
+ {
+ this.person = person;
+ }
+}
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/domain/Person.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/domain/Person.java?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/domain/Person.java (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/java/org/apache/myfaces/blank/domain/Person.java Fri Jul 30 13:05:42 2010
@@ -0,0 +1,55 @@
+/*
+ * 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.extensions.validator.baseval.annotation.Required;
+import org.apache.myfaces.extensions.validator.core.validation.parameter.ViolationSeverity;
+
+import javax.persistence.Column;
+
+public class Person
+{
+ //hello world demo
+ @Required(parameters = ViolationSeverity.Warn.class)
+ private String firstName;
+
+ //demo for jpa based validation support
+ @Column(nullable = false, length = 10 /*...*/)
+ private String lastName;
+
+ 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;
+ }
+}
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/faces-config.xml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/faces-config.xml Fri Jul 30 13:05:42 2010
@@ -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.
+-->
+
+<faces-config version="2.0"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
+
+ <!-- navigation rules for helloWorld.xhtml -->
+ <navigation-rule>
+ <from-view-id>/pages/helloWorld.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>success</from-outcome>
+ <to-view-id>/pages/page2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- navigation rules for page2.xhtml -->
+ <navigation-rule>
+ <from-view-id>/pages/page2.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>back</from-outcome>
+ <to-view-id>/pages/helloWorld.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/web.xml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/WEB-INF/web.xml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,183 @@
+<?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 version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+ <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_2_0/examples/hello_world/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/index.jsp?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/index.jsp (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/index.jsp Fri Jul 30 13:05:42 2010
@@ -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("pages/helloWorld.jsf");
+%>
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/layout/template.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/layout/template.xhtml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/layout/template.xhtml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/layout/template.xhtml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,53 @@
+<!--
+ * 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.
+-->
+
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core">
+ <f:facet name="metaContainer">
+ <title>sev-en feature-set demo 01</title>
+ </f:facet>
+ <h:head>
+ <title><ui:insert name="title"/> </title>
+ </h:head>
+ <h:body>
+
+ <!-- original -->
+ <div id="wrap">
+
+ <h:form id="form">
+ <div id="main">
+ <ui:insert name="content">
+ <div class="under_construction">
+ <h2>!site under construction!</h2>
+
+ <p>The content of this site is not available at the moment.</p>
+ </div>
+ </ui:insert>
+ </div>
+
+ </h:form>
+ <h:messages globalOnly="true"/>
+
+ </div>
+ </h:body>
+
+
+</html>
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/helloWorld.xhtml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/helloWorld.xhtml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/helloWorld.xhtml Fri Jul 30 13:05:42 2010
@@ -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.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ template="/layout/template.xhtml">
+ <ui:define name="title">Hello World</ui:define>
+ <ui:define name="content">
+
+ <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="false" showDetail="true" errorStyle="color: red;" warnStyle="color: orange;"/>
+
+ <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="false" showDetail="true" errorStyle="color: red;" warnStyle="color: orange;"/>
+
+ <h:commandButton value="Press me" action="#{helloWorld.send}"/>
+ <f:verbatim/>
+ <f:verbatim/>
+ </h:panelGrid>
+ <hr/>
+ * none blocking warn mode<br/>
+ ** blocking error mode
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Added: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/page2.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/page2.xhtml?rev=980776&view=auto
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/page2.xhtml (added)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/hello_world/src/main/webapp/pages/page2.xhtml Fri Jul 30 13:05:42 2010
@@ -0,0 +1,30 @@
+<!--
+ * 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.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ template="/layout/template.xhtml">
+ <ui:define name="title">Hello World</ui:define>
+ <ui:define name="content">
+ <h2><h:outputText value="Hello #{helloWorld.person.firstName} #{helloWorld.person.lastName}. We hope you enjoy Apache MyFaces Extensions Validator!"/></h2>
+ <h:commandLink action="back" value="Home"/>
+
+ </ui:define>
+</ui:composition>
\ No newline at end of file
Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/pom.xml?rev=980776&r1=980775&r2=980776&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/pom.xml (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/examples/pom.xml Fri Jul 30 13:05:42 2010
@@ -57,9 +57,10 @@
</build>
<modules>
- <!--module>hello_world</module-->
- <!--module>hello_bean-validation</module-->
- <!--module>feature-set_01</module-->
+ <module>hello_world</module>
+ <module>hello_bean-validation</module>
+ <module>feature-set_01</module>
+ <module>feature-set_02</module>
</modules>
<profiles>
Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/parent/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/parent/pom.xml?rev=980776&r1=980775&r2=980776&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/parent/pom.xml (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/parent/pom.xml Fri Jul 30 13:05:42 2010
@@ -275,6 +275,6 @@
</profiles>
<properties>
- <jsf.version>2.0.0-beta-2</jsf.version>
+ <jsf.version>2.0.1</jsf.version>
</properties>
</project>
Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/pom.xml?rev=980776&r1=980775&r2=980776&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/pom.xml (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/pom.xml Fri Jul 30 13:05:42 2010
@@ -98,6 +98,6 @@
</profiles>
<properties>
- <jsf.version>2.0.0-beta-2</jsf.version>
+ <jsf.version>2.0.1</jsf.version>
</properties>
</project>
Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/validation-modules/property-validation/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/validation-modules/property-validation/pom.xml?rev=980776&r1=980775&r2=980776&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/validation-modules/property-validation/pom.xml (original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/validation-modules/property-validation/pom.xml Fri Jul 30 13:05:42 2010
@@ -73,30 +73,6 @@
<version>2.1</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.apache.shale</groupId>
- <artifactId>shale-test</artifactId>
- <version>1.0.4</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.apache.myfaces</groupId>
- <artifactId>myfaces-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.myfaces</groupId>
- <artifactId>myfaces-impl</artifactId>
- </exclusion>
- <exclusion>
- <groupId>myfaces</groupId>
- <artifactId>myfaces-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>myfaces</groupId>
- <artifactId>myfaces-impl</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
</dependencies>