[ 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