[portal-commits] JBoss Portal SVN: r5753 - branches/JBoss_Portal_Branch_2_4/theme/src/main/org/jboss/portal/theme/tag

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Mon Dec 4 12:41:50 EST 2006


Author: roy.russo at jboss.com
Date: 2006-12-04 12:41:49 -0500 (Mon, 04 Dec 2006)
New Revision: 5753

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

Modified: branches/JBoss_Portal_Branch_2_4/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_4/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java	2006-12-04 17:39:23 UTC (rev 5752)
+++ branches/JBoss_Portal_Branch_2_4/theme/src/main/org/jboss/portal/theme/tag/HeaderContentTagHandler.java	2006-12-04 17:41:49 UTC (rev 5753)
@@ -25,6 +25,7 @@
 import org.jboss.portal.theme.LayoutConstants;
 import org.jboss.portal.theme.page.PageResult;
 import org.jboss.portal.theme.page.WindowResult;
+import org.jboss.portal.portlet.Properties;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.jsp.JspException;
@@ -69,6 +70,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)
          {
             out.println(result.getHeaderContent());




More information about the portal-commits mailing list