myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: restored old behavior
Date Fri, 04 Oct 2019 14:36:37 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new c868cb6  restored old behavior
c868cb6 is described below

commit c868cb61c0ca25eede240dd2e978a0462639a453
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Fri Oct 4 16:36:29 2019 +0200

    restored old behavior
---
 .../apache/myfaces/push/AbstractWebsocketComponent.java    | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/push/AbstractWebsocketComponent.java b/impl/src/main/java/org/apache/myfaces/push/AbstractWebsocketComponent.java
index a440cac..11fe792 100644
--- a/impl/src/main/java/org/apache/myfaces/push/AbstractWebsocketComponent.java
+++ b/impl/src/main/java/org/apache/myfaces/push/AbstractWebsocketComponent.java
@@ -19,6 +19,7 @@
 
 package org.apache.myfaces.push;
 
+import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import javax.faces.component.UIOutput;
@@ -36,7 +37,15 @@ import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFPropert
         defaultRendererType="org.apache.myfaces.WebsocketComponent")
 public abstract class AbstractWebsocketComponent extends UIOutput implements ClientBehaviorHolder
 {
-    
+    private static final Collection<String> EVERY_EVENT = Collections.unmodifiableList(new
ArrayList<String>()
+    {
+        @Override
+        public boolean contains(Object object)
+        {
+            return true;
+        }
+    });
+
     @JSFProperty
     public abstract String getChannel();
     
@@ -61,7 +70,6 @@ public abstract class AbstractWebsocketComponent extends UIOutput implements
Cli
     @Override
     public Collection<String> getEventNames()
     {
-        return Collections.emptyList();
+        return EVERY_EVENT;
     }
-    
 }


Mime
View raw message