[jboss-jira] [JBoss JIRA] (WFLY-2611) Unify JSF action listener and CDI integration

Tomas Remes (JIRA) issues at jboss.org
Fri Jan 31 09:03:32 EST 2014


    [ https://issues.jboss.org/browse/WFLY-2611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933777#comment-12933777 ] 

Tomas Remes edited comment on WFLY-2611 at 1/31/14 9:02 AM:
------------------------------------------------------------

I've realized that the original issue was too general (and basically all functionality works as expected IMO), so I've changed the description to be more specific. 
                
      was (Author: tremes):
    In JSF spec there is also following sentence: "..the following JSF artifacts are also injectable."  followed by the classes listed above. I am not sure, if I understand it correctly. Does it mean that when I create e.g my custom NavigationHandler (and specify it in faces-config), should it be available for injection? e.g like this:

{noformat}
@Inject
CustomNavigationHandler handler;
{noformat}

[~ssilvert] Can you please elaborate? 
                  
> Unify JSF action listener and CDI integration
> ---------------------------------------------
>
>                 Key: WFLY-2611
>                 URL: https://issues.jboss.org/browse/WFLY-2611
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: CDI / Weld, JSF
>    Affects Versions: 8.0.0.CR1
>            Reporter: Tomas Remes
>            Assignee: Farah Juma
>
> There are three ways, how can user specify custom JSF action listener:
> 1. Method binding - with actionListener param. This case is ok, meaning CDI injection and interceptor works for given method/bean.
> 2. Providing custom implementation - <f:actionListener type="org.jboss.jsf.listeners.MyActionListener"/>. In this case CDI doesn't work at all for processAction method of given class. 
> 3. Defining in faces-config - in this case CDI injection works, but interceptor is not executed. 
> Producer available at https://github.com/tremes/javaee7-samples/tree/cdi-testing/jsf/jsf-listeners-injection. Test can be executed with "mvn clean test -Pwildfly-managed-arquillian" or "mvn clean test -Pwildfly-remote-arquillian" and IMHO all should pass.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list