Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2611

Unify JSF action listener and CDI integration

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 8.0.0.CR1
    • CDI / Weld, JSF
    • None

      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.

      Reproducer available at https://github.com/tremes/javaee7-samples/tree/cdi-testing/jsf/actionlistener-injection. Test can be executed with "mvn clean test -Pwildfly-managed-arquillian" or "mvn clean test -Pwildfly-remote-arquillian" and IMHO all should pass.

              jaslee@redhat.com Jason Lee
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: