[gatein-commits] gatein SVN: r813 - in portal/trunk/examples: portlets and 45 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 26 07:37:38 EST 2009


Author: thomas.heute at jboss.com
Date: 2009-11-26 07:37:35 -0500 (Thu, 26 Nov 2009)
New Revision: 813

Added:
   portal/trunk/examples/portlets/
   portal/trunk/examples/portlets/jsfhellouser/
   portal/trunk/examples/portlets/jsfhellouser/.classpath
   portal/trunk/examples/portlets/jsfhellouser/.project
   portal/trunk/examples/portlets/jsfhellouser/.settings/
   portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.jdt.core.prefs
   portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.component
   portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.project.facet.core.xml
   portal/trunk/examples/portlets/jsfhellouser/.settings/org.maven.ide.eclipse.prefs
   portal/trunk/examples/portlets/jsfhellouser/pom.xml
   portal/trunk/examples/portlets/jsfhellouser/src/
   portal/trunk/examples/portlets/jsfhellouser/src/main/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/samples/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/samples/jsf/
   portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/samples/jsf/UserBean.java
   portal/trunk/examples/portlets/jsfhellouser/src/main/resources/
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/META-INF/
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/META-INF/MANIFEST.MF
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/faces-config.xml
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/lib/
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/portlet.xml
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/web.xml
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/edit.jsp
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/hello.jsp
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/help.jsp
   portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/welcome.jsp
   portal/trunk/examples/portlets/jsfhellouser/src/test/
   portal/trunk/examples/portlets/jsfhellouser/src/test/java/
   portal/trunk/examples/portlets/jsfhellouser/src/test/resources/
   portal/trunk/examples/portlets/jsphellouser/
   portal/trunk/examples/portlets/jsphellouser/.classpath
   portal/trunk/examples/portlets/jsphellouser/.project
   portal/trunk/examples/portlets/jsphellouser/.settings/
   portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.jdt.core.prefs
   portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.component
   portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.project.facet.core.xml
   portal/trunk/examples/portlets/jsphellouser/.settings/org.maven.ide.eclipse.prefs
   portal/trunk/examples/portlets/jsphellouser/pom.xml
   portal/trunk/examples/portlets/jsphellouser/src/
   portal/trunk/examples/portlets/jsphellouser/src/main/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/org/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/
   portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
   portal/trunk/examples/portlets/jsphellouser/src/main/resources/
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/META-INF/
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/META-INF/MANIFEST.MF
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/lib/
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/portlet.xml
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/web.xml
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/edit.jsp
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/help.jsp
   portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
   portal/trunk/examples/portlets/jsphellouser/src/test/
   portal/trunk/examples/portlets/jsphellouser/src/test/java/
   portal/trunk/examples/portlets/jsphellouser/src/test/resources/
   portal/trunk/examples/portlets/pom.xml
   portal/trunk/examples/portlets/simplesthelloworld/
   portal/trunk/examples/portlets/simplesthelloworld/.classpath
   portal/trunk/examples/portlets/simplesthelloworld/.project
   portal/trunk/examples/portlets/simplesthelloworld/.settings/
   portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.jdt.core.prefs
   portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.component
   portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.project.facet.core.xml
   portal/trunk/examples/portlets/simplesthelloworld/.settings/org.maven.ide.eclipse.prefs
   portal/trunk/examples/portlets/simplesthelloworld/pom.xml
   portal/trunk/examples/portlets/simplesthelloworld/src/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/portlet/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/portlet/samples/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
   portal/trunk/examples/portlets/simplesthelloworld/src/main/resources/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/META-INF/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/META-INF/MANIFEST.MF
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/lib/
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/portlet.xml
   portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/web.xml
   portal/trunk/examples/portlets/simplesthelloworld/src/test/
   portal/trunk/examples/portlets/simplesthelloworld/src/test/java/
   portal/trunk/examples/portlets/simplesthelloworld/src/test/resources/
Modified:
   portal/trunk/examples/pom.xml
Log:
Adding portlet examples

Modified: portal/trunk/examples/pom.xml
===================================================================
--- portal/trunk/examples/pom.xml	2009-11-26 12:33:12 UTC (rev 812)
+++ portal/trunk/examples/pom.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -37,6 +37,7 @@
    <modules>
       <module>extension</module>
       <module>portal</module>
