myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch 2.3.x updated: MYFACES-4303 f:websocket does not call p:ajax listeners
Date Fri, 04 Oct 2019 15:58:25 GMT
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch 2.3.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3.x by this push:
     new 6d18e02  MYFACES-4303 f:websocket does not call p:ajax listeners
6d18e02 is described below

commit 6d18e027b53636050c08d9b8493af0e148e30893
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Fri Oct 4 17:58:18 2019 +0200

    MYFACES-4303 f:websocket does not call p:ajax listeners
---
 .../java/org/apache/myfaces/push/WebsocketComponentRenderer.java   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java b/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
index 81dce54..813dae1 100644
--- a/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
+++ b/impl/src/main/java/org/apache/myfaces/push/WebsocketComponentRenderer.java
@@ -43,6 +43,7 @@ import org.apache.myfaces.push.cdi.WebsocketChannelTokenBuilderBean;
 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.HtmlRendererUtils;
 import org.apache.myfaces.shared.renderkit.html.util.ResourceUtils;
 
 /**
@@ -82,6 +83,12 @@ public class WebsocketComponentRenderer extends Renderer implements ComponentSys
     }
 
     @Override
+    public void decode(FacesContext facesContext, UIComponent component)
+    {
+        HtmlRendererUtils.decodeClientBehaviors(facesContext, component);
+    }
+
+    @Override
     public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException
     {
         ResponseWriter writer = facesContext.getResponseWriter();


Mime
View raw message