You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ba...@apache.org on 2006/05/09 21:23:29 UTC

svn commit: r405512 - in /myfaces/maven/trunk/myfaces-archetype: ./ src/ src/main/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/archetype-resources/ src/main/resources/archetype-resources/src/ src/main/resources/archetype-resourc...

Author: baranda
Date: Tue May  9 12:23:26 2006
New Revision: 405512

URL: http://svn.apache.org/viewcvs?rev=405512&view=rev
Log:
Updated and moved myfaces archetype from the test area

Added:
    myfaces/maven/trunk/myfaces-archetype/
    myfaces/maven/trunk/myfaces-archetype/pom.xml   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/
    myfaces/maven/trunk/myfaces-archetype/src/main/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp   (with props)
    myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp   (with props)

Added: myfaces/maven/trunk/myfaces-archetype/pom.xml
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/pom.xml?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/pom.xml (added)
+++ myfaces/maven/trunk/myfaces-archetype/pom.xml Tue May  9 12:23:26 2006
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright 2002-2005 The Apache Software Foundation.
+ *
+ *    Licensed 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.
+ 
+ @author Bruno Aranda (latest modification by $Author$)
+ @version $Revision$ $Date$
+ 
+-->
+<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>
+    <groupId>org.apache.myfaces</groupId>
+    <artifactId>myfaces-archetype</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <packaging>maven-plugin</packaging>
+    <name>MyFaces Archetype</name>
+    <description>Archetype to ease the burden of creating a new application based in myfaces</description>
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype</connection>
+        <developerConnection>
+            scm:svn:https://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/myfaces/maven/trunk/maven-archetype</url>
+    </scm>
+
+    <distributionManagement>
+        <repository>
+            <id>apache-maven</id>
+            <name>Apache Maven Repository</name>
+            <url>scpexe://minotaur.apache.org/www/www.apache.org/dist/maven-repository</url>
+        </repository>
+        <snapshotRepository>
+            <uniqueVersion>false</uniqueVersion>
+            <id>apache-maven-snapshots</id>
+            <name>Apache Maven Snapshot Repository</name>
+            <url>scpexe://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository</url>
+        </snapshotRepository>
+    </distributionManagement>
+
+</project>
+

