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/06/12 01:58:05 UTC
svn commit: r413548 [1/2] - in /myfaces/maven/trunk/jsfcomponents-archetype:
./ src/ src/main/ src/main/resources/ src/main/resources/META-INF/
src/main/resources/archetype-resources/
src/main/resources/archetype-resources/core/ src/main/resources/arch...
Author: baranda
Date: Sun Jun 11 16:58:03 2006
New Revision: 413548
URL: http://svn.apache.org/viewvc?rev=413548&view=rev
Log:
Maven archetype to generate a jsf component library project.
Added:
myfaces/maven/trunk/jsfcomponents-archetype/ (with props)
myfaces/maven/trunk/jsfcomponents-archetype/pom.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/sayhello.jsp (with props)
myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/pom.xml (with props)
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Jun 11 16:58:03 2006
@@ -0,0 +1 @@
+target
Added: myfaces/maven/trunk/jsfcomponents-archetype/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/pom.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/pom.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/pom.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright 2002-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.
+
+ @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.maven</groupId>
+ <artifactId>jsfcomponents-archetype</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+ <name>JSF Components Library Archetype</name>
+ <description>Archetype to ease the burden of creating a library of JSF components</description>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/maven/trunk/jsfcomponents-archetype</connection>
+ <developerConnection>
+ scm:svn:https://svn.apache.org/repos/asf/myfaces/maven/trunk/jsfcomponents-archetype</developerConnection>
+ <url>http://svn.apache.org/viewcvs.cgi/myfaces/maven/trunk/jsfcomponents-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/jsfcomponents-archetype/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Copyright 2002-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.
+
+ @author Bruno Aranda (latest modification by $Author$)
+ @version $Revision$ $Date$
+
+-->
+
+<archetype>
+ <id>jsfcomponents-archetype</id>
+ <resources>
+ <resource>examples/src/main/resources/org/myorganization/component/example/build.properties</resource>
+ <resource>examples/src/main/java/org/myorganization/component/example/SayHelloBean.java</resource>
+ <resource>examples/src/main/webapp/sayhello.jsp</resource>
+ <resource>examples/src/main/webapp/index.jsp</resource>
+ <resource>examples/src/main/webapp/WEB-INF/examples-config.xml</resource>
+ <resource>examples/src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>examples/src/main/webapp/home.jsp</resource>
+ <resource>examples/pom.xml</resource>
+ <resource>core/src/main/resources/META-INF/faces-config.xml</resource>
+ <resource>core/src/main/tld/entities/say_hello_attributes.xml</resource>
+ <resource>core/src/main/tld/entities/ui_component_attributes.xml</resource>
+ <resource>core/src/main/tld/misc/resolve_entities.xsl</resource>
+ <resource>core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd</resource>
+ <resource>core/src/main/tld/misc/resolve_entities-tlddoc.xsl</resource>
+ <resource>core/src/main/tld/mycomponents.tld</resource>
+ <resource>core/src/main/java/org/myorganization/component/sayhello/SayHello.java</resource>
+ <resource>core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java</resource>
+ <resource>core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java</resource>
+ <resource>core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java</resource>
+ <resource>core/pom.xml</resource>
+ </resources>
+</archetype>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,289 @@
+<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>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>jar</packaging>
+ <name>My JSF Components Library</name>
+
+ <description>
+ This is my super jsf components library.
+ </description>
+
+ <parent>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}-project</artifactId>
+ <version>${version}</version>
+ </parent>
+
+ <dependencies>
+
+ <!-- compile -->
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-validator</groupId>
+ <artifactId>commons-validator</artifactId>
+ <version>1.2.0</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.1</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-el</groupId>
+ <artifactId>commons-el</artifactId>
+ <version>1.0</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- provided dependencies -->
+
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <version>1.1.4-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.3</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- test dependencies -->
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.struts.shale</groupId>
+ <artifactId>shale-test</artifactId>
+ <version>1.0.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xslt-maven-plugin</artifactId>
+ <version>1.0</version>
+ <configuration>
+ <xslFile>src/main/tld/misc/resolve_entities.xsl</xslFile>
+ <srcIncludes>**/*.tld</srcIncludes>
+ <srcDir>src/main/tld</srcDir>
+ <destDir>target/classes/META-INF</destDir>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>changelog-maven-plugin</artifactId>
+ <version>2.0-beta-1</version>
+ <reportSets>
+ <reportSet>
+ <id>dual-report</id>
+ <configuration>
+ <type>range</type>
+ <range>30</range>
+ </configuration>
+ <reports>
+ <report>changelog</report>
+ <report>file-activity</report>
+ <report>dev-activity</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.0-beta-3</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jxr-maven-plugin</artifactId>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <version>2.0-beta-1</version>
+ <configuration>
+ <tags>TODO, FIXME, XXX, @deprecated</tags>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>surefire-report-maven-plugin</artifactId>
+ </plugin>
+
+ </plugins>
+ </reporting>
+
+ <profiles>
+ <profile>
+ <id>generate-site</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xslt-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>generate-tld-for-tlddoc</id>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ <configuration>
+ <xslFile>src/main/tld/misc/resolve_entities-tlddoc.xsl</xslFile>
+ <srcIncludes>**/*.tld</srcIncludes>
+ <srcDir>src/main/tld</srcDir>
+ <destDir>target/tlddoc-site</destDir>
+ </configuration>
+ </execution>
+ <execution>
+ <id>generate-tld-for-jar</id>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ <configuration>
+ <xslFile>src/main/tld/misc/resolve_entities.xsl</xslFile>
+ <srcIncludes>**/*.tld</srcIncludes>
+ <srcDir>src/main/tld</srcDir>
+ <destDir>target/classes/META-INF</destDir>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>net.sourceforge.maven-taglib</groupId>
+ <artifactId>maven-taglib-plugin</artifactId>
+ <configuration>
+ <taglib.src.dir>${basedir}/target/tlddoc-site</taglib.src.dir>
+ <tldDocDir>${basedir}/target/site/tlddoc</tldDocDir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+ </profile>
+ <profile>
+ <id>generate-assembly</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xslt-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>generate-tld-for-tlddoc</id>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ <configuration>
+ <xslFile>src/main/tld/misc/resolve_entities-tlddoc.xsl</xslFile>
+ <srcIncludes>**/*.tld</srcIncludes>
+ <srcDir>src/main/tld</srcDir>
+ <destDir>target/tlddoc-site</destDir>
+ </configuration>
+ </execution>
+ <execution>
+ <id>generate-tld-for-jar</id>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ <configuration>
+ <xslFile>src/main/tld/misc/resolve_entities.xsl</xslFile>
+ <srcIncludes>**/*.tld</srcIncludes>
+ <srcDir>src/main/tld</srcDir>
+ <destDir>target/classes/META-INF</destDir>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <goals><goal>jar</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>net.sourceforge.maven-taglib</groupId>
+ <artifactId>maven-taglib-plugin</artifactId>
+ <configuration>
+ <taglib.src.dir>${basedir}/target/tlddoc-site</taglib.src.dir>
+ <tldDocDir>${basedir}/target/tlddoc</tldDocDir>
+ </configuration>
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <goals><goal>taglibdocjar</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java Sun Jun 11 16:58:03 2006
@@ -0,0 +1,77 @@
+package org.myorganization.component.sayhello;
+
+import javax.faces.component.UIOutput;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+/**
+ * The sayHello component
+ */
+public class SayHello extends UIOutput
+{
+ public static final String COMPONENT_TYPE = "org.myorganization.SayHello";
+ public static final String DEFAULT_RENDERER_TYPE = "org.myorganization.SayHelloRenderer";
+ public static final String COMPONENT_FAMILY = "javax.faces.Output";
+
+ private String firstName;
+ private String lastName;
+
+ public SayHello()
+ {
+ // do nothing
+ }
+
+
+ public String getFamily()
+ {
+ return COMPONENT_FAMILY;
+ }
+
+ public void restoreState(FacesContext context, Object state) {
+ Object values[] = (Object[])state;
+ super.restoreState(context, values[0]);
+
+ this.firstName = (String)values[1];
+ this.lastName = (String)values[2];
+ }
+
+ public Object saveState(FacesContext context) {
+ Object values[] = new Object[3];
+ values[0] = super.saveState(context);
+ values[1] = firstName;
+ values[2] = lastName;
+ return values;
+ }
+
+ public String getFirstName()
+ {
+ if (firstName != null)
+ {
+ return firstName;
+ }
+
+ ValueBinding vb = getValueBinding("firstName");
+ return (vb == null)? null : (String) vb.getValue(FacesContext.getCurrentInstance());
+ }
+
+ public void setFirstName(String firstName)
+ {
+ this.firstName = firstName;
+ }
+
+ public String getLastName()
+ {
+ if (lastName != null)
+ {
+ return lastName;
+ }
+
+ ValueBinding vb = getValueBinding("lastName");
+ return (vb == null)? null : (String) vb.getValue(FacesContext.getCurrentInstance());
+ }
+
+ public void setLastName(String lastName)
+ {
+ this.lastName = lastName;
+ }
+}
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHello.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java Sun Jun 11 16:58:03 2006
@@ -0,0 +1,63 @@
+package org.myorganization.component.sayhello;
+
+import javax.faces.render.Renderer;
+import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
+import javax.faces.component.UIComponent;
+import java.io.IOException;
+
+/**
+ * The renderer for my component
+ */
+public class SayHelloRenderer extends Renderer
+{
+
+ public void decode(FacesContext facesContext, UIComponent uiComponent)
+ {
+ super.decode(facesContext, uiComponent);
+ // nothing to decode
+ }
+
+ public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException
+ {
+ super.encodeBegin(facesContext, uiComponent);
+ // no need to use encodeBegin.
+ }
+
+ public void encodeChildren(FacesContext facesContext, UIComponent uiComponent) throws IOException
+ {
+ super.encodeChildren(facesContext, uiComponent);
+ // this component does not have children
+ }
+
+ public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException
+ {
+ super.encodeEnd(facesContext, uiComponent);
+
+ if (!uiComponent.isRendered())
+ {
+ return;
+ }
+
+ ResponseWriter writer = facesContext.getResponseWriter();
+
+ SayHello sayHello = (SayHello) uiComponent;
+
+ String firstName = sayHello.getFirstName();
+ String lastName = sayHello.getLastName();
+
+ writer.write("Hello ");
+
+ if (firstName != null)
+ {
+ writer.write(firstName);
+ }
+
+ if (lastName != null)
+ {
+ writer.write(" "+lastName);
+ }
+
+ writer.write("!");
+ }
+}
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloRenderer.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java Sun Jun 11 16:58:03 2006
@@ -0,0 +1,82 @@
+package org.myorganization.component.sayhello;
+
+import javax.faces.application.Application;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.webapp.UIComponentTag;
+
+/**
+ * The tag for my component
+ */
+public class SayHelloTag extends UIComponentTag
+{
+
+ private String firstName;
+ private String lastName;
+
+ /**
+ * @see javax.faces.webapp.UIComponentTag#getComponentType()
+ */
+ public String getComponentType()
+ {
+ return SayHello.COMPONENT_TYPE;
+ }
+
+ /**
+ * @see javax.faces.webapp.UIComponentTag#getRendererType()
+ */
+ public String getRendererType()
+ {
+ return SayHello.DEFAULT_RENDERER_TYPE;
+ }
+
+ /**
+ * @see javax.faces.webapp.UIComponentTag#setProperties
+ */
+ protected void setProperties(UIComponent component) {
+ super.setProperties(component);
+
+ FacesContext context = FacesContext.getCurrentInstance();
+ Application application = context.getApplication();
+
+ // firstName
+ if (UIComponentTag.isValueReference(firstName))
+ {
+ component.setValueBinding("firstName", application.createValueBinding(firstName));
+ }
+ else
+ {
+ component.getAttributes().put("firstName", firstName);
+ }
+
+ // lastName
+ if (lastName != null)
+ {
+ if (UIComponentTag.isValueReference(lastName))
+ {
+ component.setValueBinding("lastName", application.createValueBinding(lastName));
+ }
+ else
+ {
+ component.getAttributes().put("lastName", lastName);
+ }
+ }
+
+ }
+
+ public void release() {
+ super.release();
+ this.firstName = null;
+ this.lastName = null;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ this.firstName = firstName;
+ }
+
+ public void setLastName(String lastName)
+ {
+ this.lastName = lastName;
+ }
+}
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/java/org/myorganization/component/sayhello/SayHelloTag.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!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 xmlns="http://java.sun.com/JSF/Configuration">
+
+ <!-- components -->
+
+ <component>
+ <component-type>org.myorganization.SayHello</component-type>
+ <component-class>org.myorganization.component.sayhello.SayHello</component-class>
+ </component>
+
+
+ <!-- renderkit -->
+
+ <render-kit>
+
+ <renderer>
+ <component-family>javax.faces.Output</component-family>
+ <renderer-type>org.myorganization.SayHelloRenderer</renderer-type>
+ <renderer-class>org.myorganization.component.sayhello.SayHelloRenderer</renderer-class>
+ </renderer>
+
+ </render-kit>
+
+</faces-config>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/resources/META-INF/faces-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,17 @@
+<!-- This is the list of attributes for the sayHello component -->
+<attribute>
+ <name>firstName</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The first name of the user
+ </description>
+</attribute>
+<attribute>
+ <name>lastName</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The last name of the user
+ </description>
+</attribute>
\ No newline at end of file
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/say_hello_attributes.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,34 @@
+<attribute>
+ <name>id</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ The developer-assigned ID of this component. The ID must be unique
+ within the scope of the tag's enclosing naming container (e.g.
+ h:form or f:subview). This value must be a static value.
+ </description>
+</attribute>
+
+<attribute>
+ <name>binding</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ Identifies a backing bean property (of type UIComponent or appropriate
+ subclass) to bind to this component instance. This value must be an
+ EL expression.
+ </description>
+</attribute>
+
+<attribute>
+ <name>rendered</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description>
+ A boolean value that indicates whether this component should be rendered.
+ Default value: true.
+ </description>
+</attribute>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/entities/ui_component_attributes.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl Sun Jun 11 16:58:03 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ - Stylesheet to expand xml entity references inline.
+ -
+ - This is a temporary workaround for a bug in the tlddoc application which means that
+ - a (valid) xmlns attribute is rejected; tlddoc v1.3 only accepts input that (incorrectly)
+ - puts the tld elements in no namespace. This stylesheet therefore generates a special
+ - version of the tld for feeding to the tlddoc app, until such time as tlddoc is fixed.
+ -->
+<xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="xml"
+ encoding="ISO-8859-1"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
+ indent="yes"/>
+
+ <xsl:template match="*" priority="2">
+ <!-- avoiding copy to get get rid of namespace attribute -->
+ <xsl:element name="{name(.)}">
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities-tlddoc.xsl
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl Sun Jun 11 16:58:03 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ - Stylesheet to pretty-print an xml document. In addition, if the input
+ - document contains any xml entity references, then those are expanded
+ - inline.
+ -
+ - Based on a stylesheet by John Mongan.
+ -->
+<xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="xml"
+ encoding="ISO-8859-1"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"/>
+
+ <xsl:param name="indent-increment" select="' '" />
+
+ <xsl:template match="*">
+ <xsl:param name="indent" select="'
'"/>
+
+ <xsl:value-of select="$indent"/>
+ <xsl:copy>
+ <xsl:copy-of select="@*" />
+ <xsl:apply-templates>
+ <xsl:with-param name="indent"
+ select="concat($indent, $indent-increment)"/>
+ </xsl:apply-templates>
+ <xsl:if test="*">
+ <xsl:value-of select="$indent"/>
+ </xsl:if>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="comment()|processing-instruction()">
+ <xsl:param name="indent" select="'
'"/>
+ <xsl:value-of select="$indent"/>
+ <xsl:copy />
+ </xsl:template>
+
+ <!--
+ - Discard the text content of a node where the text content
+ - is nothing but whitespace. When this rule isn't matched
+ - the default xml processing applies, which is to copy the
+ - text directly to the output.
+ -
+ - WARNING: this is dangerous. Handle with care
+ -->
+ <xsl:template match="text()[normalize-space(.)='']"/>
+
+</xsl:stylesheet>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/resolve_entities.xsl
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd Sun Jun 11 16:58:03 2006
@@ -0,0 +1,467 @@
+<!--
+ Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+ -->
+
+<!--
+
+ This is the DTD defining the JavaServer Pages 1.2 Tag Library
+ descriptor (.tld) (XML) file format/syntax.
+
+ A Tag Library is a JAR file containing a valid instance of a Tag Library
+ Descriptor (taglib.tld) file in the META-INF subdirectory, along with the
+ appropriate implementing classes, and other resources required to
+ implement the tags defined therein.
+
+ Use is subject to license terms.
+ -->
+
+<!NOTATION WEB-JSPTAGLIB.1_2 PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN">
+
+<!--
+This is the XML DTD for the JSP 1.2 Tag Library Descriptor.
+All JSP 1.2 tag library descriptors must include a DOCTYPE
+of the following form:
+
+ <!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+
+-->
+
+<!--
+The taglib tag is the document root, it defines:
+
+tlib-version the version of the tag library implementation
+
+jsp-version the version of JSP the tag library depends upon
+
+short-name a simple default short name that could be used by
+ a JSP authoring tool to create names with a mnemonic
+ value; for example, the it may be used as the prefered
+ prefix value in taglib directives
+
+uri a uri uniquely identifying this taglib
+
+display-name the display-name element contains a short name that
+ is intended to be displayed by tools
+small-icon optional small-icon that can be used by tools
+
+large-icon optional large-icon that can be used by tools
+
+description a simple string describing the "use" of this taglib,
+ should be user discernable
+
+validator optional TagLibraryValidator information
+
+listener optional event listener specification
+
+
+-->
+
+<!ELEMENT taglib (tlib-version, jsp-version, short-name, uri?,
+ display-name?, small-icon?, large-icon?, description?,
+ validator?, listener*, tag+) >
+
+<!ATTLIST taglib id ID #IMPLIED
+ xmlns CDATA #FIXED
+ "http://java.sun.com/JSP/TagLibraryDescriptor"
+>
+
+<!--
+Describes this version (number) of the taglibrary (dewey decimal)
+
+#PCDATA ::= [0-9]*{ "."[0-9] }0..3
+-->
+
+<!ELEMENT tlib-version (#PCDATA) >
+
+<!--
+Describes the JSP version (number) this taglibrary requires in
+order to function (dewey decimal)
+
+The default is 1.2
+
+#PCDATA ::= [0-9]*{ "."[0-9] }0..3
+-->
+
+<!ELEMENT jsp-version (#PCDATA) >
+
+<!--
+Defines a short (default) short-name to be used for tags and
+variable names used/created by this tag library. Do not use
+white space, and do not start with digits or underscore.
+
+#PCDATA ::= NMTOKEN
+-->
+
+<!ELEMENT short-name (#PCDATA) >
+
+<!--
+Defines a public URI that uniquely identifies this version of
+the taglibrary. Leave it empty if it does not apply.
+-->
+
+<!ELEMENT uri (#PCDATA) >
+
+<!--
+Defines an arbitrary text string descirbing the tag library
+-->
+
+<!ELEMENT description (#PCDATA) >
+
+<!--
+
+Defines an optional validator that can be used to
+validate the conformance of a JSP page to using this tag library.
+-->
+
+<!ELEMENT validator (validator-class, init-param*, description?) >
+
+
+<!--
+
+Defines the TagLibraryValidator class that can be used to
+validate the conformance of a JSP page to using this tag library.
+-->
+
+<!ELEMENT validator-class (#PCDATA) >
+
+
+<!--
+
+The init-param element contains a name/value pair as an
+initialization param
+-->
+
+<!ELEMENT init-param (param-name, param-value, description?)>
+
+<!--
+
+The param-name element contains the name of a parameter.
+-->
+
+<!ELEMENT param-name (#PCDATA)>
+
+<!--
+
+The param-value element contains the value of a parameter.
+-->
+
+<!ELEMENT param-value (#PCDATA)>
+
+
+<!--
+
+Defines an optional event listener object to be instantiated and
+registered automatically.
+-->
+
+<!ELEMENT listener (listener-class) >
+
+<!--
+
+The listener-class element declares a class in the application that
+must be registered as a web application listener bean. See the
+Servlet 2.3 specification for details.
+-->
+
+<!ELEMENT listener-class (#PCDATA) >
+
+
+<!--
+The tag defines a unique tag in this tag library. It has one
+attribute, id.
+
+The tag element may have several subelements defining:
+
+name The unique action name
+
+tag-class The tag handler class implementing
+ javax.servlet.jsp.tagext.Tag
+
+tei-class An optional subclass of
+ javax.servlet.jsp.tagext.TagExtraInfo
+
+body-content The body content type
+
+display-name A short name that is intended to be displayed
+ by tools
+
+small-icon Optional small-icon that can be used by tools
+
+large-icon Optional large-icon that can be used by tools
+
+description Optional tag-specific information
+
+variable Optional scripting variable information
+
+attribute All attributes of this action
+
+example Optional informal description of an example of a
+ use of this tag
+
+-->
+
+<!ELEMENT tag (name, tag-class, tei-class?, body-content?, display-name?,
+ small-icon?, large-icon?, description?, variable*, attribute*,
+ example?) >
+
+<!--
+Defines the subclass of javax.serlvet.jsp.tagext.Tag that implements
+the request time semantics for this tag. (required)
+
+#PCDATA ::= fully qualified Java class name
+-->
+
+<!ELEMENT tag-class (#PCDATA) >
+
+<!--
+Defines the subclass of javax.servlet.jsp.tagext.TagExtraInfo for
+this tag. (optional)
+
+If this is not given, the class is not consulted at translation time.
+
+#PCDATA ::= fully qualified Java class name
+-->
+
+<!ELEMENT tei-class (#PCDATA) >
+
+<!--
+Provides a hint as to the content of the body of this tag. Primarily
+intended for use by page composition tools.
+
+There are currently three values specified:
+
+tagdependent The body of the tag is interpreted by the tag
+ implementation itself, and is most likely in a
+ different "langage", e.g embedded SQL statements.
+
+JSP The body of the tag contains nested JSP syntax
+
+empty The body must be empty
+
+The default (if not defined) is JSP
+
+#PCDATA ::= tagdependent | JSP | empty
+
+-->
+
+<!ELEMENT body-content (#PCDATA) >
+
+<!--
+
+The display-name element contains a short name that is intended
+to be displayed by tools.
+-->
+
+<!ELEMENT display-name (#PCDATA) >
+
+
+<!--
+
+The large-icon element contains the name of a file containing a large
+(32 x 32) icon image. The file name is a relative path within the
+tag library. The image must be either in the JPEG or GIF format, and
+the file name must end with the suffix ".jpg" or ".gif" respectively.
+The icon can be used by tools.
+-->
+
+<!ELEMENT large-icon (#PCDATA) >
+
+<!--
+
+The small-icon element contains the name of a file containing a large
+(32 x 32) icon image. The file name is a relative path within the
+tag library. The image must be either in the JPEG or GIF format, and
+the file name must end with the suffix ".jpg" or ".gif" respectively.
+The icon can be used by tools.
+-->
+
+<!ELEMENT small-icon (#PCDATA) >
+
+<!--
+
+The example element contains an informal description of an example
+of the use of a tag.
+-->
+
+<!ELEMENT example (#PCDATA) >
+
+<!--
+
+The variable tag provides information on the scripting variables
+defined by this tag. It is a (translation time) error for a tag
+that has one or more variable subelements to have a TagExtraInfo
+class that returns a non-null object.
+
+The subelements of variable are of the form:
+
+name-given The variable name as a constant
+
+name-from-attribute The name of an attribute whose (translation
+ time) value will give the name of the
+ variable. One of name-given or
+ name-from-attribute is required.
+
+variable-class Name of the class of the variable.
+ java.lang.String is default.
+
+declare Whether the variable is declared or not.
+ True is the default.
+
+scope The scope of the scripting varaible
+ defined. NESTED is default.
+
+description Optional description of this variable
+
+-->
+
+<!ELEMENT variable ( (name-given | name-from-attribute), variable-class?,
+ declare?, scope?, description?) >
+
+<!--
+
+The name for the scripting variable. One of name-given or
+name-from-attribute is required.
+-->
+
+<!ELEMENT name-given (#PCDATA) >
+
+<!--
+
+The name of an attribute whose (translation-time) value will give
+the name of the variable. One of name-given or name-from-attribute
+is required.
+-->
+
+<!ELEMENT name-from-attribute (#PCDATA) >
+
+<!--
+
+The optional name of the class for the scripting variable. The
+default is java.lang.String.
+-->
+
+<!ELEMENT variable-class (#PCDATA) >
+
+<!--
+
+Whether the scripting variable is to be defined or not. See
+TagExtraInfo for details. This element is optional and "true"
+is the default.
+-->
+
+<!ELEMENT declare (#PCDATA) >
+
+<!--
+
+The scope of the scripting variable. See TagExtraInfo for details.
+The element is optional and "NESTED" is the default. Other legal
+values are "AT_BEGIN" and "AT_END".
+-->
+
+<!ELEMENT scope (#PCDATA) >
+
+<!--
+
+The attribute tag defines an attribute for the nesting tag
+
+An attribute definition is composed of:
+
+- the attributes name (required)
+- if the attribute is required or optional (optional)
+- if the attributes value may be dynamically calculated at runtime
+ by a scriptlet expression (optional)
+- the type of the attributes value (optional)
+- an informal description of the meaning of the attribute (optional)
+
+-->
+
+
+<!--
+The attribute tag defines an attribute for the nesting tag
+
+An attribute definition is composed of:
+
+- the attributes name (required)
+
+- if the attribute is required or optional (optional)
+
+- if the attributes value may be dynamically calculated at runtime
+ by a scriptlet expression (optional)
+
+- the type of the attributes value (optional)
+
+- an informal description of the meaning of the attribute (optional)
+-->
+
+<!ELEMENT attribute (name, required? , rtexprvalue?, type?, description?) >
+
+<!--
+Defines the canonical name of a tag or attribute being defined
+
+#PCDATA ::= NMTOKEN
+-->
+
+<!ELEMENT name (#PCDATA) >
+
+<!--
+Defines if the nesting attribute is required or optional.
+
+#PCDATA ::= true | false | yes | no
+
+If not present then the default is "false", i.e the attribute
+is optional.
+-->
+
+<!ELEMENT required (#PCDATA) >
+
+<!--
+Defines if the nesting attribute can have scriptlet expressions as
+a value, i.e the value of the attribute may be dynamically calculated
+at request time, as opposed to a static value determined at translation
+time.
+
+#PCDATA ::= true | false | yes | no
+
+If not present then the default is "false", i.e the attribute
+has a static value
+-->
+
+<!ELEMENT rtexprvalue (#PCDATA) >
+
+
+<!--
+
+Defines the Java type of the attributes value. For static values
+(those determined at translation time) the type is always
+java.lang.String.
+-->
+
+<!ELEMENT type (#PCDATA) >
+
+
+<!-- ID attributes -->
+
+<!ATTLIST tlib-version id ID #IMPLIED>
+<!ATTLIST jsp-version id ID #IMPLIED>
+<!ATTLIST short-name id ID #IMPLIED>
+<!ATTLIST uri id ID #IMPLIED>
+<!ATTLIST description id ID #IMPLIED>
+<!ATTLIST example id ID #IMPLIED>
+<!ATTLIST tag id ID #IMPLIED>
+<!ATTLIST tag-class id ID #IMPLIED>
+<!ATTLIST tei-class id ID #IMPLIED>
+<!ATTLIST body-content id ID #IMPLIED>
+<!ATTLIST attribute id ID #IMPLIED>
+<!ATTLIST name id ID #IMPLIED>
+<!ATTLIST required id ID #IMPLIED>
+<!ATTLIST rtexprvalue id ID #IMPLIED>
+
+
+<!ATTLIST param-name id ID #IMPLIED>
+<!ATTLIST param-value id ID #IMPLIED>
+<!ATTLIST listener id ID #IMPLIED>
+<!ATTLIST listener-class id ID #IMPLIED>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/misc/web-jsptaglibrary_1_2.dtd
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld Sun Jun 11 16:58:03 2006
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd" [
+
+<!--
+===========================================================================
+My component entities. Working with entities allows a more clear structure
+of the tld file and the possibility to reuse attributes without having to
+rewrite them again.
+When adding a new component or creating/modifying attributes for an existing
+component, create or modify the corresponding 'entities' file in the entities
+folder.
+===========================================================================
+-->
+<!ENTITY ui_component_attributes SYSTEM "entities/ui_component_attributes.xml">
+<!ENTITY html_input_suggest_attributes SYSTEM "entities/say_hello_attributes.xml">
+]>
+
+<taglib>
+
+ <tlib-version>1.0</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>mycomp</short-name>
+ <uri>http://www.myorganitzation.org/mycomponents</uri>
+ <description>
+ Example components library. Actually it only contains a simple component
+ </description>
+
+ <!-- Add your component tags here -->
+
+ <!-- sayHello demo component-->
+ <tag>
+ <name>sayHello</name>
+ <tag-class>org.myorganization.component.sayhello.SayHelloTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>Simple component to greet a user.</description>
+
+ <!-- import the entities for that component here-->
+ &ui_component_attributes;
+ &html_input_suggest_attributes;
+ </tag>
+
+
+</taglib>
\ No newline at end of file
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/main/tld/mycomponents.tld
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java Sun Jun 11 16:58:03 2006
@@ -0,0 +1,66 @@
+package org.myorganization.component.sayhello;
+
+import junit.framework.Test;
+import org.apache.shale.test.base.AbstractJsfTestCase;
+import org.apache.shale.test.mock.MockRenderKitFactory;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+import java.io.IOException;
+import java.io.StringWriter;
+
+/**
+ * Class to test the behaviour of the SayHello renderer
+ */
+public class SayHelloRendererTest extends AbstractJsfTestCase
+{
+
+ public static Test suite()
+ {
+ return null;
+ }
+
+ private MockResponseWriter writer ;
+ private SayHello sayHello;
+
+ public SayHelloRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public void setUp()
+ {
+ super.setUp();
+
+ sayHello = new SayHello();
+ sayHello.setFirstName("John");
+ sayHello.setLastName("Smith");
+
+ writer = new MockResponseWriter(new StringWriter(), null, null);
+ facesContext.setResponseWriter(writer);
+ // TODO remove these two lines once shale-test goes alpha, see MYFACES-1155
+ facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
+ facesContext.getRenderKit().addRenderer(
+ sayHello.getFamily(),
+ sayHello.getRendererType(),
+ new SayHelloRenderer());
+ }
+
+ public void tearDown()
+ {
+ super.tearDown();
+ sayHello = null;
+ writer = null;
+ }
+
+ public void testEncodeEnd() throws IOException
+ {
+ sayHello.encodeEnd(facesContext);
+ facesContext.renderResponse();
+
+ String output = writer.getWriter().toString();
+
+ assertEquals("Hello John Smith!", output);
+ assertNotSame("Bye John Smith!", output);
+ }
+
+}
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/core/src/test/java/org/myorganization/component/sayhello/SayHelloRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- This is the project descriptor for the examples of my components -->
+
+<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>
+ <artifactId>${artifactId}-examples</artifactId>
+ <packaging>war</packaging>
+ <name>My Components Examples</name>
+
+ <parent>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}-project</artifactId>
+ <version>${version}</version>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.myorganization.mycomponents</groupId>
+ <artifactId>mycomponents</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+
+ <profiles>
+ <!-- By default the war examples use myfaces! :) -->
+ <profile>
+ <id>myfaces</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <version>1.1.4-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-impl</artifactId>
+ <version>1.1.4-SNAPSHOT</version>
+ <!-- Sandbox examples must only have runtime dependency to myfaces-impl
+ so that it will be automatically added to war. But there must not be
+ any compile dependency on impl so that is is always possible to use
+ other JSF implementations. -->
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <properties>
+ <jsf_implementation>MyFaces</jsf_implementation>
+ </properties>
+ </profile>
+
+ <!-- To use the examples using the Sun's JSF Reference Implementation -->
+ <profile>
+ <id>jsfri</id>
+ <dependencies>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.1_02</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.1_02</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.1.0</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>java.net</id>
+ <name>java.net Maven 1 Repository</name>
+ <url>https://maven-repository.dev.java.net/nonav/repository</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+
+ <properties>
+ <jsf_implementation>JSF-RI</jsf_implementation>
+ </properties>
+ </profile>
+
+ <!-- Profile to run jetty, so the tomcat jars are included in the bundle. They are not included by default -->
+ <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>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+
+ </build>
+
+</project>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java Sun Jun 11 16:58:03 2006
@@ -0,0 +1,66 @@
+package org.myorganization.component.example;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.faces.event.ActionEvent;
+
+/**
+ * Managed bean for the sayHello page example
+ */
+public class SayHelloBean
+{
+
+ private static final Log log = LogFactory.getLog(SayHelloBean.class);
+
+ private String firstName;
+ private String lastName;
+ private boolean renderGreeting;
+
+ public SayHelloBean()
+ {
+ this.renderGreeting = false;
+ }
+
+ public void sayIt(ActionEvent evt)
+ {
+ renderGreeting = true;
+
+ if (log.isInfoEnabled())
+ {
+ log.info("The name to say hello is '"+firstName+"' and the last name is '"+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;
+ }
+
+
+ public boolean isRenderGreeting()
+ {
+ return renderGreeting;
+ }
+
+ public void setRenderGreeting(boolean renderGreeting)
+ {
+ this.renderGreeting = renderGreeting;
+ }
+}
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/java/org/myorganization/component/example/SayHelloBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties Sun Jun 11 16:58:03 2006
@@ -0,0 +1,4 @@
+# Do not edit this file, as it will be completed automatically
+# by maven during the build process
+mycomponents_version=${pom.version}
+jsf_implementation=${jsf_implementation}
\ No newline at end of file
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/resources/org/myorganization/component/example/build.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,31 @@
+<?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_0.dtd">
+
+<!-- =========== FULL CONFIGURATION FILE ================================== -->
+
+<!-- my components examples -->
+
+<faces-config>
+
+
+ <!-- Managed Beans for sayhello.jsp -->
+ <managed-bean>
+ <managed-bean-name>sayHelloBean</managed-bean-name>
+ <managed-bean-class>org.myorganization.component.example.SayHelloBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <!-- NAVIGATION RULES -->
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>go_home</from-outcome>
+ <to-view-id>/home.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+
+</faces-config>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/examples-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml Sun Jun 11 16:58:03 2006
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>debug 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>server</param-value>
+ </context-param>
+
+ <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>*.jsf</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp Sun Jun 11 16:58:03 2006
@@ -0,0 +1,38 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://www.myorganitzation.org/mycomponents" prefix="mycomp"%>
+
+<html>
+
+<head>
+ <title>My JSF Components Examples</title>
+</head>
+
+<body>
+
+<f:view>
+ <h:form>
+
+ <f:loadBundle basename="org.myorganization.component.example.build" var="buildInfo"/>
+
+ <h:panelGrid columns="2">
+ <h:outputText style="font-weight: bold" value="My JSF Components Library"/>
+ <h:outputText value=" (Version #{buildInfo['mycomponents_version']}, using #{buildInfo ['jsf_implementation']})"/>
+ </h:panelGrid>
+
+ <h:panelGrid>
+
+ <h:outputText value="My component examples" />
+ <h:panelGrid style="padding-left:25px">
+ <h:outputLink value="sayhello.jsf">
+ <f:verbatim>sayHello - demo component</f:verbatim>
+ </h:outputLink>
+ </h:panelGrid>
+
+ </h:panelGrid>
+
+ </h:form>
+</f:view>
+</body>
+</html>
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/home.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp?rev=413548&view=auto
==============================================================================
--- myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp (added)
+++ myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp Sun Jun 11 16:58:03 2006
@@ -0,0 +1 @@
+<jsp:forward page="home.jsf"/>
\ No newline at end of file
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/maven/trunk/jsfcomponents-archetype/src/main/resources/archetype-resources/examples/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL