Author: mputz
Date: 2011-02-10 04:49:40 -0500 (Thu, 10 Feb 2011)
New Revision: 5868
Modified:
epp/portal/branches/EPP_5_1_0_GA_JBEPP-795/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
Log:
JBEPP-795: Patch for GTNPORTAL-1753: The header will be duplicated if contains a portlet
adding more one resource to header
Modified:
epp/portal/branches/EPP_5_1_0_GA_JBEPP-795/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
===================================================================
---
epp/portal/branches/EPP_5_1_0_GA_JBEPP-795/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java 2011-02-10
08:39:41 UTC (rev 5867)
+++
epp/portal/branches/EPP_5_1_0_GA_JBEPP-795/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java 2011-02-10
09:49:40 UTC (rev 5868)
@@ -429,9 +429,9 @@
List<String> markupHeaders = new ArrayList<String>();
if (extraMarkupHeaders != null && !extraMarkupHeaders.isEmpty())
{
- StringWriter sw = new StringWriter();
for (Element element : extraMarkupHeaders)
{
+ StringWriter sw = new StringWriter();
DOMSerializer.serialize(element, sw);
markupHeaders.add(sw.toString());
}