incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r415028 - in /incubator/adffaces/trunk/plugins: ./ maven-adf-archetype/ maven-adf-archetype/src/ maven-adf-archetype/src/main/ maven-adf-archetype/src/main/resources/ maven-adf-archetype/src/main/resources/META-INF/ maven-adf-archetype/src/...
Date Sat, 17 Jun 2006 16:53:17 GMT
Author: matzew
Date: Sat Jun 17 09:53:16 2006
New Revision: 415028

URL: http://svn.apache.org/viewvc?rev=415028&view=rev
Log:
adding a maven2 archetype

Added:
    incubator/adffaces/trunk/plugins/maven-adf-archetype/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/pom.xml
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/META-INF/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/META-INF/archetype.xml
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/pom.xml
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/blank/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/blank/HelloWorldBacking.java
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jspx
    incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jspx
Modified:
    incubator/adffaces/trunk/plugins/pom.xml

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/pom.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/pom.xml?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/pom.xml (added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/pom.xml Sat Jun 17 09:53:16 2006
@@ -0,0 +1,50 @@
+<?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.
+ 
+-->
+<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.adf.maven</groupId>
+  <artifactId>adf-archetype</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+  <name>ADF Archetype</name>
+  <description>Archetype to ease the burden of creating a new application based with
ADF</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>
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/META-INF/archetype.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/META-INF/archetype.xml?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/META-INF/archetype.xml
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/META-INF/archetype.xml
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,28 @@
+<?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.
+ -->
+
+<archetype>
+  <id>adf-archetype</id>
+  <resources>
+    <resource>src/main/java/org/apache/myfaces/adf/blank/HelloWorldBacking.java</resource>
+    <resource>src/main/webapp/index.jspx</resource>
+    <resource>src/main/webapp/page2.jspx</resource>
+    <resource>src/main/webapp/WEB-INF/web.xml</resource>
+    <resource>src/main/webapp/WEB-INF/faces-config.xml</resource>
+  </resources>
+</archetype>
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/pom.xml?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/pom.xml
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/pom.xml
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,128 @@
+<?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>
+  </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>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.mortbay.jetty</groupId>
+            <artifactId>maven-jetty6-plugin</artifactId>
+            <configuration>
+              <scanIntervalSeconds>10</scanIntervalSeconds>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+
+      <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>
+
+      <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>
+
+    </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>
+
+  <!-- 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>
+
+    <!-- adf -->
+    <dependency>
+      <groupId>org.apache.myfaces.adf</groupId>
+      <artifactId>adf-faces-api</artifactId>
+      <version>incubator-m1-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.myfaces.adf</groupId>
+      <artifactId>adf-faces-impl</artifactId>
+      <version>incubator-m1-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.0</version>
+      <scope>test</scope>
+    </dependency>
+
+  </dependencies>
+</project>
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/blank/HelloWorldBacking.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/blank/HelloWorldBacking.java?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/blank/HelloWorldBacking.java
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/java/org/apache/myfaces/adf/blank/HelloWorldBacking.java
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,65 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.adf.blank;
+
+import javax.faces.context.FacesContext;
+
+import org.apache.myfaces.adf.render.ExtendedRenderKitService;
+import org.apache.myfaces.adf.util.Service;
+
+/**
+ * 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()
+  {
+    FacesContext facesContext = FacesContext.getCurrentInstance();
+    ExtendedRenderKitService service = (ExtendedRenderKitService)
+      Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
+    service.addScript(facesContext, "alert('Script added by ExtendedRenderKitService')");
+
+    //do real logic
+    return ("success");
+  }
+}
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,58 @@
+<?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 faces-config PUBLIC
+  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >
+<faces-config>
+  
+  <application>
+    <!-- Use the ADF RenderKit -->
+    <default-render-kit-id>
+      org.apache.myfaces.adf.core
+    </default-render-kit-id>
+  </application>
+
+  <!-- Global preferences object that proxies to others -->
+  <managed-bean>
+    <managed-bean-name>helloWorldBacking</managed-bean-name>
+    <managed-bean-class>
+       org.apache.myfaces.adf.blank.HelloWorldBacking
+    </managed-bean-class>
+    <managed-bean-scope>
+       request
+    </managed-bean-scope>
+  </managed-bean>
+
+  <!-- navigation rules for index.jspx -->
+  <navigation-rule>
+    <from-view-id>/index.jspx</from-view-id>
+    <navigation-case>
+      <from-outcome>success</from-outcome>
+      <to-view-id>/page2.jspx</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+	
+  <!-- navigation rules for page2.jspx -->
+  <navigation-rule>
+    <from-view-id>/page2.jspx</from-view-id>
+    <navigation-case>
+      <from-outcome>back</from-outcome>
+      <to-view-id>/index.jspx</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+
+</faces-config>
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,113 @@
+<?xml version = '1.0' encoding = 'ISO-8859-1'?>
+<!--
+  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>
+
+  <!-- Use client-side state saving.  In ADF Faces, it is an
+       optimized, token-based mechanism that is almost always a
+       better choice than the standard JSF server-side state saving. -->
+  <context-param>
+    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+    <param-value>client</param-value>
+    <!--param-value>server</param-value-->
+  </context-param>
+
+  <!-- ADF Faces by default uses an optimized client-side state saving
+       mechanism. To disable that, uncomment the following -->
+  <!--context-param>
+    <param-name>org.apache.myfaces.adf.CLIENT_STATE_METHOD</param-name>
+    <param-value>all</param-value>
+  </context-param-->
+
+  <!-- ADF Faces also supports an optimized strategy for caching some
+   view state at an application level, which significantly improves
+   scalability.  However, it makes it harder to develop (updates to
+   pages will not be noticed until the server is restarted), and in
+   some rare cases cannot be used for some pages (see ADF Faces
+   documentation for more information) -->
+  <context-param>
+    <param-name>org.apache.myfaces.adf.USE_APPLICATION_VIEW_CACHE</param-name>
+    <param-value>false</param-value>
+  </context-param>
+
+  <!-- If this parameter is enabled, ADF Faces will automatically
+       check the modification date of your JSPs, and discard saved
+       state when they change;  this makes development easier,
+       but adds overhead that should be avoided when your application
+       is deployed -->
+  <context-param>
+    <param-name>org.apache.myfaces.adf.CHECK_FILE_MODIFICATION</param-name>
+    <param-value>true</param-value>
+  </context-param>
+
+  <!-- Enables Change Persistence at a session scope.  By default,
+       Change Persistence is entirely disabled. The ChangeManager is
+       an API, which can persist component modifications (like,
+       is a showDetail or tree expanded or collapsed). For providing
+       a custom Change Persistence implementation inherit from the 
+       ADF Faces API's ChangeManager class. As the value you have 
+       to use the fullqualified class name. -->
+  <context-param>
+    <param-name>org.apache.myfaces.adf.CHANGE_PERSISTENCE</param-name>
+    <param-value>session</param-value>
+  </context-param>
+
+  <filter>
+    <filter-name>adfFaces</filter-name>
+    <filter-class>org.apache.myfaces.adf.webapp.AdfFacesFilter</filter-class>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>adfFaces</filter-name>
+    <servlet-name>faces</servlet-name>
+  </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-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  </servlet>
+  
+  <!-- resource loader servlet -->
+  <servlet>
+    <servlet-name>resources</servlet-name>
+    <servlet-class>org.apache.myfaces.adf.webapp.ResourceServlet</servlet-class>
+  </servlet>
+
+  <!-- Faces Servlet Mappings -->
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>/faces/*</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>resources</servlet-name>
+    <url-pattern>/adf/*</url-pattern>
+  </servlet-mapping>
+
+
+  <!-- Welcome Files -->
+  <welcome-file-list>
+    <welcome-file>index.jspx</welcome-file>
+  </welcome-file-list>
+
+</web-app>
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jspx?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jspx
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/index.jspx
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+  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.
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:af="http://myfaces.apache.org/adf/faces" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <af:document title="ADF Archetype Demo">
+       <af:form>
+       
+        <af:panelPage>
+          <af:inputText label="Your name" id="input1" value="#{helloWorldBacking.name}"
required="true"/>
+          <af:commandButton id="button1" text="press me" action="#{helloWorldBacking.send}"
/>
+        </af:panelPage>
+       
+       </af:form>
+    </af:document>
+  </f:view>
+</jsp:root>
\ No newline at end of file

Added: incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jspx?rev=415028&view=auto
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jspx
(added)
+++ incubator/adffaces/trunk/plugins/maven-adf-archetype/src/main/resources/archetype-resources/src/main/webapp/page2.jspx
Sat Jun 17 09:53:16 2006
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+  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.
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:af="http://myfaces.apache.org/adf/faces" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <af:document title="ADF Archetype Demo">
+       <af:form>
+       
+        <af:panelPage>
+          <af:outputText id="input1" value="Hello #{helloWorldBacking.name}. We hope you
enjoy Apache ADF Faces"/>
+          <af:commandLink id="link" text="GO HOME" action="back" />
+        </af:panelPage>
+       
+       </af:form>
+    </af:document>
+  </f:view>
+</jsp:root>
\ No newline at end of file

Modified: incubator/adffaces/trunk/plugins/pom.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/pom.xml?rev=415028&r1=415027&r2=415028&view=diff
==============================================================================
--- incubator/adffaces/trunk/plugins/pom.xml (original)
+++ incubator/adffaces/trunk/plugins/pom.xml Sat Jun 17 09:53:16 2006
@@ -1,75 +1,76 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  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.
--->
-<project>
-  <modelVersion>4.0.0</modelVersion>
-
-  <groupId>org.apache.myfaces.adfbuild</groupId>
-  <artifactId>maven-plugin-parent</artifactId> 
-  <version>incubator-alpha-1-SNAPSHOT</version>
-  <packaging>pom</packaging>
-  <name>Maven Apache Plugin Parent</name>
-
-  <ciManagement>
-    <system>continuum</system>
-    <notifiers>
-      <notifier>
-        <type>mail</type>
-        <configuration>
-<!--
-          <address>TBD</address>
--->
-        </configuration>
-      </notifier>
-    </notifiers>
-  </ciManagement>
-  
-  <scm>
-    <connection>
-      scm:svn:http://svn.apache.org/repos/asf/incubator/adffaces/trunk/plugins/
-    </connection>
-  </scm>
-
-  <modules>
-    <module>maven-javacc-plugin</module>
-    <module>maven-faces-plugin</module>
-    <module>maven-tagdoc-plugin</module>
-    <module>maven-i18n-plugin</module>
-    <module>maven-jdev-plugin</module>
-    <module>maven-javascript-plugin</module>
-    <module>maven-mock-plugin</module>
-    <module>maven-xrts-plugin</module>
-  </modules>
-
-  <distributionManagement>
-<!--
-    <repository>
-      <id>incubator</id>
-      <name>Maven2 Incubator Repository</name>
-      <url>TBD</url>
-      <layout>default</layout>
-    </repository>
-    <snapshotRepository>
-      <uniqueVersion>false</uniqueVersion>
-      <id>incubator-snapshots</id>
-      <name>Maven2 Incubator Snapshots Repository</name>
-      <url>TBD</url>
-      <layout>default</layout>
-    </snapshotRepository>
--->
-  </distributionManagement>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.myfaces.adfbuild</groupId>
+  <artifactId>maven-plugin-parent</artifactId> 
+  <version>incubator-alpha-1-SNAPSHOT</version>
+  <packaging>pom</packaging>
+  <name>Maven Apache Plugin Parent</name>
+
+  <ciManagement>
+    <system>continuum</system>
+    <notifiers>
+      <notifier>
+        <type>mail</type>
+        <configuration>
+<!--
+          <address>TBD</address>
+-->
+        </configuration>
+      </notifier>
+    </notifiers>
+  </ciManagement>
+  
+  <scm>
+    <connection>
+      scm:svn:http://svn.apache.org/repos/asf/incubator/adffaces/trunk/plugins/
+    </connection>
+  </scm>
+
+  <modules>
+    <module>maven-javacc-plugin</module>
+    <module>maven-faces-plugin</module>
+    <module>maven-tagdoc-plugin</module>
+    <module>maven-i18n-plugin</module>
+    <module>maven-jdev-plugin</module>
+    <module>maven-javascript-plugin</module>
+    <module>maven-mock-plugin</module>
+    <module>maven-xrts-plugin</module>
+    <module>maven-adf-archetype</module>
+  </modules>
+
+  <distributionManagement>
+<!--
+    <repository>
+      <id>incubator</id>
+      <name>Maven2 Incubator Repository</name>
+      <url>TBD</url>
+      <layout>default</layout>
+    </repository>
+    <snapshotRepository>
+      <uniqueVersion>false</uniqueVersion>
+      <id>incubator-snapshots</id>
+      <name>Maven2 Incubator Snapshots Repository</name>
+      <url>TBD</url>
+      <layout>default</layout>
+    </snapshotRepository>
+-->
+  </distributionManagement>
+
+</project>



Mime
View raw message