[portal-commits] JBoss Portal SVN: r5752 - trunk/theme/src/main/org/jboss/portal/theme/tag

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Mon Dec 4 12:39:24 EST 2006


Author: roy.russo at jboss.com
Date: 2006-12-04 12:39:23 -0500 (Mon, 04 Dec 2006)
New Revision: 5752

Modified:
   trunk/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java
Log:
JBPORTAL-1149 - tag header injection fix.

Modified: trunk/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java
===================================================================
--- trunk/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java	2006-12-04 17:31:13 UTC (rev 5751)
+++ trunk/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java	2006-12-04 17:39:23 UTC (rev 5752)
@@ -22,6 +22,7 @@
  ******************************************************************************/
 package org.jboss.portal.theme.tag;
 
+import org.jboss.portal.portlet.Properties;
 import org.jboss.portal.theme.LayoutConstants;
 import org.jboss.portal.theme.page.PageResult;
 import org.jboss.portal.theme.page.WindowResult;
@@ -68,6 +69,13 @@
       {
          String windowID = (String)i.next();
          WindowResult result = page.getWindowResult(windowID);
+         
+         Properties responseProperties = result.getResponseProperties();
+         String headerContentProperty = responseProperties.getProperty("HEADER_CONTENT");
+         if (headerContentProperty != null)
+         {
+            out.println(headerContentProperty);
+         }
 
          if (result.getHeaderContent() != null)
          {




More information about the portal-commits mailing list