taylor      2004/05/26 14:16:27

  Modified:    portal/src/java/org/apache/jetspeed/aggregator/impl
                        PortletAggregatorImpl.java
  Log:
  allow for entity to be passed on request param or attribute
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.2       +7 -2      
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletAggregatorImpl.java
  
  Index: PortletAggregatorImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletAggregatorImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PortletAggregatorImpl.java        17 Mar 2004 22:19:53 -0000      1.1
  +++ PortletAggregatorImpl.java        26 May 2004 21:16:27 -0000      1.2
  @@ -61,7 +61,12 @@
           Fragment fragment = new FragmentImpl(); // TODO: fragment factory
           fragment.setType(Fragment.PORTLET);
           
fragment.setName(context.getRequestParameter(PortalReservedParameters.PORTLET));
  -        
fragment.setId(context.getRequestParameter(PortalReservedParameters.PORTLET_ENTITY));  
          
  +        String entity = 
context.getRequestParameter(PortalReservedParameters.PORTLET_ENTITY);
  +        if (entity == null)
  +        {
  +            entity = 
(String)context.getAttribute(PortalReservedParameters.PORTLET_ENTITY);          
  +        }
  +        fragment.setId(entity);            
           renderer.renderNow(fragment, context);
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to