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/03/26 00:42:50 UTC

svn commit: r927641 [3/3] - in /myfaces/portlet-bridge/testsuite/trunk: ./ portlet-bridge-testsuite-main/ portlet-bridge-testsuite-main/src/ portlet-bridge-testsuite-main/src/main/ portlet-bridge-testsuite-main/src/main/webapp/ portlet-bridge-testsuite...

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/WEB-INF/web.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/WEB-INF/web.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
+<web-app>
+  <display-name>bridge_Test_web</display-name>
+  <context-param>
+    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+    <param-value>.jsp</param-value>
+  </context-param>
+  
+  
+  <!-- Faces Servlet -->
+  <servlet>
+    <servlet-name>faces</servlet-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  </servlet>
+  
+
+  <!-- Faces Servlet Mappings -->
+  <!-- 
+    In this demo application, I chose to use suffix mapping.  I did this because it makes urls
+    in the portlet world look nicer in the source.  The portlet url should be the same 
+    reguardless.
+  -->
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>*.jsf</url-pattern>
+  </servlet-mapping>
+</web-app>
+

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/images/portlet_bridge_logo.png
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/images/portlet_bridge_logo.png?rev=927641&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/images/portlet_bridge_logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/DispatchTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/DispatchTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/DispatchTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/DispatchTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+     
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Dispatch Test</title>
+    </head>
+    <body>
+      <%
+      if (request.getAttribute("javax.servlet.include.servlet_path") != null)
+         request.setAttribute("org.apache.myfaces.portlet.faces.testsuite.dispatchInclude", Boolean.TRUE);
+      else 
+        request.setAttribute("org.apache.myfaces.portlet.faces.testsuite.dispatchInclude", Boolean.FALSE);
+      %>
+      <jsp:include page="SingleRequestTest.jsp" />
+    </body>
+  </html>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdResult.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdResult.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdResult.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdResult.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 ModeViewID Result TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+      
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/ModeViewIdTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 ModeViewID TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputLink value="portlet:render" >
+            <f:param name="javax.portlet.faces.PortletMode" value="edit" />
+            <h:outputText value="Run Test"/>
+          </h:outputLink>
+        </h:panelGrid>
+      </h:form>
+      
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestFormDataTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestFormDataTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestFormDataTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestFormDataTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Multi-Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:inputText id="formDataField1" label="field1" value="value1" readonly="true" />
+          <h:inputText id="formDataField2" label = "field2" value="value2" readonly="true" />
+          <h:commandButton value="Run Test" action="#{test.runActionTest}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Multi-Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:commandButton value="Run Test" action="#{test.runActionTest}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResult.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResult.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResult.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResult.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Multi Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.testResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResultRenderCheck.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResultRenderCheck.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResultRenderCheck.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/MultiRequestTestResultRenderCheck.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Multi Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestFailed.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestFailed.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestFailed.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestFailed.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestSuccess.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestSuccess.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestSuccess.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/PortletSetsViewIdTestSuccess.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedirectTestResultRenderCheck.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedirectTestResultRenderCheck.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedirectTestResultRenderCheck.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedirectTestResultRenderCheck.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Multi Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayActionRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayActionRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayActionRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayActionRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Multi Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+          <h:commandButton value="#{test.redisplayLinkName}" action="#{test.runActionTest}"/>
+        </h:panelGrid>
+      </h:form>
+      
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderNewModeRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderNewModeRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderNewModeRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderNewModeRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+        <h:outputLink value="portlet:render" >
+            <f:param name="_jsfBridgeViewId" value="_jsfBridgeCurrentView" />
+            <f:param name="javax.portlet.faces.PortletMode" value="edit" />
+            <f:param name="org.apache.portlet.faces.tck.redisplay" value="1" />
+            <h:outputText value="#{test.redisplayLinkName}"/>
+        </h:outputLink>
+      </h:form>
+      
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/RedisplayRenderRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+        <h:outputLink value="portlet:render" >
+            <f:param name="_jsfBridgeViewId" value="_jsfBridgeCurrentView" />
+            <f:param name="org.apache.portlet.faces.tck.redisplay" value="1" />
+            <h:outputText value="#{test.redisplayLinkName}"/>
+        </h:outputLink>
+      </h:form>
+      
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestAfterContentTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestAfterContentTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestAfterContentTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestAfterContentTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResultAsAfterContent}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/SingleRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter4_2_5Result.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter4_2_5Result.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter4_2_5Result.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter4_2_5Result.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,63 @@
+<%@ page contentType = "text/html; charset=UTF-8"
+         pageEncoding = "UTF-8"
+         import = "javax.portlet.*, org.apache.myfaces.portlet.faces.testsuite.common.util.BridgeTCKResultWriter, org.apache.myfaces.portlet.faces.testsuite.common.Constants"%>
+<%@ taglib uri = "http://java.sun.com/portlet" prefix="portlet"%>
+
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Non Faces Request TCK Test</title>
+    </head>
+    <body>
+
+    <portlet:defineObjects/>
+
+    <!-- Test pass if the response content type has been set to the same value
+         as the request.-->
+    <!-- Test pass if the jsp has been rendered using a portlet dispatcher.
+         This is indicated by the presence of portlet attributes being set
+         on the request. -->
+    <%
+      String testName = (String)renderRequest.getAttribute(Constants.TEST_NAME);
+      BridgeTCKResultWriter writer = new BridgeTCKResultWriter(testName);
+
+      String contentType = renderResponse.getContentType();
+      String contentTypeMsg = "Expected response content type is " + renderRequest.getResponseContentType() + ", actual value is " + contentType + ".  ";
+
+      String[] dispatcherAttributes = {"javax.portlet.config",
+                                       "javax.portlet.request",
+                                       "javax.portlet.response"};
+
+      boolean dispatcherPass = true;
+      for (String attr: dispatcherAttributes)
+      {
+        if (request.getAttribute(attr) == null)
+        {
+          dispatcherPass = false;
+          break;
+        }
+      }
+      String dispatcherMsg = null;
+      if (dispatcherPass == true)
+      {
+        dispatcherMsg = "  The request included valid dispatcher attributes.";
+      }
+      else
+      {
+        dispatcherMsg = "  The request did not include valid attributes indicating that a portlet request dispatcher was not used.";
+      }
+
+      writer.setDetail(contentTypeMsg + dispatcherMsg);
+      if (contentType.equals(renderRequest.getResponseContentType()) && dispatcherPass)
+      {
+        writer.setStatus(true);
+      }
+      else
+      {
+        writer.setStatus(false);
+      }
+  
+    %>
+    <%=writer.toString()%>
+    </body>
+  </html>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter6_5.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter6_5.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter6_5.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-main/src/main/webapp/tests/chapter6_5.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,381 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"
+         isELIgnored="false"
+         session="true" 
+         import="java.util.*,
+                 javax.faces.context.*, javax.faces.component.*,
+                 javax.servlet.*, javax.portlet.*,
+                 javax.portlet.faces.*, javax.portlet.faces.preference.*" %>
+                 
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>Chapter 6_5 Tests</title>
+    </head>
+    <body>
+<%
+   // App Scope
+   pageContext.getServletContext().setAttribute("org.apache.myfaces.portlet.faces.TCK.appScopeAttr", Boolean.TRUE);
+    
+   // Session scope (app scope)
+   pageContext.getSession().setAttribute("org.apache.myfaces.portlet.faces.TCK.portletSessionScopeAttr", Boolean.TRUE);
+    
+   // Request scope
+   pageContext.getRequest().setAttribute("org.apache.myfaces.portlet.faces.TCK.requestScopeAttr", Boolean.TRUE);
+%>
+
+<%-- Acquire all the elements via EL -- add to page context -- then compare with Java --%> 
+
+<%-- applicationScope --%>
+<c:set var="tck_applicationScope" value="${applicationScope}" scope="page"  />
+
+<%-- cookie --%>
+<c:set var="tck_cookie" value="${cookie}" scope="page"  />
+
+<%-- header --%>
+<c:set var="tck_header" value="${header}" scope="page"  />
+
+<%-- headerValues --%>
+<c:set var="tck_headerValues" value="${headerValues}" scope="page"  />
+
+<%-- initParam --%>
+<c:set var="tck_initParam" value="${initParam}" scope="page"  />
+
+<%-- pageContext --%>
+<c:set var="tck_pageContext" value="${pageContext}" scope="page"  />
+
+<%-- pageScope --%>
+<c:set var="tck_pageScope" value="${pageScope}" scope="page"  />
+
+<%-- param --%>
+<c:set var="tck_param" value="${param}" scope="page"  /> 
+
+<%-- paramValues --%>
+<c:set var="tck_paramValues" value="${paramValues}" scope="page"  /> 
+
+<%-- requestScope --%>
+<c:set var="tck_requestScope" value="${requestScope}" scope="page"  />
+
+<%-- sessionScope --%>
+<c:set var="tck_sessionScope" value="${sessionScope}" scope="page"  />
+
+
+<%--  Extra objects resolved by base JSP resolver if using portlet:defineObjects --%>
+<%--  Note: we aren't - hence we expect null here - we do this to test that the 
+      Bridge's ELresolver is properly delegating to the JSPResolver for this resolution.
+      If it isn't it will resolve these values and we will report an error --%>
+      
+<%-- portletConfig --%>
+<c:set var="tck_portletConfig" value="${portletConfig}" scope="page"  />
+
+<%-- renderRequest --%>
+<c:set var="tck_renderRequest" value="${renderRequest}" scope="page"  />
+
+<%-- renderResponse --%>
+<c:set var="tck_renderResponse" value="${renderResponse}" scope="page"  />
+
+
+<%-- Objects resolved by Face's JSP ELResolver --%>
+<%-- facesContext --%>
+<c:set var="tck_facesContext" value="${facesContext}" scope="page"  />
+
+<%-- view --%>
+<c:set var="tck_view" value="${view}" scope="page"  />
+
+
+<%-- Objects resolved by Bridge's JSP ELResolver --%>
+<%-- portletSession --%>
+<c:set var="tck_portletSession" value="${portletSession}" scope="page"  />
+
+<%-- portletSessionScope --%>
+<c:set var="tck_portletSessionScope" value="${portletSessionScope}" scope="page"  />
+
+<%-- httpSessionScope --%>
+<c:set var="tck_httpSessionScope" value="${httpSessionScope}" scope="page"  />
+
+<%-- portletPreferences --%>
+<c:set var="tck_portletPreferences" value="${portletPreferences}" scope="page"  />
+
+<%-- portletPreferencesValues --%>
+<c:set var="tck_portletPreferencesValues" value="${portletPreferencesValues}" scope="page"  />
+
+<%-- mutablePortletPreferencesValues --%>
+<c:set var="tck_mutablePortletPreferencesValues" value="${mutablePortletPreferencesValues}" scope="page"  />
+
+<%
+  /* Now test that we got the right stuff */
+  
+  /* For implicit objects handled by the base JSP resolver -- merely verify they were resolved */
+  
+  boolean status = true;
+  String detail = "";
+   
+  if (pageContext.getAttribute("tck_applicationScope") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'applicationScope' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_cookie") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'cookie' failed<br>";
+  }
+  
+  if (pageContext.getAttribute("tck_header") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'header' failed<br>";
+  }
+  
+  if (pageContext.getAttribute("tck_headerValues") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'headerValues' failed<br>";
+  }
+  
+  if (pageContext.getAttribute("tck_initParam") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'initParam' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_pageContext") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'pageContext' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_pageScope") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'pageScope' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_param") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'param' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_paramValues") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'paramValues' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_requestScope") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'requestScope' failed<br>";
+  }
+
+  if (pageContext.getAttribute("tck_sessionScope") == null)
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'sessionScope' failed<br>";
+  }
+  
+  /* verify we didn't resolve the portlet implicit objects tied to portlet:defineObjects -- as
+     we didn't use this construct in the page in order to prove the bridge properly delegates */
+
+  if (pageContext.getAttribute("tck_portletConfig") != null)
+  {
+    status = false;
+    detail += "'portletConfig' improperly resolved.  'portlet:defineObjects' isn't used in this JSP meaning the EL shouldn't have resolved, but it did.  This implies the Bridge's EL resolver handled the resolution which is wrong.<br>";
+  }
+  
+  if (pageContext.getAttribute("tck_renderRequest") != null)
+  {
+    status = false;
+    detail += "'renderRequest' improperly resolved.  'portlet:defineObjects' isn't used in this JSP meaning the EL shouldn't have resolved, but it did.  This implies the Bridge's EL resolver handled the resolution which is wrong.<br>";
+  }
+  
+  if (pageContext.getAttribute("tck_renderResponse") != null)
+  {
+    status = false;
+    detail += "'renderResponse' improperly resolved.  'portlet:defineObjects' isn't used in this JSP meaning the EL shouldn't have resolved, but it did.  This implies the Bridge's EL resolver handled the resolution which is wrong.<br>";
+  }
+  
+  
+  /* Verify that the Faces specific implicit objects resolved correctly - test
+   * values to ensure the Bridge didn't perturb */
+  FacesContext elFacesContext = (FacesContext) pageContext.getAttribute("tck_facesContext");
+  if (elFacesContext == null || !FacesContext.getCurrentInstance().equals(elFacesContext))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'facesContext' failed<br>";
+  }
+  
+  UIViewRoot elView = (UIViewRoot) pageContext.getAttribute("tck_view");
+  if (elView == null || !elFacesContext.getViewRoot().equals(elView))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'view' failed<br>";
+  } 
+  
+  /* Verify that the Bridge specific implicit objects resolved correctly - test
+   * values to ensure the Bridge got them right */
+  Object elPortletSession = pageContext.getAttribute("tck_portletSession");
+  if (elPortletSession == null || !testImplicitObject(elPortletSession, elFacesContext.getExternalContext().getSession(true)))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'portletSession' failed<br>";
+  } 
+  
+  Object elPortletSessionScope = pageContext.getAttribute("tck_portletSessionScope");
+  if (elPortletSessionScope == null || !testImplicitObject(elPortletSessionScope, elFacesContext.getExternalContext().getSessionMap()))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'portletSessionScope' failed<br>";
+  } 
+
+  Map<String, Object> elHttpSessionScope = (Map<String, Object>) pageContext.getAttribute("tck_httpSessionScope");
+  if (elHttpSessionScope == null || !testHttpSessionScope(elHttpSessionScope, (PortletSession)elFacesContext.getExternalContext().getSession(true)))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'httpSessionScope' failed<br>";
+  }
+  
+  Object elPortletPreferences = pageContext.getAttribute("tck_portletPreferences");
+  if (elPortletPreferences == null || !testImplicitObject(elPortletPreferences, ((PortletRequest)elFacesContext.getExternalContext().getRequest()).getPreferences()))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'portletSessionScope' failed<br>";
+  }
+  
+  Map<String, String[]> elPortletPreferencesValues = (Map<String, String[]>) pageContext.getAttribute("tck_portletPreferencesValues");
+  if (elPortletPreferencesValues == null || !testImplicitObjectArrayMaps(elPortletPreferencesValues, ((PortletRequest)elFacesContext.getExternalContext().getRequest()).getPreferences().getMap()))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'portletPreferencesValues' failed<br>";
+  }
+  
+  Map<String, Preference> elMutablePortletPreferencesValues = (Map<String, Preference>) pageContext.getAttribute("tck_mutablePortletPreferencesValues");
+  if (elMutablePortletPreferencesValues == null || !testMutablePortletPreferencesValues(elMutablePortletPreferencesValues, ((PortletRequest)elFacesContext.getExternalContext().getRequest()).getPreferences().getMap()))
+  {
+    status = false;
+    detail += "JSF EL resolution of implict variable 'mutablePortletPreferencesValues' failed<br>";
+  }
+  
+  if (status)
+     detail = "All JSP EL expressions resolved correctly";
+
+  elFacesContext.getExternalContext().getRequestMap().put("org.apache.myfaces.portlet.faces.TCK.status", Boolean.valueOf(status));
+  elFacesContext.getExternalContext().getRequestMap().put("org.apache.myfaces.portlet.faces.TCK.detail", detail);
+  
+%>
+
+<f:view>
+       <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form> 
+</f:view>
+</body>
+</html>
+
+
+<%-- JSP methods we rely on to do validation above --%>
+<%!
+  public boolean testImplicitObject(Object implicitObject, Object compareTo)
+  {
+    return true;
+  }
+  
+  private boolean testImplicitObjectArrayMaps(Map<String, String[]> implicitObject, Map<String, String[]> compareTo)
+  {
+    if (!arrayMapsEquals(implicitObject, compareTo))
+    {
+      return false;
+    }
+    else
+    {
+      return true;
+    }
+  }
+  
+  private boolean arrayMapsEquals(Map<String, String[]> a, Map<String, String[]> b)
+  {
+    if (a == b) return true;
+    if (a.size() != b.size()) return false;
+    for (Iterator<Map.Entry<String, String[]>> i = a.entrySet().iterator(); i.hasNext();)
+    {
+      Map.Entry<String, String[]> e = i.next();
+      if (!Arrays.equals(e.getValue(), b.get(e.getKey())))
+        return false;
+    }
+    return true;
+  }
+  
+  private boolean testHttpSessionScope(Map<String, Object> implicitObject, PortletSession session)
+  {
+    // iterate over the Map and make sure each is in the portlet session app scope
+    for (Iterator<Map.Entry<String, Object>> i = implicitObject.entrySet().iterator(); i.hasNext();)
+    {
+      Map.Entry<String, Object> e = i.next();
+      Object compareTo = session.getAttribute(e.getKey(), PortletSession.APPLICATION_SCOPE);
+      if (compareTo == null)
+      {
+        return false;
+      }
+      else if (!e.getValue().equals(compareTo))
+      {
+        return false;
+      } 
+    }
+    
+    // Now verify that the Map contained the correct number of entries
+    Enumeration en = session.getAttributeNames(PortletSession.APPLICATION_SCOPE);
+    int count = 0;
+    while (en.hasMoreElements())
+    {
+      en.nextElement();
+      count++;
+    }
+    
+    if (count != implicitObject.size())
+    {
+      return false;
+    }
+    else
+    {
+      return true;
+    }
+  }
+  
+  private boolean testMutablePortletPreferencesValues(Map<String, Preference> implicitObject, Map<String, String[]> prefMap)
+  {
+    if (implicitObject.size() != prefMap.size())
+    {
+      return false;
+    }
+    
+    // Now test that the Map contains the same entries as the immutable preference Map
+    for (Iterator<Map.Entry<String, Preference>> i = implicitObject.entrySet().iterator(); i.hasNext();)
+    {
+      Map.Entry<String, Preference> e = i.next();
+      List<String> portletPrefValues = Arrays.asList(prefMap.get(e.getKey()));
+      if (portletPrefValues == null)
+      {
+        return false;
+      }
+      else if (!e.getValue().getValues().equals(portletPrefValues))
+      {
+        return false;
+      }
+    }
+    return true;
+    
+  }
+
+ 
+
+%>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/pom.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/pom.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/pom.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,161 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  
+  <groupId>org.apache.myfaces.portlet-bridge</groupId>
+  <artifactId>portlet-bridge-testsuite-section3-2-render-policy-always-delegate</artifactId>
+  <packaging>war</packaging>
+  <name>MyFaces Portlet Bridge Test Suite - Section 3.2 RENDER_POLICY set to ALWAYS_DELEGATE</name>
+  <version>1.0.0-SNAPSHOT</version>	 
+  <description>
+  This project builds and tests a testsuite web application with a single 
+  renderPolicy test portlet and the portlet context parameter
+  javax.portlet.faces.RENDER_POLICY set to ALWAYS_DELEGATE.
+  </description>
+  
+  <parent>
+    <artifactId>portlet-bridge-testsuite-master</artifactId>
+    <groupId>org.apache.myfaces.portlet-bridge</groupId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>selenium-maven-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>start</id>
+              <phase>process-test-classes</phase>
+              <goals>
+                <goal>start-server</goal>
+              </goals>
+              <configuration>
+                <background>true</background>
+                <logOutput>true</logOutput>
+                <multiWindow>true</multiWindow>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+
+        <plugin>
+          <groupId>org.mortbay.jetty</groupId>
+          <artifactId>maven-jetty-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>start-jetty</id>
+              <phase>process-test-classes</phase>
+              <goals>
+                <goal>run</goal>
+              </goals>
+              <configuration>
+                <scanIntervalSeconds>0</scanIntervalSeconds>
+                <daemon>true</daemon>
+              </configuration>
+            </execution>
+            <execution>
+              <id>stop-jetty</id>
+              <phase>test</phase>
+              <goals>
+                <goal>stop</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.pluto</groupId>
+          <artifactId>maven-pluto-plugin</artifactId>
+          <version>${pluto.version}</version>
+          <executions>
+            <execution>
+              <phase>generate-resources</phase>
+              <goals>
+                <goal>assemble</goal>
+              </goals>
+            </execution>
+          </executions>
+        </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>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>1.3</version>
+        <executions>
+          <execution>
+            <id>add-ts-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${basedir}/../src/main/java</source>
+              </sources>
+            </configuration>
+          </execution>
+          <execution>
+            <id>add-tck-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-test-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${basedir}/../src/test/java</source>
+              </sources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>xml-maven-plugin</artifactId>
+        <configuration>
+          <transformationSets>
+            <transformationSet>
+              <dir>${basedir}/src/main/webapp/WEB-INF</dir>
+              <includes>
+                <include>portlet.xml</include>
+              </includes>
+              <outputDir>${bridge.tck.test.file.dir}</outputDir>
+              <fileMappers>
+                <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
+                  <targetName>${bridge.tck.test.file.name}</targetName>
+                </fileMapper>
+              </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>page-path</name>
+                  <value>${bridge.tck.test.path}</value>
+                </parameter>
+              </parameters>                
+              <stylesheet>${bridge.tck.test.file.stylesheet}</stylesheet>
+            </transformationSet>
+          </transformationSets>
+        </configuration>
+      </plugin>
+
+    </plugins>
+  </build>
+
+</project>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/faces-config.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/faces-config.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2" 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">
+  <application>
+<!--    <view-handler>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteViewHandlerImpl</view-handler> -->
+    <application-extension>
+      <bridge:excluded-attributes>
+        <bridge:excluded-attribute>myFacesConfigExcludedNamespace.*</bridge:excluded-attribute>
+        <bridge:excluded-attribute>myFacesConfigExcludedKey</bridge:excluded-attribute>
+        <bridge:excluded-attribute>org.apache.myfaces.portlet.faces.tck.WildcardFacesConfigTest.*</bridge:excluded-attribute>
+        <bridge:excluded-attribute>org.apache.myfaces.portlet.faces.tck.ExcludeByFacesConfigRef</bridge:excluded-attribute>
+      </bridge:excluded-attributes>
+    </application-extension>
+  </application>
+  <factory>
+    <application-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteApplicationFactoryImpl</application-factory>
+    <faces-context-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.context.TCK_FacesContextFactoryImpl</faces-context-factory>
+    <lifecycle-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteLifecycleFactoryImpl</lifecycle-factory>
+  </factory>
+  
+  <managed-bean>
+    <managed-bean-name>chapter3Tests</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.portlet.faces.testsuite.tests.chapter_3.Tests</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean> 
+  
+  <managed-bean>
+    <managed-bean-name>test</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.portlet.faces.testsuite.beans.TestRunnerBean</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean>  
+  
+  
+</faces-config>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/portlet.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/portlet.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/portlet.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<portlet-app version="1.0"
+             xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+
+    <portlet>
+        <portlet-name>chapter3Tests-renderPolicyTest-portlet</portlet-name>
+        <portlet-class>org.apache.myfaces.portlet.faces.testsuite.common.portlet.GenericFacesTestSuitePortlet</portlet-class>
+
+        <init-param>
+          <name>javax.portlet.faces.defaultViewId.view</name>
+          <value>/tests/SingleRequestTest.jsp</value>
+        </init-param>
+
+        <expiration-cache>0</expiration-cache>
+
+       <supports>
+         <mime-type>text/html</mime-type>
+       </supports>
+        <portlet-info>
+                <title>chapter3Tests-renderPolicyTest-portlet - ALWAYS_DELEGATE</title>
+        </portlet-info>
+    </portlet>
+
+</portlet-app>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/web.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/WEB-INF/web.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
+<web-app>
+  <display-name>bridge_Test_web_section3-2-render-policy-always-delegate</display-name>
+  <context-param>
+    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+    <param-value>.jsp</param-value>
+  </context-param>
+  <context-param>
+    <param-name>javax.portlet.faces.RENDER_POLICY</param-name>
+    <param-value>ALWAYS_DELEGATE</param-value>
+  </context-param>
+  
+  
+  <!-- Faces Servlet -->
+  <servlet>
+    <servlet-name>faces</servlet-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  </servlet>
+  
+
+  <!-- Faces Servlet Mappings -->
+  <!-- 
+    In this demo application, I chose to use suffix mapping.  I did this because it makes urls
+    in the portlet world look nicer in the source.  The portlet url should be the same 
+    reguardless.
+  -->
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>*.jsf</url-pattern>
+  </servlet-mapping>
+</web-app>
+

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/tests/SingleRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/tests/SingleRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/tests/SingleRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-always-delegate/src/main/webapp/tests/SingleRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/pom.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/pom.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/pom.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,161 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  
+  <groupId>org.apache.myfaces.portlet-bridge</groupId>
+  <artifactId>portlet-bridge-testsuite-section3-2-render-policy-default</artifactId>
+  <packaging>war</packaging>
+  <name>MyFaces Portlet Bridge Test Suite - Section 3.2 RENDER_POLICY set to DEFAULT</name>
+  <version>1.0.0-SNAPSHOT</version>	 
+  <description>
+  This project builds and tests a testsuite web application with a single 
+  renderPolicy test portlet and the portlet context parameter
+  javax.portlet.faces.RENDER_POLICY set to DEFAULT.
+  </description>
+  
+  <parent>
+    <artifactId>portlet-bridge-testsuite-master</artifactId>
+    <groupId>org.apache.myfaces.portlet-bridge</groupId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>selenium-maven-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>start</id>
+              <phase>process-test-classes</phase>
+              <goals>
+                <goal>start-server</goal>
+              </goals>
+              <configuration>
+                <background>true</background>
+                <logOutput>true</logOutput>
+                <multiWindow>true</multiWindow>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+
+        <plugin>
+          <groupId>org.mortbay.jetty</groupId>
+          <artifactId>maven-jetty-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>start-jetty</id>
+              <phase>process-test-classes</phase>
+              <goals>
+                <goal>run</goal>
+              </goals>
+              <configuration>
+                <scanIntervalSeconds>0</scanIntervalSeconds>
+                <daemon>true</daemon>
+              </configuration>
+            </execution>
+            <execution>
+              <id>stop-jetty</id>
+              <phase>test</phase>
+              <goals>
+                <goal>stop</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.pluto</groupId>
+          <artifactId>maven-pluto-plugin</artifactId>
+          <version>${pluto.version}</version>
+          <executions>
+            <execution>
+              <phase>generate-resources</phase>
+              <goals>
+                <goal>assemble</goal>
+              </goals>
+            </execution>
+          </executions>
+        </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>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>1.3</version>
+        <executions>
+          <execution>
+            <id>add-ts-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${basedir}/../src/main/java</source>
+              </sources>
+            </configuration>
+          </execution>
+          <execution>
+            <id>add-tck-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-test-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${basedir}/../src/test/java</source>
+              </sources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>xml-maven-plugin</artifactId>
+        <configuration>
+          <transformationSets>
+            <transformationSet>
+              <dir>${basedir}/src/main/webapp/WEB-INF</dir>
+              <includes>
+                <include>portlet.xml</include>
+              </includes>
+              <outputDir>${bridge.tck.test.file.dir}</outputDir>
+              <fileMappers>
+                <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
+                  <targetName>${bridge.tck.test.file.name}</targetName>
+                </fileMapper>
+              </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>page-path</name>
+                  <value>${bridge.tck.test.path}</value>
+                </parameter>
+              </parameters>                
+              <stylesheet>${bridge.tck.test.file.stylesheet}</stylesheet>
+            </transformationSet>
+          </transformationSets>
+        </configuration>
+      </plugin>
+
+    </plugins>
+  </build>
+
+</project>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/faces-config.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/faces-config.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2" 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">
+  <application>
+<!--    <view-handler>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteViewHandlerImpl</view-handler> -->
+    <application-extension>
+      <bridge:excluded-attributes>
+        <bridge:excluded-attribute>myFacesConfigExcludedNamespace.*</bridge:excluded-attribute>
+        <bridge:excluded-attribute>myFacesConfigExcludedKey</bridge:excluded-attribute>
+        <bridge:excluded-attribute>org.apache.myfaces.portlet.faces.tck.WildcardFacesConfigTest.*</bridge:excluded-attribute>
+        <bridge:excluded-attribute>org.apache.myfaces.portlet.faces.tck.ExcludeByFacesConfigRef</bridge:excluded-attribute>
+      </bridge:excluded-attributes>
+    </application-extension>
+  </application>
+  <factory>
+    <application-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteApplicationFactoryImpl</application-factory>
+    <faces-context-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.context.TCK_FacesContextFactoryImpl</faces-context-factory>
+    <lifecycle-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteLifecycleFactoryImpl</lifecycle-factory>
+  </factory>
+  
+  <managed-bean>
+    <managed-bean-name>chapter3Tests</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.portlet.faces.testsuite.tests.chapter_3.Tests</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean> 
+ 
+  <managed-bean>
+    <managed-bean-name>test</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.portlet.faces.testsuite.beans.TestRunnerBean</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean>  
+   
+</faces-config>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/portlet.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/portlet.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/portlet.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<portlet-app version="1.0"
+             xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+
+    <portlet>
+        <portlet-name>chapter3Tests-renderPolicyTest-portlet</portlet-name>
+        <portlet-class>org.apache.myfaces.portlet.faces.testsuite.common.portlet.GenericFacesTestSuitePortlet</portlet-class>
+
+        <init-param>
+          <name>javax.portlet.faces.defaultViewId.view</name>
+          <value>/tests/SingleRequestTest.jsp</value>
+        </init-param>
+
+        <expiration-cache>0</expiration-cache>
+
+       <supports>
+         <mime-type>text/html</mime-type>
+       </supports>
+        <portlet-info>
+                <title>chapter3Tests-renderPolicyTest-portlet - DEFAULT</title>
+        </portlet-info>
+    </portlet>
+
+</portlet-app>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/web.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/WEB-INF/web.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
+<web-app>
+  <display-name>bridge_Test_web_section3-2-render-policy-default</display-name>
+  <context-param>
+    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+    <param-value>.jsp</param-value>
+  </context-param>
+  <context-param>
+    <param-name>javax.portlet.faces.RENDER_POLICY</param-name>
+    <param-value>DEFAULT</param-value>
+  </context-param>
+  
+  
+  <!-- Faces Servlet -->
+  <servlet>
+    <servlet-name>faces</servlet-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  </servlet>
+  
+
+  <!-- Faces Servlet Mappings -->
+  <!-- 
+    In this demo application, I chose to use suffix mapping.  I did this because it makes urls
+    in the portlet world look nicer in the source.  The portlet url should be the same 
+    reguardless.
+  -->
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>*.jsf</url-pattern>
+  </servlet-mapping>
+</web-app>
+

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/tests/SingleRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/tests/SingleRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/tests/SingleRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-default/src/main/webapp/tests/SingleRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/faces-config.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/faces-config.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2" 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">
+  <application>
+<!--    <view-handler>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteViewHandlerImpl</view-handler> -->
+    <application-extension>
+      <bridge:excluded-attributes>
+        <bridge:excluded-attribute>myFacesConfigExcludedNamespace.*</bridge:excluded-attribute>
+        <bridge:excluded-attribute>myFacesConfigExcludedKey</bridge:excluded-attribute>
+        <bridge:excluded-attribute>org.apache.myfaces.portlet.faces.tck.WildcardFacesConfigTest.*</bridge:excluded-attribute>
+        <bridge:excluded-attribute>org.apache.myfaces.portlet.faces.tck.ExcludeByFacesConfigRef</bridge:excluded-attribute>
+      </bridge:excluded-attributes>
+    </application-extension>
+  </application>
+  <factory>
+    <application-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteApplicationFactoryImpl</application-factory>
+    <faces-context-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.context.TCK_FacesContextFactoryImpl</faces-context-factory>
+    <lifecycle-factory>org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteLifecycleFactoryImpl</lifecycle-factory>
+  </factory>
+  
+  <managed-bean>
+    <managed-bean-name>chapter3Tests</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.portlet.faces.testsuite.tests.chapter_3.Tests</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean> 
+  <managed-bean>
+    <managed-bean-name>test</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.portlet.faces.testsuite.beans.TestRunnerBean</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+  </managed-bean>  
+    
+</faces-config>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/portlet.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/portlet.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/portlet.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<portlet-app version="1.0"
+             xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+
+    <portlet>
+        <portlet-name>chapter3Tests-renderPolicyTest-portlet</portlet-name>
+        <portlet-class>org.apache.myfaces.portlet.faces.testsuite.common.portlet.GenericFacesTestSuitePortlet</portlet-class>
+
+        <init-param>
+          <name>javax.portlet.faces.defaultViewId.view</name>
+          <value>/tests/SingleRequestTest.jsp</value>
+        </init-param>
+
+        <expiration-cache>0</expiration-cache>
+
+       <supports>
+         <mime-type>text/html</mime-type>
+       </supports>
+        <portlet-info>
+                <title>chapter3Tests-renderPolicyTest-portlet - NEVER_DELEGATE</title>
+        </portlet-info>
+    </portlet>
+
+</portlet-app>

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/web.xml?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/WEB-INF/web.xml Thu Mar 25 23:42:48 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
+<web-app>
+  <display-name>bridge_Test_web_section3-2-render-policy-never-delegate</display-name>
+  <context-param>
+    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+    <param-value>.jsp</param-value>
+  </context-param>
+  <context-param>
+    <param-name>javax.portlet.faces.RENDER_POLICY</param-name>
+    <param-value>NEVER_DELEGATE</param-value>
+  </context-param>
+  
+  
+  <!-- Faces Servlet -->
+  <servlet>
+    <servlet-name>faces</servlet-name>
+    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  </servlet>
+  
+
+  <!-- Faces Servlet Mappings -->
+  <!-- 
+    In this demo application, I chose to use suffix mapping.  I did this because it makes urls
+    in the portlet world look nicer in the source.  The portlet url should be the same 
+    reguardless.
+  -->
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>*.jsf</url-pattern>
+  </servlet-mapping>
+</web-app>
+

Added: myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/tests/SingleRequestTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/tests/SingleRequestTest.jsp?rev=927641&view=auto
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/tests/SingleRequestTest.jsp (added)
+++ myfaces/portlet-bridge/testsuite/trunk/portlet-bridge-testsuite-section3-2-render-policy-never-delegate/src/main/webapp/tests/SingleRequestTest.jsp Thu Mar 25 23:42:48 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<%@ page contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+     
+<f:view>
+  <html>
+    <head>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+      <title>JSR 301 Single Request TCK Test</title>
+    </head>
+    <body>
+      <h:form>
+        <h:panelGrid columns="1">
+          <h:outputText escape = "false" value="#{test.renderTestResult}"/>
+        </h:panelGrid>
+      </h:form>
+    </body>
+  </html>
+</f:view>