myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1794902 - /myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
Date Thu, 11 May 2017 23:18:33 GMT
Author: lu4242
Date: Thu May 11 23:18:32 2017
New Revision: 1794902

URL: http://svn.apache.org/viewvc?rev=1794902&view=rev
Log:
small fix websocket force render jsf.js on Renderer

Modified:
    myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java

Modified: myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java?rev=1794902&r1=1794901&r2=1794902&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
(original)
+++ myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
Thu May 11 23:18:32 2017
@@ -42,6 +42,7 @@ import org.apache.myfaces.push.cdi.Webso
 import org.apache.myfaces.push.cdi.WebsocketSessionBean;
 import org.apache.myfaces.push.cdi.WebsocketViewBean;
 import org.apache.myfaces.shared.renderkit.html.HTML;
+import org.apache.myfaces.shared.renderkit.html.util.ResourceUtils;
 
 /**
  *
@@ -83,6 +84,8 @@ public class WebsocketComponentRenderer
     {
         ResponseWriter writer = facesContext.getResponseWriter();
 
+        ResourceUtils.renderDefaultJsfJsInlineIfNecessary(facesContext, writer);
+        
         // Render the tag that will be embedded into the DOM tree that helps to detect if
the message
         // must be processed or not and if the connection must be closed.
         writer.startElement(HTML.DIV_ELEM, component);



Mime
View raw message