Propchange: myfaces/maven/trunk/myfaces-archetype/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml Tue May  9 12:23:26 2006
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Copyright 2002-2005 The Apache Software Foundation.
+ *
+ *    Licensed 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.
+ 
+ @author Bruno Aranda (latest modification by $Author$)
+ @version $Revision$ $Date$
+ 
+-->
+
+<archetype>
+  <id>myfaces-archetype</id>
+  <resources>
+    <resource>src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java</resource>
+    <resource>src/main/webapp/index.jsp</resource>
+    <resource>src/main/webapp/helloWorld.jsp</resource>
+    <resource>src/main/webapp/page2.jsp</resource>
+    <resource>src/main/webapp/WEB-INF/web.xml</resource>
+    <resource>src/main/webapp/WEB-INF/examples-config.xml</resource>
+  </resources>
+</archetype>
\ No newline at end of file

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml Tue May  9 12:23:26 2006
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <packaging>war</packaging>
+    <version>${version}</version>
+    <name>A custom project using myfaces</name>
+    <url>http://www.myorganization.org</url>
+
+    <build>
+        <finalName>${artifactId}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty6-plugin</artifactId>
+                <configuration>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <!-- Profile to run jetty, so the tomcat jars are included in the bundle. They are not included by default -->
+    <profiles>
+        <profile>
+            <id>jettyConfig</id>
+            <dependencies>
+                <dependency>
+                    <groupId>javax.servlet</groupId>
+                    <artifactId>jsp-api</artifactId>
+                    <version>2.0</version>
+                    <scope>compile</scope>
+                </dependency>
+                <dependency>
+                    <groupId>tomcat</groupId>
+                    <artifactId>jasper-compiler</artifactId>
+                    <version>5.5.9</version>
+                    <scope>compile</scope>
+                </dependency>
+                <dependency>
+                    <groupId>tomcat</groupId>
+                    <artifactId>jasper-runtime</artifactId>
+                    <version>5.5.9</version>
+                    <scope>compile</scope>
+                </dependency>
+                <dependency>
+                    <groupId>tomcat</groupId>
+                    <artifactId>jasper-compiler-jdt</artifactId>
+                    <version>5.5.9</version>
+                    <scope>compile</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
+
+
+    <repositories>
+        <repository>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <id>apache-maven-snapshots</id>
+            <url>http://cvs.apache.org/maven-snapshot-repository</url>
+        </repository>
+    </repositories>
+
+    <!-- Repositories for plugins -->
+    <pluginRepositories>
+        <!-- Repository to get the jetty plugin -->
+        <pluginRepository>
+            <id>mortbay-repo</id>
+            <name>mortbay-repo</name>
+            <url>http://www.mortbay.org/maven2/snapshot</url>
+        </pluginRepository>
+    </pluginRepositories>
+
+    <!-- Project dependencies -->
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-api</artifactId>
+            <version>1.1.4-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-impl</artifactId>
+            <version>1.1.4-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.myfaces.tomahawk</groupId>
+            <artifactId>tomahawk</artifactId>
+            <version>1.1.3-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+
+</project>
\ No newline at end of file

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java Tue May  9 12:23:26 2006
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ * 
+ * Licensed 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;
+
+/**
+ * A typical simple backing bean, that is backed to <code>helloworld.jsp</code>
+ * 
+ * @author <a href="mailto:matzew@apache.org">Matthias Weßendorf</a> 
+ */
+public class HelloWorldBacking {
+
+    
+    //properties
+    private String name;
+    
+    /**
+     * default empty constructor
+     */
+    public HelloWorldBacking(){   
+    }
+    
+    //-------------------getter & setter
+    public String getName() {
+        return name;
+    }
+    public void setName(String name) {
+        this.name = name;
+    }
+    
+    /**
+     * Method that is backed to a submit button of a form.
+     */
+    public String send(){
+        //do real logic
+        return ("success");
+    }
+}
\ No newline at end of file

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/blank/HelloWorldBacking.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml Tue May  9 12:23:26 2006
@@ -0,0 +1,33 @@
+<?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" >
+
+<faces-config>
+	
+	<!-- managed beans of the simple hello world app -->
+	<managed-bean>
+		<managed-bean-name>helloWorldBacking</managed-bean-name>
+		<managed-bean-class>org.apache.myfaces.blank.HelloWorldBacking</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
+	
+	<!-- navigation rules for helloWorld.jsp -->
+	<navigation-rule>
+		<from-view-id>/helloWorld.jsp</from-view-id>
+		<navigation-case>
+			<from-outcome>success</from-outcome>
+			<to-view-id>/page2.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	
+	<!-- navigation rules for page2.jsp -->
+	<navigation-rule>
+		<from-view-id>/page2.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>
\ No newline at end of file

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/examples-config.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Tue May  9 12:23:26 2006
@@ -0,0 +1,178 @@
+<?xml version="1.0"?>
+
+<!--
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+-->
+
+<!DOCTYPE web-app PUBLIC
+        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+        "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<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>
+
+    <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 and navigation rules.
+        </description>
+        <param-name>org.apache.myfaces.validate</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+
+    <!-- Extensions Filter -->
+    <filter>
+        <filter-name>extensionsFilter</filter-name>
+        <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
+        <init-param>
+            <description>Set the size limit for uploaded files.
+                Format: 10 - 10 bytes
+                10k - 10 KB
+                10m - 10 MB
+                1g - 1 GB</description>
+            <param-name>uploadMaxFileSize</param-name>
+            <param-value>100m</param-value>
+        </init-param>
+        <init-param>
+            <description>Set the threshold size - files
+                below this limit are stored in memory, files above
+                this limit are stored on disk.
+
+                Format: 10 - 10 bytes
+                10k - 10 KB
+                10m - 10 MB
+                1g - 1 GB</description>
+            <param-name>uploadThresholdSize</param-name>
+            <param-value>100k</param-value>
+        </init-param>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>extensionsFilter</filter-name>
+        <url-pattern>*.jsf</url-pattern>
+    </filter-mapping>
+    <filter-mapping>
+        <filter-name>extensionsFilter</filter-name>
+        <url-pattern>/faces/*</url-pattern>
+    </filter-mapping>
+
+    <!-- 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>

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp Tue May  9 12:23:26 2006
@@ -0,0 +1,19 @@
+<%@ 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="form">
+              <h:panelGrid id="grid" columns="2">
+                <h:outputText id="output1" value="Please enter your name"/>
+                <h:inputText id="input1" value="#{helloWorldBacking.name}" required="true"/>
+                <h:commandButton id="button1" value="press me" action="#{helloWorldBacking.send}"/>
+                <h:message id="message1" for="input1"/>
+              </h:panelGrid>
+            </h:form>
+        </f:view>
+    </body>
+</html>

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp Tue May  9 12:23:26 2006
@@ -0,0 +1,4 @@
+<%@ page session="false"%>
+<%
+response.sendRedirect("helloWorld.jsf");
+%>
\ No newline at end of file

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp
URL: http://svn.apache.org/viewcvs/myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp?rev=405512&view=auto
==============================================================================
--- myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp (added)
+++ myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp Tue May  9 12:23:26 2006
@@ -0,0 +1,20 @@
+<%@ 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>        
+            <f:verbatim><h2></f:verbatim>
+            <h:outputText value="Hello #{helloWorldBacking.name}. We hope you enjoy Apache MyFaces"/>
+            <f:verbatim></h2></f:verbatim>
+
+            <h:form id="form2">
+              <h:commandLink id="link1" action="back">
+                <h:outputText id="linkText" value="GO HOME"/>
+              </h:commandLink>
+            </h:form>
+        </f:view>
+    </body>
+</html>
\ No newline at end of file

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/maven/trunk/myfaces-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL