You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by so...@apache.org on 2011/08/22 08:47:10 UTC
svn commit: r1160124 -
/myfaces/trinidad/branches/1.2.12.6.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
Author: sobryan
Date: Mon Aug 22 06:47:09 2011
New Revision: 1160124
URL: http://svn.apache.org/viewvc?rev=1160124&view=rev
Log:
TRINIDAD-2128 - Fix for library loading in a portal
Modified:
myfaces/trinidad/branches/1.2.12.6.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
Modified: myfaces/trinidad/branches/1.2.12.6.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.12.6.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java?rev=1160124&r1=1160123&r2=1160124&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.12.6.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java (original)
+++ myfaces/trinidad/branches/1.2.12.6.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java Mon Aug 22 06:47:09 2011
@@ -167,35 +167,35 @@ public class XhtmlUtils
// problems when resizing windows - but we're done with Netscape 4)
libURL = context.getExternalContext().encodeResourceURL(libURL.toString());
- if (XhtmlConstants.FACET_PORTLET.equals(rc.getOutputMode()))
- {
- if (rc.getProperties().get(_PORTLET_LIB_TABLE_KEY) == null)
- {
- rc.getProperties().put(_PORTLET_LIB_TABLE_KEY, Boolean.TRUE);
- writer.writeText("var _uixJSL;" +
- "if(!_uixJSL)_uixJSL={};" +
- "function _addJSL(u)" +
- "{" +
- "if(!_uixJSL[u])" +
- "{" +
- "_uixJSL[u]=1;" +
- "document.write(\"<scrip\"+" +
- "\"t src=\\\"\"+u+" +
- "\"\\\"></scrip\"+" +
- "\"t>\")" +
- "}" +
- "}",
- null);
- }
- writer.writeText("_addJSL(\"", null);
- writer.writeText(libURL, null);
- writer.writeText("\")", null);
- }
- else
- {
+// if (XhtmlConstants.FACET_PORTLET.equals(rc.getOutputMode()))
+// {
+// if (rc.getProperties().get(_PORTLET_LIB_TABLE_KEY) == null)
+// {
+// rc.getProperties().put(_PORTLET_LIB_TABLE_KEY, Boolean.TRUE);
+// writer.writeText("var _uixJSL;" +
+// "if(!_uixJSL)_uixJSL={};" +
+// "function _addJSL(u)" +
+// "{" +
+// "if(!_uixJSL[u])" +
+// "{" +
+// "_uixJSL[u]=1;" +
+// "document.write(\"<scrip\"+" +
+// "\"t src=\\\"\"+u+" +
+// "\"\\\"></scrip\"+" +
+// "\"t>\")" +
+// "}" +
+// "}",
+// null);
+// }
+// writer.writeText("_addJSL(\"", null);
+// writer.writeText(libURL, null);
+// writer.writeText("\")", null);
+// }
+// else
+// {
// The "safe" case: just write out the source
writer.writeURIAttribute("src", libURL, null);
- }
+// }
writer.endElement("script");
}