Author: prabhat.jha(a)jboss.com
Date: 2009-08-27 11:43:07 -0400 (Thu, 27 Aug 2009)
New Revision: 15350
Added:
branches/community/3.3.X/archetypes/
branches/community/3.3.X/archetypes/richfaces-facelets/
branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/lib/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java
Log:
archetype for richfaces and facelet project
Added: branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml
===================================================================
--- branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml
(rev 0)
+++ branches/community/3.3.X/archetypes/richfaces-facelets/pom.xml 2009-08-27 15:43:07 UTC
(rev 15350)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.archetypes</groupId>
+ <artifactId>richfaces-facelets</artifactId>
+ <version>3.3.2-SNAPSHOT</version>
+ <name>maven-archetype-rf-facelets</name>
+ <packaging>maven-archetype</packaging>
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype-metadata.xml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor
name="myproject">
+ <fileSets>
+ <fileSet filtered="true" packaged="true"
encoding="UTF-8">
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>src/main/webapp</directory>
+ <includes>
+ <include>**/*.jsp</include>
+ <include>**/*.xhtml</include>
+ <include>**/*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet encoding="UTF-8">
+ <directory>src/main/webapp</directory>
+ <includes>
+ <include>**/*.MF</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" packaged="true"
encoding="UTF-8">
+ <directory>src/test/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</archetype-descriptor>
\ No newline at end of file
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/META-INF/maven/archetype.xml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?><archetype>
+ <id>myproject</id>
+ <sources>
+ <source>src/main/java/Bean.java</source>
+ </sources>
+ <testSources>
+ <source>src/test/java/BeanTest.java</source>
+ </testSources>
+ <resources>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/faces-config.xml</resource>
+ <resource>src/main/webapp/META-INF/MANIFEST.MF</resource>
+ <resource>src/main/webapp/templates/template.xhtml</resource>
+ <resource>src/main/webapp/pages/static.xhtml</resource>
+ <resource>src/main/webapp/pages/polling.xhtml</resource>
+ <resource>src/main/webapp/pages/home.xhtml</resource>
+ <resource>src/main/webapp/index.jsp</resource>
+ </resources>
+</archetype>
\ No newline at end of file
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/pom.xml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,39 @@
+<?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>
+ <name>${artifactId}</name>
+ <version>${version}</version>
+ <packaging>war</packaging>
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.3.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.15.B1</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/java/Bean.java 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,9 @@
+package ${package};
+
+import java.util.Date;
+
+public class Bean {
+ public Date getCurrentDate() {
+ return new Date();
+ }
+}
\ No newline at end of file
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/META-INF/MANIFEST.MF 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess"/>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.1//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>${package}.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*.xhtml</param-value>
+ </context-param>
+ <filter>
+ <display-name>RichFaces Filter</display-name>
+ <filter-name>richfaces</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>richfaces</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/index.jsp 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="/pages/home.jsf" />
+ </body>
+
+</html>
\ No newline at end of file
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/home.xhtml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+<head>
+<title></title>
+</head>
+<body>
+
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="panels">
+
+ <rich:tabPanel switchType="ajax">
+ <rich:tab label="Static">
+ <ui:include src="static.xhtml" />
+ </rich:tab>
+
+ <rich:tab label="Polling">
+ <ui:include src="polling.xhtml" />
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+
+</ui:composition>
+
+</body>
+</html>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/polling.xhtml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+<body>
+
+<ui:composition>
+
+ <a4j:region>
+ <h:form>
+ <a4j:poll id="poll" interval="500" enabled="true"
+ reRender="poll,grid" />
+ </h:form>
+ </a4j:region>
+ <h:form>
+ <h:panelGrid id="grid" columns="2">
+ <h:outputText value="Periodically updated most recent date:" />
+ <h:outputText id="pollingDate" value="#{bean.currentDate}"
/>
+ </h:panelGrid>
+ </h:form>
+
+</ui:composition>
+</body>
+</html>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/pages/static.xhtml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+<body>
+
+<ui:composition>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="Current date is" />
+ <h:outputText value="#{bean.currentDate}" />
+ </h:panelGrid>
+
+</ui:composition>
+</body>
+</html>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/main/webapp/templates/template.xhtml 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+<head>
+<title></title>
+</head>
+<body>
+
+<ui:insert name="panels">
+ <p>System of panels</p>
+</ui:insert>
+
+</body>
+</html>
Added:
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java
===================================================================
---
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java
(rev 0)
+++
branches/community/3.3.X/archetypes/richfaces-facelets/src/main/resources/archetype-resources/src/test/java/BeanTest.java 2009-08-27
15:43:07 UTC (rev 15350)
@@ -0,0 +1,13 @@
+package ${package};
+
+import junit.framework.TestCase;
+
+public class BeanTest extends TestCase {
+ public BeanTest(String testName) {
+ super(testName);
+ }
+
+ public void testStub() throws Exception {
+
+ }
+}