myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson (Updated) (JIRA)" <>
Subject [jira] [Updated] (TRINIDAD-2230) adjustments to the UIXComponentBase subscribeToEvent and unsubscribeFromEvent implementation
Date Tue, 06 Mar 2012 03:51:12 GMT


Andrew Robinson updated TRINIDAD-2230:

       Resolution: Fixed
    Fix Version/s: 2.0.2-core
           Status: Resolved  (was: Patch Available)
> adjustments to the UIXComponentBase subscribeToEvent and unsubscribeFromEvent implementation
> --------------------------------------------------------------------------------------------
>                 Key: TRINIDAD-2230
>                 URL:
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: n/a
>            Reporter: Gary VanMatre
>             Fix For: 2.0.2-core
>         Attachments: UIXComponentBase.patch
> These new JSF 2 methods on the UIComponent (subscribeToEvent and unsubscribeFromEvent)
has a very strange contract.  The formal parameter for the listener is of type ComponentSystemEventListener.
 However, the method to query for the registered listeners  getListenersForEventClass returns
a list of SystemEventListener.  The ComponentSystemEventListener and SystemEventListener do
not have a common heritage so the subscribeToEvent and unsubscribeFromEvent creates a wrapper
that implements the SystemEventListener.
> Since the resultant objects from getListenersForEventClass are a wrapper, there is no
way to determine if the original listener added by calling subscribeToEvent is in the list
of wrapper objects since the wrapper is a private nested class and doesn't necessary implement
the ComponentSystemEventListener interfaces.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message