portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl PageAggregatorImpl.java
Date Thu, 02 Sep 2004 21:23:48 GMT
jford       2004/09/02 14:23:48

  Modified:    portal/src/java/org/apache/jetspeed/aggregator/impl
                        PageAggregatorImpl.java
  Log:
  Make sure to add decorator to portlet when in Max mode
  
  Revision  Changes    Path
  1.13      +11 -1     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PageAggregatorImpl.java
  
  Index: PageAggregatorImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/impl/PageAggregatorImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- PageAggregatorImpl.java	2 Sep 2004 17:09:15 -0000	1.12
  +++ PageAggregatorImpl.java	2 Sep 2004 21:23:48 -0000	1.13
  @@ -162,6 +162,16 @@
                       context.getRequest().setAttribute("org.apache.jetspeed.maximized.Fragment",
fragment);
                       context.getRequest().setAttribute("org.apache.jetspeed.maximized.Layout",
page.getRootFragment());
                       
  +                    if(fragment.getDecorator() != null)
  +                    {
  +                        log.debug("decorator=" + currentFragment.getDecorator());
  +            	        addStyle(context, fragment.getDecorator(), Fragment.PORTLET);
  +                    } 
  +                    else 
  +                    {
  +                        log.debug("no decorator for defined for portlet fragement," + currentFragment.getId()+".
 So using page default, "+defaultPortletDecorator);
  +                        addStyle(context, defaultPortletDecorator, Fragment.PORTLET);
  +                    }
                       renderer.renderNow(page.getRootFragment(), context);
                       
                       context.getRequest().removeAttribute("org.apache.jetspeed.maximized.Fragment");
  
  
  

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