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:29:50 UTC

[myfaces-trinidad] 06/33: 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 2.0.0.x-branch
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git

commit 8aa1adde8131d7d451ff6a8dbb23c6ab2a90c73e
Author: Scott Bryan <so...@apache.org>
AuthorDate: Tue May 8 23:26:36 2012 +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 20d0547..aee2170 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
@@ -173,35 +173,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>.