deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject deltaspike git commit: DELTASPIKE-830 Now active ViewAccessScoped context during restore view phase
Date Wed, 15 Jul 2015 14:00:38 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 8f36723cb -> 94d71df33


DELTASPIKE-830 Now active ViewAccessScoped context during restore view phase

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

Branch: refs/heads/master
Commit: 94d71df337ee3a3b681eb1c5a55e64c014853c63
Parents: 8f36723
Author: tandraschko <tandraschko@apache.org>
Authored: Wed Jul 15 16:00:19 2015 +0200
Committer: tandraschko <tandraschko@apache.org>
Committed: Wed Jul 15 16:00:19 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/94d71df3/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 1232c60..a952606 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
@@ -58,7 +58,7 @@ public class WindowIdHtmlRenderer extends Renderer
         super.encodeBegin(context, component);
 
         lazyInit();
-        
+
         String windowId = clientWindow.getWindowId(context);
         String clientWindowRenderMode = clientWindowConfig.getClientWindowRenderMode(context).name();
 
@@ -73,8 +73,9 @@ public class WindowIdHtmlRenderer extends Renderer
         ResponseWriter writer = context.getResponseWriter();
         writer.startElement("script", component);
         writer.writeAttribute("type", "text/javascript", null);
+        writer.write("(function(){");
         writer.write("dswh.init('" + windowId + "','" + clientWindowRenderMode + "'");
-        
+
         // see #729
         if (clientWindow.isInitialRedirectSupported(context))
         {
@@ -91,6 +92,7 @@ public class WindowIdHtmlRenderer extends Renderer
         }
 
         writer.write(");");
+        writer.write("})();");
         writer.endElement("script");
     }
 


Mime
View raw message