myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary VanMatre (Created) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TRINIDAD-2230) adjustments to the UIXComponentBase subscribeToEvent and unsubscribeFromEvent implementation
Date Thu, 01 Mar 2012 22:48:57 GMT
adjustments to the UIXComponentBase subscribeToEvent and unsubscribeFromEvent implementation
--------------------------------------------------------------------------------------------

                 Key: TRINIDAD-2230
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2230
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 2.0.1-core
         Environment: n/a
            Reporter: Gary VanMatre


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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message