deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [1/2] deltaspike git commit: DELTASPIKE-971 Somehow IE doesn't execute the script if commented by JSF
Date Sun, 02 Aug 2015 19:26:50 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master aa2d73f85 -> 8d9a276d9


DELTASPIKE-971 Somehow IE doesn't execute the script if commented by JSF

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/bf5dc623
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/bf5dc623
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/bf5dc623

Branch: refs/heads/master
Commit: bf5dc6239e073c2f1152d48c4962ea2bf3275d2a
Parents: aa2d73f
Author: Thomas Andraschko <tandraschko@apache.org>
Authored: Sun Aug 2 20:20:47 2015 +0200
Committer: Thomas Andraschko <tandraschko@apache.org>
Committed: Sun Aug 2 20:20:47 2015 +0200

----------------------------------------------------------------------
 .../jsf/impl/component/window/WindowIdHtmlRenderer.java         | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/bf5dc623/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/component/window/WindowIdHtmlRenderer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/component/window/WindowIdHtmlRenderer.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/component/window/WindowIdHtmlRenderer.java
index 66bbeb7..59bdc0f 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/component/window/WindowIdHtmlRenderer.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/component/window/WindowIdHtmlRenderer.java
@@ -73,8 +73,7 @@ public class WindowIdHtmlRenderer extends Renderer
         }
 
         ResponseWriter writer = context.getResponseWriter();
-        writer.startElement("script", component);
-        writer.writeAttribute("type", "text/javascript", null);
+        writer.write("<script type=\"text/javascript\">");
         writer.write("(function(){");
         writer.write("dswh.init('" + windowId + "','" + clientWindowRenderMode.name() + "',{");
 
@@ -97,7 +96,7 @@ public class WindowIdHtmlRenderer extends Renderer
 
         writer.write("});");
         writer.write("})();");
-        writer.endElement("script");
+        writer.write("</script>");
     }
 
     protected String secureWindowId(String windowId)


Mime
View raw message