Author: thomas.heute(a)jboss.com
Date: 2007-03-13 07:45:23 -0400 (Tue, 13 Mar 2007)
New Revision: 6651
Modified:
trunk/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java
Log:
Fix: header content script element was empty [JBPORTAL-1317]
Modified:
trunk/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java
===================================================================
---
trunk/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java 2007-03-13
05:39:05 UTC (rev 6650)
+++
trunk/core/src/main/org/jboss/portal/core/metadata/portlet/ScriptElementMetaData.java 2007-03-13
11:45:23 UTC (rev 6651)
@@ -62,7 +62,7 @@
{
attributes.add(new MarkupAttribute("src", srcAttribute,
MarkupAttribute.Type.URI));
}
- return new MarkupElement("script", null, true,
(MarkupAttribute[])attributes.toArray(new MarkupAttribute[attributes.size()]));
+ return new MarkupElement("script", getBodyContent(), true,
(MarkupAttribute[])attributes.toArray(new MarkupAttribute[attributes.size()]));
}
public String getSrcAttribute()