taylor 2004/11/29 09:56:36
Modified:
portals-bridges/myfaces/src/java/org/apache/portals/bridges/myfaces
FacesPortlet.java
Log:
patch from Stephan Hesmer to allow for view change in render phase
Revision Changes Path
1.13 +3 -2
jakarta-jetspeed-2/portals-bridges/myfaces/src/java/org/apache/portals/bridges/myfaces/FacesPortlet.java
Index: FacesPortlet.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portals-bridges/myfaces/src/java/org/apache/portals/bridges/myfaces/FacesPortlet.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- FacesPortlet.java 27 Nov 2004 17:31:32 -0000 1.12
+++ FacesPortlet.java 29 Nov 2004 17:56:36 -0000 1.13
@@ -445,7 +445,6 @@
ActionResponse actionResponse = (ActionResponse)response;
// actionResponse.setRenderParameter(viewId,
context.getViewRoot().getViewId()); // get the navigation change
- request.getPortletSession().setAttribute(viewId,
context.getViewRoot().getViewId(), PortletSession.PORTLET_SCOPE);
}
else if (renderRequest)
{
@@ -462,7 +461,9 @@
else
{
throw new PortletException("Request must be of type
ActionRequest or RenderRequest");
- }
+ }
+ request.getPortletSession().setAttribute(viewId,
context.getViewRoot().getViewId(), PortletSession.PORTLET_SCOPE);
+
}
catch (FacesException e)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]