portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl PortletRendererImpl.java
Date Fri, 03 Sep 2004 13:25:14 GMT
weaver      2004/09/03 06:25:14

  Modified:    portal/src/java/org/apache/jetspeed/aggregator/impl
                        PortletRendererImpl.java
  Log:
  Use constant for page
  
  Revision  Changes    Path
  1.20      +4 -3      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletRendererImpl.java
  
  Index: PortletRendererImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletRendererImpl.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PortletRendererImpl.java	6 Aug 2004 17:00:02 -0000	1.19
  +++ PortletRendererImpl.java	3 Sep 2004 13:25:14 -0000	1.20
  @@ -20,6 +20,7 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  +import org.apache.jetspeed.PortalReservedParameters;
   import org.apache.jetspeed.aggregator.ContentDispatcher;
   import org.apache.jetspeed.aggregator.ContentDispatcherCtrl;
   import org.apache.jetspeed.aggregator.FailedToRenderFragmentException;
  @@ -92,7 +93,7 @@
   
               servletRequest.setAttribute("org.apache.jetspeed.ContentDispatcher",getDispatcher(request,true));
               servletRequest.setAttribute("org.apache.jetspeed.Fragment",fragment);
  -            servletRequest.setAttribute("org.apache.jetspeed.Page",request.getPage());
  +            servletRequest.setAttribute(PortalReservedParameters.PAGE_ATTRIBUTE_KEY,request.getPage());
   
               // should we decorate here instead of rendering Portlet ?
               container.renderPortlet(portletWindow, servletRequest, servletResponse);
  @@ -107,7 +108,7 @@
               {
                   servletRequest.removeAttribute("org.apache.jetspeed.ContentDispatcher");
                   servletRequest.removeAttribute("org.apache.jetspeed.Fragment");
  -                servletRequest.removeAttribute("org.apache.jetspeed.Page");
  +                servletRequest.removeAttribute(PortalReservedParameters.PAGE_ATTRIBUTE_KEY);
               }
           }
       }
  
  
  

---------------------------------------------------------------------
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