You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mf...@apache.org on 2010/07/01 00:43:01 UTC

svn commit: r959468 - in /myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination: ./ src/ src/main/ src/main/java/ src/main/java/helloDuke/ src/main/resources/ src/main/resources/META-INF/ src/main/webapp/ src/main/webapp/WEB-INF/ src/m...

Author: mfreedman
Date: Wed Jun 30 22:43:00 2010
New Revision: 959468

URL: http://svn.apache.org/viewvc?rev=959468&view=rev
Log:
Added HelloDukeCoordination example.

Added:
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/pom.xml
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/HelloDukeActionHandler.java
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/PortletEventHandler.java
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/UserNameBean.java
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/META-INF/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/META-INF/NOTICE
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/portlet.xml
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/web.xml
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/error.jsp
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/greeting.jsp
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/index.html
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/response.jsp
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/wave.med.gif   (with props)
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/yourName.jsp
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/jettypluto/
    myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/jettypluto/index.jsp

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/pom.xml?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/pom.xml (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/pom.xml Wed Jun 30 22:43:00 2010
@@ -0,0 +1,274 @@
+<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>
+  <name>MyFaces Portlet Bridge HelloDuke Coordination Demo</name>
+  <artifactId>portlet-bridge-helloDukeCoordination</artifactId>
+  <packaging>war</packaging>
+
+  <parent>
+    <groupId>org.apache.myfaces.portlet-bridge</groupId>
+    <artifactId>portlet-bridge-examples</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+  </parent>
+  
+  <dependencies>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+    </dependency>
+    
+    <dependency>
+      <groupId>javax.portlet</groupId>
+      <artifactId>portlet-api</artifactId>
+    </dependency>
+        
+    <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>portlet-bridge-api</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>portlet-bridge-impl</artifactId>
+    </dependency>
+
+  </dependencies>
+    
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-jdev-plugin</artifactId>
+        <groupId>org.apache.myfaces.trinidadbuild</groupId>
+        <configuration>
+          <libraries>
+            <library>JSP Runtime</library>
+          </libraries>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <profiles>
+    <profile>
+      <id>pluto-assemble</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+            <configuration>
+              <warName>${pom.artifactId}-pluto-${pom.version}</warName>
+              <outputDirectory>${project.build.directory}/../../assembly/target/webapp</outputDirectory>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    
+    <!-- sets up the webapp for deployment to pluto 2.0  "mvn clean install -Ppluto" -->    
+    <profile>
+      <id>pluto</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+            <configuration>
+              <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+            </configuration>
+          </plugin>
+          
+          <plugin>
+            <groupId>org.apache.portals.pluto</groupId>
+            <artifactId>maven-pluto-plugin</artifactId>
+            <version>2.0.0</version>
+            <executions>  
+              <execution>  
+                <phase>generate-resources</phase>  
+                <goals>  
+                  <goal>assemble</goal>  
+                </goals>  
+              </execution>  
+            </executions>  
+          </plugin>  
+        </plugins>
+      </build>
+    </profile>
+
+<!-- sets up the webapp for deployment to pluto 2.0 (this is included as its the command in 1.0 for building to 2 - i.e. backwards compat) "mvn clean install -Ppluto2" -->    
+    <profile>
+      <id>pluto2</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+            <configuration>
+              <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+            </configuration>
+          </plugin>
+          
+          <plugin>
+            <groupId>org.apache.portals.pluto</groupId>
+            <artifactId>maven-pluto-plugin</artifactId>
+            <version>2.0.0</version>
+            <executions>  
+              <execution>  
+                <phase>generate-resources</phase>  
+                <goals>  
+                  <goal>assemble</goal>  
+                </goals>  
+              </execution>  
+            </executions>  
+          </plugin>  
+        </plugins>
+      </build>
+    </profile>
+    
+    <!-- To run jetty, issue "mvn clean -PjettyConfig jetty:run" -->
+    <profile>
+      <id>jettyConfig</id>
+		<dependencies>
+        <dependency>
+          <groupId>com.bekk.boss</groupId>
+          <artifactId>maven-jetty-pluto-embedded</artifactId>
+        </dependency>
+		</dependencies>
+		<build>      
+      <plugins>
+        <plugin>
+          <groupId>org.mortbay.jetty</groupId>
+          <artifactId>maven-jetty-plugin</artifactId>
+          <configuration>
+            <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+            <webDefaultXml>src/main/webapp/WEB-INF/jetty-pluto-web-default.xml</webDefaultXml>
+            <systemProperties>
+              <systemProperty>
+                <name>org.apache.pluto.embedded.portletIds</name>
+                <value>portlet-bridge-helloDukeCoordination</value>
+              </systemProperty>
+            </systemProperties>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.pluto</groupId>
+          <artifactId>maven-pluto-plugin</artifactId> 
+        </plugin>  
+      </plugins>
+      </build>  
+    </profile>  
+  
+  <!-- By default the war examples uses mojarra and packages for a nonjavaee environment (includes the Faces jars)! :) -->
+
+    <!-- If you are running in a nonJavaEE environment (i.e. Faces isn't already deployed) and hence need to have Mojarra packaged in the war: -->
+    <profile>
+      <id>mojarra-nonjavaee</id>
+      <activation>
+        <property>
+          <name>!jsf</name>
+        </property>
+      </activation>
+
+      <dependencies>
+        <dependency>
+          <groupId>javax.faces</groupId>
+          <artifactId>jsf-api</artifactId>
+	    <version>${mojarra.version}</version>
+          <scope>compile</scope>
+        </dependency>
+        <dependency>
+          <groupId>javax.faces</groupId>
+          <artifactId>jsf-impl</artifactId>
+          <version>${mojarra.version}</version>
+          <scope>runtime</scope>
+        </dependency>
+      </dependencies>
+      <properties>
+        <jsf_implementation>JSF-RI</jsf_implementation>
+      </properties>
+    </profile>
+
+    <!-- If you are running in a JavaEE environment (i.e. Faces is already deployed) and hence don't need to have Mojarra packaged in the war: -->
+    <!--    mvn install -Djsf=mojarra-javaee -->
+    <profile>
+      <id>mojarra-javaee</id>
+      <activation>
+        <property>
+          <name>jsf</name>
+          <value>mojarra-javaee</value>
+        </property>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>javax.faces</groupId>
+          <artifactId>jsf-api</artifactId>
+        </dependency>
+      </dependencies>
+      <properties>
+        <jsf_implementation>JSF-RI</jsf_implementation>
+      </properties>
+    </profile>
+
+
+    <!-- To use this examples using the MyFacesImplementation: mvn clean install -Djsf=myfaces-javaee -->
+    <!-- Note: currently carstore doesn't work properly in a myfaces environment -->
+    <profile>
+      <id>myfaces-javaee</id>
+      <activation>
+        <property>
+          <name>jsf</name>
+          <value>myfaces-javaee</value>
+        </property>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>org.apache.myfaces.core</groupId>
+          <artifactId>myfaces-api</artifactId>
+	    <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+          <groupId>org.apache.myfaces.core</groupId>
+          <artifactId>myfaces-impl</artifactId>
+          <scope>provided</scope>
+        </dependency>
+      </dependencies>
+    </profile>
+   
+
+
+    <!-- If you are running in a nonJavaEE environment (i.e. Faces isn't already deployed) and hence need to have MyFaces packaged in the war: -->
+    <!--    mvn install -Djsf=myfaces-nonjavaee -->
+    <!-- Note: currently carstore doesn't work properly in a myfaces environment -->
+    <profile>
+      <id>myfaces-nonjavaee</id>
+      <activation>
+        <property>
+          <name>jsf</name>
+          <value>myfaces-nonjavaee</value>
+        </property>
+      </activation>
+
+      <dependencies>
+        <dependency>
+          <groupId>org.apache.myfaces.core</groupId>
+          <artifactId>myfaces-api</artifactId>
+	    <version>${myfaces.version}</version>
+          <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+          <groupId>org.apache.myfaces.core</groupId>
+          <artifactId>myfaces-impl</artifactId>
+          <version>${myfaces.version}</version>
+          <scope>runtime</scope>
+        </dependency>
+      </dependencies>
+    </profile>
+  </profiles>
+</project>
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/HelloDukeActionHandler.java
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/HelloDukeActionHandler.java?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/HelloDukeActionHandler.java (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/HelloDukeActionHandler.java Wed Jun 30 22:43:00 2010
@@ -0,0 +1,102 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+package helloDuke;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.el.ELResolver;
+
+import javax.faces.event.ActionListener;
+
+import javax.portlet.Event;
+import javax.portlet.StateAwareResponse;
+import javax.portlet.faces.BridgeEventHandler;
+import javax.portlet.faces.event.EventNavigationResult;
+
+import javax.xml.namespace.QName;
+
+/**
+ * <p>This is the main bean for the application.  It maintains a
+ * <code>Map</code> of {@link CarBean} instances, keyed by model name,
+ * and a <code>Map</code> of {@link CarCustomizer} instances, keyed by
+ * package name.  The <code>CarBean</code> instances in the model
+ * <code>Map</code> are accessed from several pages, as described
+ * below.</p>
+ * <p/>
+ * <p>Several pages in the application use this bean as the target of
+ * method reference and value reference expressions.</p>
+ * <p/>
+ * <ul>
+ * <p/>
+ * <li><p>The "chooseLocale" page uses <code>actionListener</code>
+ * attributes to point to the {@link #chooseLocaleFromMap} and {@link
+ * #chooseLocaleFromLink} methods.</p></li>
+ * <p/>
+ * <li><p>The "storeFront" page uses value binding expressions to pull
+ * information about four of the known car models in the store.</p></li>
+ * <p/>
+ * <li><p>The "carDetail" page uses value binding expressions to pull
+ * information about the currently chosen model.  It also uses the
+ * <code>action</code> attribute to convey the user's package
+ * choices.</p></li>
+ * <p/>
+ * <li><p>The "confirmChoices" page uses value binding expressions to
+ * pull the user's choices from the currently chosen model.</p></li>
+ * <p/>
+ * </ul>
+ */
+
+public class HelloDukeActionHandler implements ActionListener {
+
+    private static final Logger LOGGER = Logger.getLogger("helloDuke");
+
+
+    public HelloDukeActionHandler() {
+
+    }
+    
+    //
+    // Portlet Event Handler
+    //
+    public void processAction(ActionEvent event)
+    {  
+      FacesContext context = FacesContext.getCurrentInstance();
+      
+      ELResolver facesResolver = context.getELContext().getELResolver();
+      String userName = ((UserNameBean) facesResolver.getValue(context.getELContext(), null, "userNameBean")).getUserName();
+
+      // Raise a portlet event indicating the userName has changed
+      StateAwareResponse response = (StateAwareResponse) context.getExternalContext().getResponse();
+      
+      response.setRenderParameter("userName", userName);
+      
+      response.setEvent(new QName("http://myfaces.apache.org/portlet-bridge/event_ns", "myfaces.apache.org.helloDuke.userNameChanged"), userName);
+    }
+
+
+}

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/PortletEventHandler.java
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/PortletEventHandler.java?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/PortletEventHandler.java (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/PortletEventHandler.java Wed Jun 30 22:43:00 2010
@@ -0,0 +1,96 @@
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+package helloDuke;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.el.ELResolver;
+
+import javax.portlet.Event;
+import javax.portlet.faces.BridgeEventHandler;
+import javax.portlet.faces.event.EventNavigationResult;
+
+/**
+ * <p>This is the main bean for the application.  It maintains a
+ * <code>Map</code> of {@link CarBean} instances, keyed by model name,
+ * and a <code>Map</code> of {@link CarCustomizer} instances, keyed by
+ * package name.  The <code>CarBean</code> instances in the model
+ * <code>Map</code> are accessed from several pages, as described
+ * below.</p>
+ * <p/>
+ * <p>Several pages in the application use this bean as the target of
+ * method reference and value reference expressions.</p>
+ * <p/>
+ * <ul>
+ * <p/>
+ * <li><p>The "chooseLocale" page uses <code>actionListener</code>
+ * attributes to point to the {@link #chooseLocaleFromMap} and {@link
+ * #chooseLocaleFromLink} methods.</p></li>
+ * <p/>
+ * <li><p>The "storeFront" page uses value binding expressions to pull
+ * information about four of the known car models in the store.</p></li>
+ * <p/>
+ * <li><p>The "carDetail" page uses value binding expressions to pull
+ * information about the currently chosen model.  It also uses the
+ * <code>action</code> attribute to convey the user's package
+ * choices.</p></li>
+ * <p/>
+ * <li><p>The "confirmChoices" page uses value binding expressions to
+ * pull the user's choices from the currently chosen model.</p></li>
+ * <p/>
+ * </ul>
+ */
+
+public class PortletEventHandler implements BridgeEventHandler {
+
+    private static final Logger LOGGER = Logger.getLogger("helloDuke");
+
+
+    public PortletEventHandler() {
+
+    }
+    
+    //
+    // Portlet Event Handler
+    //
+    public EventNavigationResult handleEvent(FacesContext context, Event event)
+    {     
+      ELResolver facesResolver = context.getELContext().getELResolver();
+      UserNameBean userNameBean = (UserNameBean) facesResolver.getValue(context.getELContext(), null, "userNameBean");
+
+      userNameBean.setUserName((String)event.getValue());
+      
+      // set Navigation result -- by not returning null we allow the result to be mapped by the
+      // navigationHandler and hence to have the event not only update state but also navigate.
+      // In this case however the current faces-config doesn't contain a navigation rule for
+      // this so nothing happens. 
+      return null;
+    }
+
+
+}

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/UserNameBean.java
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/UserNameBean.java?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/UserNameBean.java (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/java/helloDuke/UserNameBean.java Wed Jun 30 22:43:00 2010
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package helloDuke;
+
+public class UserNameBean {
+
+    String userName = null;
+
+
+    public UserNameBean() {
+        System.out.println("Model Object Created");
+    }
+
+
+    public void setUserName(String user_name) {
+        userName = user_name;
+        System.out.println("Set userName " + userName);
+    }
+
+
+    public String getUserName() {
+        System.out.println("get userName " + userName);
+        return userName;
+    }
+
+}

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/META-INF/NOTICE?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/META-INF/NOTICE (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/resources/META-INF/NOTICE Wed Jun 30 22:43:00 2010
@@ -0,0 +1,20 @@
+Apache MyFaces Portlet 2.0 Bridge for JavaServer Faces 1.2
+Copyright [2007, 2008, 2009, 2010] The Apache Software Foundation
+
+This is an implementation of a public review specification
+developed under the Java Community Process (JCP). This
+implementation may not fully conform to this specification.
+This implementation may differ from the final specification.
+The code is not compatible with any specification of the JCP.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+Portions of this software are Copyright (c) 2005, 2007, Oracle 
+Corporation, <http://www.oracle.com/> and are licensed to 
+the Apache Software Foundation under the "Software Grant 
+and Corporate Contribution License Agreement"
+
+See the LICENSE.txt file for information on all licenses 
+associated with this software.
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/faces-config.xml?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/faces-config.xml Wed Jun 30 22:43:00 2010
@@ -0,0 +1,73 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+-->
+
+<!-- =========== FULL CONFIGURATION FILE ================================== -->
+
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:bridge="http://www.apache.org/myfaces/xml/ns/bridge/bridge-extension"
+              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>
+        <application-extension>
+          <bridge:public-parameter-mappings>
+            <bridge:public-parameter-mapping>
+              <parameter>portlet-bridge-currentName-prp:userName</parameter>
+              <model-el>#{userNameBean.userName}</model-el>
+            </bridge:public-parameter-mapping>
+          </bridge:public-parameter-mappings>       
+        </application-extension>
+    </application>
+
+
+	<!-- HelloDuke managed bean -->
+	<managed-bean>
+		<description>The UserNameBean for HelloDuke sample</description>
+		<managed-bean-name>userNameBean</managed-bean-name>
+		<managed-bean-class>helloDuke.UserNameBean</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
+
+	<managed-bean>
+		<description>The HelloDukeActionHandler for HelloDuke sample</description>
+		<managed-bean-name>dukeActionHandler</managed-bean-name>
+		<managed-bean-class>helloDuke.HelloDukeActionHandler</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
+
+	<!-- Tell Duke your name -->
+	<navigation-rule>
+		<navigation-case>
+			<from-outcome>response</from-outcome>
+			<to-view-id>/helloDuke/response.jsp</to-view-id>
+		</navigation-case>
+
+		<!-- Return to greeting page -->
+		<navigation-case>
+			<from-outcome>greeting</from-outcome>
+			<to-view-id>/helloDuke/greeting.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+
+</faces-config>
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml Wed Jun 30 22:43:00 2010
@@ -0,0 +1,243 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+	   
+-->
+
+<!-- This web.xml file is used in order to configure pluto to run with jetty in order to test the appropriate web applications -->
+<web-app 
+   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-app_2_5.xsd" 
+   metadata-complete="true"
+   version="2.5"> 
+
+  <context-param>
+    <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
+    <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>
+  </context-param>
+  
+  <!-- Listeners -->
+  <listener>
+    <listener-class>
+      com.bekk.boss.pluto.embedded.jetty.util.OverrideContextLoaderListener
+    </listener-class>
+  </listener>
+  
+  <listener>
+    <listener-class>
+      com.bekk.boss.pluto.embedded.util.PortalStartupListener
+    </listener-class>
+  </listener>
+
+  <!-- Filters and Mappings -->
+  <filter>
+    <filter-name>plutoResourceFilter</filter-name>
+    <filter-class>com.bekk.boss.pluto.embedded.util.PlutResourcesFilter</filter-class>
+  </filter>
+
+  <filter>
+    <filter-name>plutoPortalDriver</filter-name>
+    <filter-class>com.bekk.boss.pluto.embedded.util.PlutoPortalDriverFilter</filter-class>
+  </filter>
+	
+  <filter-mapping>
+    <filter-name>plutoResourceFilter</filter-name>
+    <url-pattern>*.css</url-pattern>
+    <url-pattern>*.gif</url-pattern>
+    <url-pattern>*.png</url-pattern>
+    <url-pattern>*.js</url-pattern>
+  </filter-mapping>
+
+  <filter-mapping>
+    <filter-name>plutoPortalDriver</filter-name>
+    <url-pattern>/jettypluto/index.jsp</url-pattern>
+    <url-pattern>/jettypluto/index.jsp/*</url-pattern>
+  </filter-mapping>
+
+  <!-- Servlets and Mappings -->
+
+  <!--
+    The default servlet.                                                  
+    This servlet, normally mapped to /, provides the handling for static  
+    content, OPTIONS and TRACE methods for the context.                   
+    The following initParameters are supported:                           
+                                                                          
+      acceptRanges     If true, range requests and responses are          
+                       supported                                          
+                                                                          
+      dirAllowed       If true, directory listings are returned if no     
+                       welcome file is found. Else 403 Forbidden.         
+                                                                          
+      redirectWelcome  If true, redirect welcome file requests            
+                       else use request dispatcher forwards               
+                                                                          
+      gzip             If set to true, then static content will be served  
+                       as gzip content encoded if a matching resource is  
+                       found ending with ".gz"                            
+                                                                          
+      resoureBase      Can be set to replace the context resource base    
+                                                                          
+      relativeResourceBase                                                
+                       Set with a pathname relative to the base of the    
+                       servlet context root. Useful for only serving      
+                       static content from only specific subdirectories.  
+                                                                          
+      useFileMappedBuffer                                                 
+                       If set to true (the default), a  memory mapped     
+                       file buffer will be used to serve static content   
+                       when using an NIO connector. Setting this value    
+                       to false means that a direct buffer will be used   
+                       instead. If you are having trouble with Windows    
+                       file locking, set this to false.                   
+                                                                          
+     cacheControl      If set, all static content will have this value    
+                       set as the cache-control header.                   
+                                                                          
+     maxCacheSize      Maximum size of the static resource cache          
+                                                                          
+     maxCachedFileSize Maximum size of any single file in the cache       
+                                                                          
+     maxCachedFiles    Maximum number of files in the cache               
+  -->
+
+  <servlet>
+    <servlet-name>default</servlet-name>
+    <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
+    <init-param>
+      <param-name>acceptRanges</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>dirAllowed</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>redirectWelcome</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>maxCacheSize</param-name>
+      <param-value>4000000</param-value>
+    </init-param>
+    <init-param>
+      <param-name>maxCachedFileSize</param-name>
+      <param-value>254000</param-value>
+    </init-param>
+    <init-param>
+      <param-name>maxCachedFiles</param-name>
+      <param-value>1000</param-value>
+    </init-param>
+    <init-param>
+      <param-name>gzip</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>useFileMappedBuffer</param-name>
+      <param-value>true</param-value>
+    </init-param>  
+    <load-on-startup>0</load-on-startup>
+  </servlet> 
+
+  <servlet id="jsp">
+    <servlet-name>jsp</servlet-name>
+    <servlet-class>com.bekk.boss.pluto.embedded.util.PortletJspServlet</servlet-class>
+    <init-param>
+        <param-name>logVerbosityLevel</param-name>
+        <param-value>DEBUG</param-value>
+    </init-param>
+    <init-param>
+        <param-name>fork</param-name>
+        <param-value>false</param-value>
+    </init-param>
+    <init-param>
+        <param-name>xpoweredBy</param-name>
+        <param-value>false</param-value>
+    </init-param>
+    <load-on-startup>0</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>default</servlet-name>
+    <url-pattern>/</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping> 
+    <servlet-name>jsp</servlet-name> 
+    <url-pattern>*.jsp</url-pattern> 
+    <url-pattern>*.jspf</url-pattern>
+    <url-pattern>*.jspx</url-pattern>
+    <url-pattern>*.xsp</url-pattern>
+    <url-pattern>*.JSP</url-pattern> 
+    <url-pattern>*.JSPF</url-pattern>
+    <url-pattern>*.JSPX</url-pattern>
+    <url-pattern>*.XSP</url-pattern>
+  </servlet-mapping>
+
+  <!-- Other settings -->
+  <session-config>
+    <session-timeout>60</session-timeout>
+  </session-config>
+
+  <welcome-file-list>
+    <welcome-file>index.jsp</welcome-file>
+  </welcome-file-list>
+	
+  <locale-encoding-mapping-list>
+    <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>     
+    <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>   
+  </locale-encoding-mapping-list>
+</web-app>
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/portlet.xml?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/portlet.xml (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/portlet.xml Wed Jun 30 22:43:00 2010
@@ -0,0 +1,133 @@
+<?xml version="1.0"  encoding="ISO-8859-1"?>
+
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.	   
+-->
+
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"             
+                   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"
+                   id="BridgeHelloDukeDemo" version="2.0">
+	<portlet>
+		<description>HelloDukeCoordination</description>
+		<portlet-name>portlet-bridge-helloDuke-coordination</portlet-name>
+		<display-name>HelloDukeCoord</display-name>
+		<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
+
+		<init-param>
+			<name>javax.portlet.faces.defaultViewId.view</name>
+			<value>/helloDuke/greeting.jsp</value>
+		</init-param>
+
+		<expiration-cache>0</expiration-cache>
+
+		<supports>
+			<mime-type>text/html</mime-type>
+			<portlet-mode>view</portlet-mode>
+		</supports>
+		<supported-locale>en</supported-locale>
+		<portlet-info>
+			<title>HelloDukeCoord</title>
+			<short-title>HelloDukeCoord</short-title>
+			<keywords>HelloDukeCoord</keywords>
+		</portlet-info>
+
+    		<supported-public-render-parameter>userName</supported-public-render-parameter>
+
+    		<supported-publishing-event>
+      		<qname xmlns:bridge="http://myfaces.apache.org/portlet-bridge/event_ns">bridge:myfaces.apache.org.helloDuke.userNameChanged</qname>
+    		</supported-publishing-event>
+	</portlet>
+
+
+	<portlet>
+		<description>CurrentNamePRP</description>
+		<portlet-name>portlet-bridge-currentName-prp</portlet-name>
+		<display-name>Your Current Name PRP</display-name>
+		<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
+
+		<init-param>
+			<name>javax.portlet.faces.defaultViewId.view</name>
+			<value>/helloDuke/yourName.jsp</value>
+		</init-param>
+
+		<expiration-cache>0</expiration-cache>
+
+		<supports>
+			<mime-type>text/html</mime-type>
+			<portlet-mode>view</portlet-mode>
+		</supports>
+		<supported-locale>en</supported-locale>
+		<portlet-info>
+			<title>CurrentNamePRP</title>
+			<short-title>CurrentNamePRP</short-title>
+			<keywords>CurrentNamePRP</keywords>
+		</portlet-info>
+
+    		<supported-public-render-parameter>userName</supported-public-render-parameter>
+	</portlet>
+
+	<portlet>
+		<description>CurrentNameEvent</description>
+		<portlet-name>portlet-bridge-currentName-event</portlet-name>
+		<display-name>Your Current Name PRP</display-name>
+		<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
+
+		<init-param>
+			<name>javax.portlet.faces.defaultViewId.view</name>
+			<value>/helloDuke/yourName.jsp</value>
+		</init-param>
+
+    		<init-param>
+       		<name>javax.portlet.faces.bridgeEventHandler</name>
+       		<value>helloDuke.PortletEventHandler</value>
+    		</init-param>
+
+		<expiration-cache>0</expiration-cache>
+
+		<supports>
+			<mime-type>text/html</mime-type>
+			<portlet-mode>view</portlet-mode>
+		</supports>
+		<supported-locale>en</supported-locale>
+		<portlet-info>
+			<title>CurrentNameEvent</title>
+			<short-title>CurrentNameEvent</short-title>
+			<keywords>CurrentNameEvent</keywords>
+		</portlet-info>
+
+    		<supported-processing-event>
+      		<qname xmlns:bridge="http://myfaces.apache.org/portlet-bridge/event_ns">bridge:myfaces.apache.org.helloDuke.userNameChanged</qname>
+    		</supported-processing-event>
+
+	</portlet>
+
+  <event-definition>
+  	<qname xmlns:bridge="http://myfaces.apache.org/portlet-bridge/event_ns">bridge:myfaces.apache.org.helloDuke.userNameChanged</qname>
+  	<value-type>java.lang.String</value-type>	
+  </event-definition>
+
+  <public-render-parameter>
+    <description>User Name</description>
+    <identifier>userName</identifier>
+    <qname xmlns:bridge="http://myfaces.apache.org/portlet-bridge/params">bridge:userName</qname>
+  </public-render-parameter>
+
+</portlet-app>
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/web.xml?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/WEB-INF/web.xml Wed Jun 30 22:43:00 2010
@@ -0,0 +1,81 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+-->
+
+<web-app version="2.5"
+         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-app_2_5.xsd" >
+
+	<display-name>faces-portlet-bridge-demos</display-name>
+
+	<context-param>
+		<description>
+			The location where state information is saved. Valid values
+			are 'server' (typically saved in HttpSession) and 'client'
+			(typically saved as a hidden field in the form. Default is
+			server.
+		</description>
+		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+		<param-value>server</param-value>
+	</context-param>
+	<context-param>
+		<description>
+			The default suffix for extension-mapped resources that
+			contain JSF components. Default is '.jsp'.
+		</description>
+		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+		<param-value>.jsp</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>*.faces</url-pattern>
+	</servlet-mapping>
+
+
+	<servlet-mapping>
+		<servlet-name>Faces Servlet</servlet-name>
+		<url-pattern>*.jsf</url-pattern>
+	</servlet-mapping>
+
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+		<welcome-file>index.htm</welcome-file>
+		<welcome-file>index.jsp</welcome-file>
+		<welcome-file>default.html</welcome-file>
+		<welcome-file>default.htm</welcome-file>
+		<welcome-file>default.jsp</welcome-file>
+	</welcome-file-list>
+
+</web-app>

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/error.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/error.jsp?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/error.jsp (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/error.jsp Wed Jun 30 22:43:00 2010
@@ -0,0 +1,34 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+-->
+
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<H3>
+	JSF Basic Components Test Page
+</H3>
+<hr>
+<f:view>
+	<h:form id="errorForm">
+		<h:outputText id="helloLabel" text="Login Failed" />
+		<P></P>
+	</h:form>
+</f:view>
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/greeting.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/greeting.jsp?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/greeting.jsp (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/greeting.jsp Wed Jun 30 22:43:00 2010
@@ -0,0 +1,40 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+-->
+
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<h2>
+	My name is Duke. What is yours?
+</h2>
+
+<%-- Do not use 'useBean' with the bridge, configure it into faces-config.xml instead --%>
+<%-- jsp:useBean id="UserNameBean" class="helloDuke.UserNameBean" scope="session" /> --%>
+
+	
+<f:view>
+	<h:form id="helloForm">
+		<h:graphicImage id="waveImg" url="/helloDuke/wave.med.gif" />
+		<h:inputText id="username" value="#{userNameBean.userName}" />
+		<h:commandButton id="submit" action="response" actionListener="#{dukeActionHandler.processAction}" value="Submit"
+			type="submit" />
+	</h:form>
+</f:view>
\ No newline at end of file

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/index.html
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/index.html?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/index.html (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/index.html Wed Jun 30 22:43:00 2010
@@ -0,0 +1,11 @@
+
+&nbsp;
+<br>&nbsp;
+
+
+<P>Click&nbsp; <a href="faces/greeting.jsp">here</a>&nbsp;
+to say hello to Duke. </P>
+
+<br>
+<hr WIDTH="100%">
+

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/response.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/response.jsp?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/response.jsp (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/response.jsp Wed Jun 30 22:43:00 2010
@@ -0,0 +1,34 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+-->
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<f:view>
+	<h:form id="responseform">
+		<h:graphicImage id="waveImg" url="/helloDuke/wave.med.gif" />
+		<h2>
+			Hi,
+			<h:outputText id="userLabel" value="#{userNameBean.userName}" />
+		</h2>
+		<h:commandButton id="back" value="Back" action="greeting" />
+		<p>
+	</h:form>
+</f:view>
\ No newline at end of file

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/wave.med.gif
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/wave.med.gif?rev=959468&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/wave.med.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/yourName.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/yourName.jsp?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/yourName.jsp (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/helloDuke/yourName.jsp Wed Jun 30 22:43:00 2010
@@ -0,0 +1,33 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ *
+-->
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<f:view>
+	<h:form id="responseform">
+		<h:graphicImage id="waveImg" url="/helloDuke/wave.med.gif" />
+		<h2>
+			Your name is:
+			<h:outputText id="userLabel" value="#{userNameBean.userName}" />
+		</h2>
+		<p>
+	</h:form>
+</f:view>
\ No newline at end of file

Added: myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/jettypluto/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/jettypluto/index.jsp?rev=959468&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/jettypluto/index.jsp (added)
+++ myfaces/portlet-bridge/core/trunk_2.0.x/examples/helloDukeCoordination/src/main/webapp/jettypluto/index.jsp Wed Jun 30 22:43:00 2010
@@ -0,0 +1,109 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<!--
+/* Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+-->
+
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+         
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://portals.apache.org/pluto" prefix="pluto" %>
+
+<html>
+<head>
+    <title>Pluto Portal</title>
+    <style type="text/css" title="currentStyle" media="screen">
+        @import "<c:out value="${pageContext.request.contextPath}"/>/pluto.css";
+        @import "<c:out value="${pageContext.request.contextPath}"/>/portlet-spec-1.0.css";
+        <c:forEach items="${org_apache_pluto_embedded_extraStyles}" var="style">
+	    @import "<c:out value="${pageContext.request.contextPath}"/><c:out value="${style}"/>";
+	    </c:forEach>
+    </style>
+    <script type="text/javascript" src="<c:out value="${pageContext.request.contextPath}"/>/pluto.js">
+    </script>
+</head>
+
+<body>
+
+<div id="portal">
+
+    <!-- Header block: the Apache Pluto banner image and description -->
+    <div id="header">
+        <h1>Apache Pluto</h1>
+
+        <p>An Apache Portals Project</p>
+    </div>
+
+    <!-- Logout link -->
+    <c:if test="${pageContext.request.remoteUser != null}">
+        <div id="logout">
+            <a href="<c:url value='/Logout'/>">Logout</a>
+        </div>
+    </c:if>
+    
+    
+    <!-- Content block: portlets are divided into two columns/groups -->
+    <div id="content">
+        <pluto:isMaximized var="isMax"/>
+
+        <!-- Left column -->
+        <c:choose>
+            <c:when test="${isMax}">
+                    <c:forEach var="portlet" varStatus="status"
+                               items="${org_apache_pluto_embedded_portletIds}">
+                        <c:set var="portlet" value="${portlet}" scope="request"/>
+                        <jsp:include page="/WEB-INF/themes/portlet-skin.jsp"/>
+                    </c:forEach>
+             </c:when>
+
+            <c:otherwise>
+                <div id="portlets-left-column">
+                    <c:forEach var="portlet" varStatus="status"
+                               items="${org_apache_pluto_embedded_portletIds}" step="2">
+                        <c:set var="portlet" value="${portlet}" scope="request"/>
+                        <jsp:include page="/WEB-INF/themes/portlet-skin.jsp"/>
+                    </c:forEach>
+                </div>
+
+                <!-- Right column -->
+                <div id="portlets-right-column">
+                    <c:forEach var="portlet" varStatus="status"
+                               items="${org_apache_pluto_embedded_portletIds}" begin="1" step="2">
+                        <c:set var="portlet" value="${portlet}" scope="request"/>
+                        <jsp:include page="/WEB-INF/themes/portlet-skin.jsp"/>
+                    </c:forEach>
+                </div>
+
+            </c:otherwise>
+        </c:choose>
+
+    </div>
+
+
+
+    <!-- Footer block: copyright -->
+    <div id="footer">
+        &copy; 2003-2005 Apache Software Foundation
+    </div>
+
+</div>
+
+</body>
+
+</html>
+