diff --git a/spring-webflow-samples/booking-portlet-faces/pluto-runtime-libs/com.springsource.com.sun.el-1.0.0.jar b/spring-webflow-samples/booking-portlet-faces/pluto-runtime-libs/com.springsource.com.sun.el-1.0.0.jar deleted file mode 100644 index cc57de69..00000000 Binary files a/spring-webflow-samples/booking-portlet-faces/pluto-runtime-libs/com.springsource.com.sun.el-1.0.0.jar and /dev/null differ diff --git a/spring-webflow-samples/booking-portlet-faces/pluto-runtime-libs/com.springsource.javax.el-1.0.0.jar b/spring-webflow-samples/booking-portlet-faces/pluto-runtime-libs/com.springsource.javax.el-1.0.0.jar deleted file mode 100644 index d562de53..00000000 Binary files a/spring-webflow-samples/booking-portlet-faces/pluto-runtime-libs/com.springsource.javax.el-1.0.0.jar and /dev/null differ diff --git a/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml b/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml deleted file mode 100644 index 8a0d7056..00000000 --- a/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - com.sun.facelets.FaceletViewHandler - - \ No newline at end of file diff --git a/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/web.xml b/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/web.xml index 7191aa2b..190391ba 100644 --- a/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/web.xml +++ b/spring-webflow-samples/booking-portlet-faces/src/main/webapp/WEB-INF/web.xml @@ -50,7 +50,7 @@ swf-booking-faces - org.apache.pluto.core.PortletServlet + org.apache.pluto.container.driver.PortletServlet portlet-name swf-booking-faces diff --git a/spring-webflow-samples/booking-portlet-mvc/ivy.xml b/spring-webflow-samples/booking-portlet-mvc/ivy.xml index 9222393f..68c46e87 100644 --- a/spring-webflow-samples/booking-portlet-mvc/ivy.xml +++ b/spring-webflow-samples/booking-portlet-mvc/ivy.xml @@ -21,7 +21,7 @@ - + diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.jsp b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.jsp index d4a91c60..d16da7fa 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.jsp +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.jsp @@ -1,5 +1,5 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> +<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/reviewBooking.jsp b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/reviewBooking.jsp index 4dcea977..d95fbaa2 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/reviewBooking.jsp +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/booking/reviewBooking.jsp @@ -1,5 +1,5 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> +<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.jsp b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.jsp index d8be01ee..10620e27 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.jsp +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.jsp @@ -1,5 +1,5 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> +<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotel.jsp b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotel.jsp index 6a237fbb..a617049f 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotel.jsp +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotel.jsp @@ -1,5 +1,5 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> +<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotels.jsp b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotels.jsp index ad86c5ed..ee66c034 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotels.jsp +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/main/reviewHotels.jsp @@ -1,5 +1,5 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> +<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

Hotel Results

diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/view/intro.jsp b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/view/intro.jsp index 7e345b28..1fe0053f 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/view/intro.jsp +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/flows/view/intro.jsp @@ -1,5 +1,5 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %> +<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%>

Welcome to Spring Travel

diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/portlet.xml b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/portlet.xml index 56e9734f..c3fcc9fd 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/portlet.xml +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/portlet.xml @@ -1,8 +1,8 @@ + xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" + version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"> swf-booking-mvc diff --git a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/web.xml b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/web.xml index 96b3c98b..cfc6aa1d 100644 --- a/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/web.xml +++ b/spring-webflow-samples/booking-portlet-mvc/src/main/webapp/WEB-INF/web.xml @@ -51,7 +51,7 @@ swf-booking-mvc - org.apache.pluto.core.PortletServlet + org.apache.pluto.container.driver.PortletServlet portlet-name swf-booking-mvc diff --git a/spring-webflow/src/main/java/org/springframework/webflow/mvc/portlet/FlowHandlerAdapter.java b/spring-webflow/src/main/java/org/springframework/webflow/mvc/portlet/FlowHandlerAdapter.java index ce0a9cee..e6d58e7d 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/mvc/portlet/FlowHandlerAdapter.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/mvc/portlet/FlowHandlerAdapter.java @@ -25,6 +25,7 @@ import javax.portlet.EventRequest; import javax.portlet.EventResponse; import javax.portlet.PortletModeException; import javax.portlet.PortletRequest; +import javax.portlet.PortletRequestDispatcher; import javax.portlet.PortletResponse; import javax.portlet.PortletSession; import javax.portlet.RenderRequest; @@ -156,12 +157,20 @@ public class FlowHandlerAdapter extends PortletContentGenerator implements Handl } public void handleEvent(EventRequest request, EventResponse response, Object handler) throws Exception { - throw new UnsupportedOperationException("Auto-generated method stub"); + // keep render params + response.setRenderParameters(request); } public ModelAndView handleResource(ResourceRequest request, ResourceResponse response, Object handler) throws Exception { - throw new UnsupportedOperationException("Auto-generated method stub"); + // equivalent to Portlet 2.0 GenericPortlet + if (request.getResourceID() != null) { + PortletRequestDispatcher rd = this.getPortletContext().getRequestDispatcher(request.getResourceID()); + if (rd != null) { + rd.forward(request, response); + } + } + return null; } // subclassing hooks