You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "dennis hoersch (JIRA)" <de...@myfaces.apache.org> on 2012/06/04 13:35:23 UTC

[jira] [Created] (MYFACES-3559) Add 'ListenerFor' for system events as annotation configuration

dennis hoersch created MYFACES-3559:
---------------------------------------

             Summary: Add 'ListenerFor' for system events as annotation configuration
                 Key: MYFACES-3559
                 URL: https://issues.apache.org/jira/browse/MYFACES-3559
             Project: MyFaces Core
          Issue Type: Improvement
    Affects Versions: 2.1.7
            Reporter: dennis hoersch


By now the system-event-listeners must be configured with 'faces-config.xml'.

The class 'DefaultAnnotationProvider' has already two lines to enable the bytcode lookup for the annotations 'ListenerFor' and 'ListenersFor' that are commented out.

Maybe it is possible to enable the detection of system event listeners? I commented that in and wrote an 'handle' method in AnnotationConfigurator. 

Can anybody check if it is right?
It works for my project.

--
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

        

[jira] [Comment Edited] (MYFACES-3559) Add 'ListenerFor' for system events as annotation configuration

Posted by "dennis hoersch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288507#comment-13288507 ] 

dennis hoersch edited comment on MYFACES-3559 at 6/4/12 11:36 AM:
------------------------------------------------------------------

Added changed files
                
      was (Author: hoersch):
    Changed files
                  
> Add 'ListenerFor' for system events as annotation configuration
> ---------------------------------------------------------------
>
>                 Key: MYFACES-3559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3559
>             Project: MyFaces Core
>          Issue Type: Improvement
>    Affects Versions: 2.1.7
>            Reporter: dennis hoersch
>         Attachments: AnnotationConfigurator.java, DefaultAnnotationProvider.java
>
>
> By now the system-event-listeners must be configured with 'faces-config.xml'.
> The class 'DefaultAnnotationProvider' has already two lines to enable the bytcode lookup for the annotations 'ListenerFor' and 'ListenersFor' that are commented out.
> Maybe it is possible to enable the detection of system event listeners? I commented that in and wrote an 'handle' method in AnnotationConfigurator. 
> Can anybody check if it is right?
> It works for my project.

--
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

        

[jira] [Commented] (MYFACES-3559) Add 'ListenerFor' for system events as annotation configuration

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

Leonardo Uribe commented on MYFACES-3559:
-----------------------------------------

Added patch in unified diff format. This is a duplicate of MYFACES-2509. I know it has sense but it should be solved at spec level (or maybe it is worth to include it throught a web config param starting with STRICT_JSF_2, suggestions are welcome in MYFACES-2509). For now I'll close it as duplicate, because all info to track this one is there.
                
> Add 'ListenerFor' for system events as annotation configuration
> ---------------------------------------------------------------
>
>                 Key: MYFACES-3559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3559
>             Project: MyFaces Core
>          Issue Type: Improvement
>    Affects Versions: 2.1.7
>            Reporter: dennis hoersch
>         Attachments: AnnotationConfigurator.java, DefaultAnnotationProvider.java, MYFACES-3559-1.patch
>
>
> By now the system-event-listeners must be configured with 'faces-config.xml'.
> The class 'DefaultAnnotationProvider' has already two lines to enable the bytcode lookup for the annotations 'ListenerFor' and 'ListenersFor' that are commented out.
> Maybe it is possible to enable the detection of system event listeners? I commented that in and wrote an 'handle' method in AnnotationConfigurator. 
> Can anybody check if it is right?
> It works for my project.

--
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