portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r1662789 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/DecorationValve.java
Date Fri, 27 Feb 2015 18:48:12 GMT
Author: taylor
Date: Fri Feb 27 18:48:12 2015
New Revision: 1662789

URL: http://svn.apache.org/r1662789
Log:
JS2-1314: set attribute to downstream consumers to determine if layout is responsive

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/DecorationValve.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/DecorationValve.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/DecorationValve.java?rev=1662789&r1=1662788&r2=1662789&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/DecorationValve.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/DecorationValve.java
Fri Feb 27 18:48:12 2015
@@ -216,6 +216,7 @@ public class DecorationValve extends Abs
         {
             theme.init(page, decorationFactory, requestContext);
             requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_ATTRIBUTE, theme);
+            requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_RESPONSIVE, new
Boolean(theme.getPageLayoutDecoration().getProperty("responsive")));
             boolean solo = isSoloMode(requestContext);            
             SessionPathResolverCache sessionPathResolver = new SessionPathResolverCache(
requestContext.getRequest().getSession() );
             initDepthFragmentDecorations(requestContext, theme, page.getRootFragment(),
@@ -240,6 +241,7 @@ public class DecorationValve extends Abs
         }
         theme = decorationFactory.getTheme(page, requestContext);        
         requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_ATTRIBUTE, theme);
+        requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_RESPONSIVE, new Boolean(theme.getPageLayoutDecoration().getProperty("responsive")));
         if ( fragments == null || fragments.size() == 0 )
         {
             ContentFragment rootFragment = page.getRootFragment();



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message