[
https://issues.apache.org/jira/browse/MYFACES-4385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17552883#comment-17552883
]
Volodymyr Siedlecki commented on MYFACES-4385:
----------------------------------------------
[https://github.com/apache/myfaces/blob/myfaces-core-module-4.0.0-RC1/api/src/main/java/jakarta/faces/component/UIComponent.java#L771-L797]
|// Deal with contains? Spec is silent
listeners.add(listener);
|
I think we should add a check to see if it's already added? [~tandraschko]
___
As for getListenersForEventClass, we don't return null. Only an empty list:
[https://github.com/apache/myfaces/blob/myfaces-core-module-4.0.0-RC1/api/src/main/java/jakarta/faces/component/UIComponent.java#L443-L446]
> Faces 4.0: make UIComponent#subscribeToEvent() more convenient 4.0
> -------------------------------------------------------------------
>
> Key: MYFACES-4385
> URL: https://issues.apache.org/jira/browse/MYFACES-4385
> Project: MyFaces Core
> Issue Type: Improvement
> Reporter: Thomas Andraschko
> Assignee: Thomas Andraschko
> Priority: Major
> Fix For: 4.0.0-RC1
>
>
> https://github.com/jakartaee/faces/issues/1558
--
This message was sent by Atlassian Jira
(v8.20.7#820007)