myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan-Kees van Andel (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2509) @ListenerFor not processed for global system events
Date Tue, 26 Jan 2010 08:50:34 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804952#action_12804952
] 

Jan-Kees van Andel commented on MYFACES-2509:
---------------------------------------------

Hrm, it looks like the JavaDoc can be interpreted in multiple ways.

What I read, is that it should be possible for classes that implement SystemEventListener,
to listen to SystemEvents.

For example: http://java.sun.com/javaee/javaserverfaces/2.0/docs/api/javax/faces/event/PostConstructApplicationEvent.html

The current implementation cannot deal with this event, because it occurs before the ApplicationImpl
code is invoked (there is no component tree at that time). For this reason, we need to check
it @startup.

But because its so ambiguous, I suggest to leave it out of the beta release.

> @ListenerFor not processed for global system events
> ---------------------------------------------------
>
>                 Key: MYFACES-2509
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2509
>             Project: MyFaces Core
>          Issue Type: New Feature
>          Components: JSR-314
>    Affects Versions: 2.0.0-alpha
>            Reporter: Jan-Kees van Andel
>            Assignee: Jan-Kees van Andel
>         Attachments: ListenerFor_support.patch
>
>
> We currently don't process @ListenerFor and @ListenerFor annotations on non-component
types.
> This is specified in the spec for global system events, see:
> http://java.sun.com/javaee/javaserverfaces/2.0/docs/api/index.html?javax/faces/event/ListenerFor.html
> It would be nice to have it in the beta.

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


Mime
View raw message