[gatein-commits] gatein SVN: r1920 - portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Mar 1 18:26:41 EST 2010


Author: mwringe
Date: 2010-03-01 18:26:41 -0500 (Mon, 01 Mar 2010)
New Revision: 1920

Modified:
   portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
Log:
Set the transformer for the markupheaders to output html instead of xml. This will fix an issue that arose with the script element self closing (GTNPORTAL-764). Note that this will create html, and not xhtml, which will need to be fixed.

Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java	2010-03-01 23:13:03 UTC (rev 1919)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java	2010-03-01 23:26:41 UTC (rev 1920)
@@ -370,6 +370,7 @@
       {
          Transformer transformer = TransformerFactory.newInstance().newTransformer();
          transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
+         transformer.setOutputProperty(OutputKeys.METHOD, "html");
 
          for (Element element : extraMarkupHeaders)
          {



More information about the gatein-commits mailing list