+      <module>portlets</module>
    </modules>
 
 </project>

Added: portal/trunk/examples/portlets/jsfhellouser/.classpath
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/.classpath	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/.classpath	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: portal/trunk/examples/portlets/jsfhellouser/.project
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/.project	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/.project	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>JSFHelloUser</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+	</natures>
+</projectDescription>

Added: portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.jdt.core.prefs	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,7 @@
+#Tue Jul 08 18:28:17 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3

Added: portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.component
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.component	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.component	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="HelloWorld">
+<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+<wb-resource deploy-path="/" source-path="/src/test/java"/>
+<wb-resource deploy-path="/" source-path="/src/test/resources"/>
+<property name="context-root" value="HelloWorld"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>

Added: portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.project.facet.core.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/.settings/org.eclipse.wst.common.project.facet.core.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <installed facet="jst.java" version="1.4"/>
+  <installed facet="jst.web" version="2.3"/>
+</faceted-project>

Added: portal/trunk/examples/portlets/jsfhellouser/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/.settings/org.maven.ide.eclipse.prefs	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/.settings/org.maven.ide.eclipse.prefs	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,8 @@
+#Tue Jul 08 18:28:14 CEST 2008
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+version=1

Added: portal/trunk/examples/portlets/jsfhellouser/pom.xml
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/pom.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/pom.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,70 @@
+<?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>
+
+   <!--
+      the parent isn't required, you can drop it if you add a groupId
+      and version
+   -->
+   <parent>
+      <groupId>org.gatein.portal.examples.portlets</groupId>
+      <artifactId>parent</artifactId>
+      <version>3.0.0-Beta03-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>gatein-jsf-hellouser</artifactId>
+   <packaging>war</packaging>
+   <name>GateIn Portal Examples - JSF Hello User Portlet</name>
+   <description />
+
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+               <source>1.5</source>
+               <target>1.5</target>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+
+   <dependencies>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>portlet-api</artifactId>
+         <version>2.0</version>
+         <scope>provided</scope>
+      </dependency>
+
+      <dependency>
+         <groupId>org.jboss.portletbridge</groupId>
+         <artifactId>portletbridge-api</artifactId>
+         <version>2.0.0.BETA</version>
+      </dependency>
+
+      <dependency>
+         <groupId>org.jboss.portletbridge</groupId>
+         <artifactId>portletbridge-impl</artifactId>
+         <version>2.0.0.BETA</version>
+      </dependency>
+
+   </dependencies>
+
+   <repositories>
+      <repository>
+         <id>JBoss repository</id>
+         <url>http://repository.jboss.com/maven2</url>
+         <releases>
+            <enabled>true</enabled>
+         </releases>
+         <snapshots>
+            <enabled>false</enabled>
+         </snapshots>
+      </repository>
+
+   </repositories>
+
+</project>

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/samples/jsf/UserBean.java
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/samples/jsf/UserBean.java	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/java/org/jboss/portal/portlet/samples/jsf/UserBean.java	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.jboss.portal.portlet.samples.jsf;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class UserBean
+{
+
+   private String userName;
+
+   public String getUserName()
+   {
+      return userName;
+   }
+
+   public void setUserName(String userName)
+   {
+      this.userName = userName;
+   }
+
+}
+

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/META-INF/MANIFEST.MF	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/META-INF/MANIFEST.MF	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/faces-config.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/faces-config.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,33 @@
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
+              version="1.2">
+
+    <application>
+      <view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler>
+      <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>
+   </application>
+   
+   <managed-bean>
+      <managed-bean-name>user</managed-bean-name>
+      <managed-bean-class>
+         org.jboss.portal.portlet.samples.jsf.UserBean
+      </managed-bean-class>
+      <managed-bean-scope>request</managed-bean-scope>
+   </managed-bean>
+
+   <navigation-rule>
+      <navigation-case>
+         <from-outcome>sayHello</from-outcome>
+         <to-view-id>/jsf/hello.jsp</to-view-id>
+      </navigation-case>
+   </navigation-rule>
+
+   <navigation-rule>
+      <navigation-case>
+         <from-outcome>back</from-outcome>
+         <to-view-id>/jsf/welcome.jsp</to-view-id>
+      </navigation-case>
+   </navigation-rule>
+   
+</faces-config>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/portlet.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/portlet.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+version="2.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
+   http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+   <portlet>
+      <portlet-name>JSFHelloUserPortlet</portlet-name>
+      <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>view</portlet-mode>
+         <portlet-mode>edit</portlet-mode>
+         <portlet-mode>help</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>JSF Hello User Portlet</title>
+      </portlet-info>
+      
+      <init-param>
+         <name>javax.portlet.faces.defaultViewId.view</name>
+         <value>/jsf/welcome.jsp</value>
+      </init-param>
+
+      <init-param>
+         <name>javax.portlet.faces.defaultViewId.edit</name>
+         <value>/jsf/edit.jsp</value>
+      </init-param>
+
+      <init-param>
+         <name>javax.portlet.faces.defaultViewId.help</name>
+         <value>/jsf/help.jsp</value>
+      </init-param>
+
+   </portlet>
+</portlet-app>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/web.xml
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/WEB-INF/web.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<web-app 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.5">
+
+   <context-param>
+      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+      <param-value>.jsp</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.portlet.faces.renderPolicy</param-name>
+      <param-value>NEVER_DELEGATE</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>/faces/*</url-pattern>
+   </servlet-mapping>
+
+   <servlet-mapping>
+      <servlet-name>Faces Servlet</servlet-name>
+      <url-pattern>*.resource</url-pattern>
+   </servlet-mapping>
+
+
+</web-app>

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/edit.jsp
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/edit.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/edit.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,7 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<f:view>
+<div class="portlet-section-header"><h:outputText value="Edit mode"/></div>
+<div class="portlet-section-body">This is the edit mode, a convenient place to let the user change his portlet preferences.</div>
+</f:view>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/hello.jsp
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/hello.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/hello.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,14 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<f:view>
+<portlet:defineObjects/>
+
+<div class="portlet-section-header">Remember we love  you: <h:outputText value="#{user.userName}"/></div>
+
+<br/>
+<h:form>
+   <h:commandLink action="back">
+      <h:outputText value="Ask Me Again"/>
+   </h:commandLink>
+</h:form>
+</f:view>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/help.jsp
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/help.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/help.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,6 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<f:view>
+<div class="portlet-section-header">Help mode</div>
+<div class="portlet-section-body">This is the help mode, a convenient place to give the user some help information.</div>
+</f:view>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/welcome.jsp
===================================================================
--- portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/welcome.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsfhellouser/src/main/webapp/jsf/welcome.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<f:view>
+
+<div class="portlet-section-header">Welcome !</div>
+
+<br/>
+
+<div class="portlet-font">Welcome on the JSP Hello User portlet,
+my name is JBoss Portal. What's yours ?</div>
+
+<br/>
+
+<h:form>
+   <h:inputText value="#{user.userName}"/>
+   <h:commandButton  action="sayHello" value="Say Hello"/>
+</h:form>
+
+</f:view>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsphellouser/.classpath
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/.classpath	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/.classpath	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: portal/trunk/examples/portlets/jsphellouser/.project
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/.project	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/.project	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>JSPHelloUser</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+	</natures>
+</projectDescription>

Added: portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.jdt.core.prefs	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,7 @@
+#Tue Jul 08 18:28:17 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3

Added: portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.component
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.component	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.component	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="HelloWorld">
+<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+<wb-resource deploy-path="/" source-path="/src/test/java"/>
+<wb-resource deploy-path="/" source-path="/src/test/resources"/>
+<property name="context-root" value="HelloWorld"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>

Added: portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.project.facet.core.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/.settings/org.eclipse.wst.common.project.facet.core.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <installed facet="jst.java" version="1.4"/>
+  <installed facet="jst.web" version="2.3"/>
+</faceted-project>

Added: portal/trunk/examples/portlets/jsphellouser/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/.settings/org.maven.ide.eclipse.prefs	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/.settings/org.maven.ide.eclipse.prefs	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,8 @@
+#Tue Jul 08 18:28:14 CEST 2008
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+version=1

Added: portal/trunk/examples/portlets/jsphellouser/pom.xml
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/pom.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/pom.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,41 @@
+<?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>
+
+   <!--
+      the parent isn't required, you can drop it if you add a groupId
+      and version
+   -->
+   <parent>
+      <groupId>org.gatein.portal.examples.portlets</groupId>
+      <artifactId>parent</artifactId>
+      <version>3.0.0-Beta03-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>gatein-jsp-hellouser</artifactId>
+   <packaging>war</packaging>
+   <name>GateIn Portal Examples - JSP Hello User Portlet</name>
+
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+               <source>1.5</source>
+               <target>1.5</target>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+
+   <dependencies>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>portlet-api</artifactId>
+         <version>2.0</version>
+         <scope>provided</scope>
+      </dependency>
+   </dependencies>
+</project>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,78 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.jboss.portal.portlet.samples;
+
+import java.io.IOException;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.UnavailableException;
+
+public class JSPHelloUserPortlet extends GenericPortlet
+{
+   
+   public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+   {
+      String sYourName = (String) request.getParameter("yourname");
+      if (sYourName != null)
+      {
+         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+         prd.include(request, response);
+      }
+      else
+      {
+         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+         prd.include(request, response);
+      }
+   }
+
+   protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException,
+         UnavailableException
+   {
+      rResponse.setContentType("text/html");
+      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/help.jsp");
+      prd.include(rRequest, rResponse);
+   }
+
+   protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException,
+         UnavailableException
+   {
+      rResponse.setContentType("text/html");
+      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/edit.jsp");
+      prd.include(rRequest, rResponse);
+   }
+
+   public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+         UnavailableException
+   {
+      String sYourname = (String) aRequest.getParameter("yourname");
+      aResponse.setRenderParameter("yourname", sYourname);
+   }
+
+
+}

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/META-INF/MANIFEST.MF	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/META-INF/MANIFEST.MF	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/portlet.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/portlet.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+version="2.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
+   http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+   <portlet>
+      <portlet-name>JSPHelloUserPortlet</portlet-name>
+      <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>view</portlet-mode>
+         <portlet-mode>edit</portlet-mode>
+         <portlet-mode>help</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>JSP Hello User Portlet</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/web.xml
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/WEB-INF/web.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<web-app 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.5">
+</web-app>

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/edit.jsp
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/edit.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/edit.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,2 @@
+<div class="portlet-section-header">Edit mode</div>
+<div class="portlet-section-body">This is the edit mode, a convenient place to let the user change his portlet preferences.</div>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,9 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+<portlet:defineObjects/>
+
+<div class="portlet-section-header">Remember we love  you: <%= renderRequest.getParameter("yourname") %></div>
+
+<portlet:renderURL var="myRenderURL"/>
+<br/>
+<a href="<%= myRenderURL %>">Ask me again</a>

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/help.jsp
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/help.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/help.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,2 @@
+<div class="portlet-section-header">Help mode</div>
+<div class="portlet-section-body">This is the help mode, a convenient place to give the user some help information.</div>
\ No newline at end of file

Added: portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
===================================================================
--- portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp	                        (rev 0)
+++ portal/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,35 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+<div class="portlet-section-header">Welcome !</div>
+
+<br/>
+
+<div class="portlet-font">Welcome on the JSP Hello User portlet,
+my name is JBoss Portal. What's yours ?</div>
+
+<br/>
+
+<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
+<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
+
+<br/>
+
+<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
+Please check the source code to see the difference with Method 1.
+<portlet:renderURL var="myRenderURL">
+    <portlet:param name="yourname" value='John Doe'/>
+</portlet:renderURL>
+<br/>
+<a href="<%= myRenderURL %>">John Doe</a></div>
+
+<br/>
+
+<div class="portlet-font">Method 3: We use a form:<br/>
+
+<portlet:actionURL var="myActionURL"/>
+<form action="<%= myActionURL %>" method="POST">
+         <span class="portlet-form-field-label">Name:</span>
+         <input class="portlet-form-input-field" type="text" name="yourname"/>
+         <input class="portlet-form-button" type="Submit"/>
+</form>
+</div>

Added: portal/trunk/examples/portlets/pom.xml
===================================================================
--- portal/trunk/examples/portlets/pom.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/pom.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,23 @@
+<?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>
+
+   <parent>
+      <groupId>org.exoplatform.portal</groupId>
+      <artifactId>exo.portal.parent</artifactId>
+      <version>3.0.0-Beta03-SNAPSHOT</version>
+   </parent>
+
+   <groupId>org.gatein.portal.examples.portlets</groupId>
+   <artifactId>parent</artifactId>
+   <packaging>pom</packaging>
+   <name>GateIn Portal Examples - Portlets</name>
+
+   <modules>
+      <module>jsfhellouser</module>
+      <module>jsphellouser</module>
+      <module>simplesthelloworld</module>
+   </modules>
+
+</project>

Added: portal/trunk/examples/portlets/simplesthelloworld/.classpath
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/.classpath	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/.classpath	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: portal/trunk/examples/portlets/simplesthelloworld/.project
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/.project	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/.project	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>SimplestHelloWorld</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+	</natures>
+</projectDescription>

Added: portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.jdt.core.prefs	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,7 @@
+#Tue Jul 08 18:28:17 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3

Added: portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.component
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.component	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.component	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="SimplestHelloWorldPortlet">
+<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+<wb-resource deploy-path="/" source-path="/src/test/java"/>
+<wb-resource deploy-path="/" source-path="/src/test/resources"/>
+<property name="java-output-path" value="build/classes"/>
+<property name="context-root" value="SimplestHelloWorldPortlet"/>
+</wb-module>
+</project-modules>

Added: portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.project.facet.core.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/.settings/org.eclipse.wst.common.project.facet.core.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <installed facet="jst.java" version="1.4"/>
+  <installed facet="jst.web" version="2.3"/>
+</faceted-project>

Added: portal/trunk/examples/portlets/simplesthelloworld/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/.settings/org.maven.ide.eclipse.prefs	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/.settings/org.maven.ide.eclipse.prefs	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,8 @@
+#Tue Jul 08 18:28:14 CEST 2008
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+version=1

Added: portal/trunk/examples/portlets/simplesthelloworld/pom.xml
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/pom.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/pom.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,42 @@
+<?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>
+
+   <!--
+      the parent isn't required, you can drop it if you add a groupId
+      and version
+   -->
+   <parent>
+      <groupId>org.gatein.portal.examples.portlets</groupId>
+      <artifactId>parent</artifactId>
+      <version>3.0.0-Beta03-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>gatein-simplest-helloworld</artifactId>
+   <packaging>war</packaging>
+   <name>GateIn Portal Examples - Simplest Hello World Portlet</name>
+   <description />
+
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+               <source>1.5</source>
+               <target>1.5</target>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+
+   <dependencies>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>portlet-api</artifactId>
+         <version>2.0</version>
+         <scope>provided</scope>
+      </dependency>
+   </dependencies>
+</project>
\ No newline at end of file

Added: portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,41 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.jboss.portal.portlet.samples;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.portlet.GenericPortlet;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+
+public class SimplestHelloWorldPortlet extends GenericPortlet
+{
+   public void doView(RenderRequest request, RenderResponse response) throws IOException
+   {
+      PrintWriter writer = response.getWriter();
+      writer.write("Hello World !");
+      writer.close();
+   }
+}
+

Added: portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/META-INF/MANIFEST.MF	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/META-INF/MANIFEST.MF	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/portlet.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/portlet.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+version="2.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
+   http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+   <portlet>
+      <portlet-name>SimplestHelloWorldPortlet</portlet-name>
+      <portlet-class>
+         org.jboss.portal.portlet.samples.SimplestHelloWorldPortlet
+      </portlet-class>
+      <supports>
+        <mime-type>text/html</mime-type>
+      </supports>
+      <portlet-info>
+          <title>Simplest Hello World Portlet</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>
\ No newline at end of file

Added: portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/web.xml
===================================================================
--- portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ portal/trunk/examples/portlets/simplesthelloworld/src/main/webapp/WEB-INF/web.xml	2009-11-26 12:37:35 UTC (rev 813)
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<web-app 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.5">
+</web-app>



More information about the gatein-commits mailing list