portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portals-bridges/myfaces/src/java/org/apache/portals/bridges/myfaces FacesPortlet.java
Date Mon, 29 Nov 2004 17:56:36 GMT
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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message