You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/09/17 12:30:00 UTC
[myfaces-trinidad] 02/07: TRINIDAD-2128 - Fix for library loading
in a portal
This is an automated email from the ASF dual-hosted git repository.
deki pushed a commit to branch 1.2.12.5.0-branch
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git
commit 2e323568204d1d3dd25fb568fc5a8a021c49b06b
Author: Scott Bryan <so...@apache.org>
AuthorDate: Tue Aug 16 21:30:31 2011 +0000
TRINIDAD-2128 - Fix for library loading in a portal
---
.../renderkit/core/xhtml/XhtmlUtils.java | 54 +++++++++++-----------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java b/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
index a5aaf91..56e9c44 100644
--- a/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
+++ b/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
@@ -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");
}
--
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.