You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Max Starets (JIRA)" <de...@myfaces.apache.org> on 2010/11/17 16:29:15 UTC

[jira] Created: (MYFACES-2973) UIComponent.unsubscribeFromEvent calls getApplication().unsubscribeFromEvent() instead of modifying _systemEventListenerClassMap

UIComponent.unsubscribeFromEvent calls getApplication().unsubscribeFromEvent() instead of modifying _systemEventListenerClassMap
--------------------------------------------------------------------------------------------------------------------------------

                 Key: MYFACES-2973
                 URL: https://issues.apache.org/jira/browse/MYFACES-2973
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.0.3-SNAPSHOT
            Reporter: Max Starets


UIComponent.unsubscribeFromEvent() calls getFacesContext().getApplication().unsubscribeFromEvent(), while the event listener added by subscribeToEvent() still remains in _systemEventListenerClassMap. This means that the component system event listener cannot be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-2973) UIComponent.unsubscribeFromEvent calls getApplication().unsubscribeFromEvent() instead of modifying _systemEventListenerClassMap

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-2973.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3-SNAPSHOT
         Assignee: Leonardo Uribe

I checked the javadoc again, and in this moment given the current implementation it is more understandable. In theory, it is supposed a wrapper should be used to hold listener references, to prevent serialize component instances on the state.

> UIComponent.unsubscribeFromEvent calls getApplication().unsubscribeFromEvent() instead of modifying _systemEventListenerClassMap
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2973
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2973
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3-SNAPSHOT
>            Reporter: Max Starets
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.3-SNAPSHOT
>
>
> UIComponent.unsubscribeFromEvent() calls getFacesContext().getApplication().unsubscribeFromEvent(), while the event listener added by subscribeToEvent() still remains in _systemEventListenerClassMap. This means that the component system event listener cannot be removed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.