Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-21987

task-jsf quickstart: JSF 2.3 features does not work on JBoss EAP 7.3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.3.6.GA
    • Quickstarts
    • None
    • False
    • False
    • Undefined

      In the example task-jsf is a CDI Producer used to generate the FacesContext Injection Point from the static method reference.
      @Produces public FacesContext getFacesContext()

      { return FacesContext.getCurrentInstance(); }

      The JSF docs say, the injection from FacesContext and ExternalContext should work out of the box. This does not work in the JBoss EAP 7.3

      In my opinion it would be better and easier to understand if a concreate configuration class is used.

      In the bug reported for JSF(see here) such a class is suggested.

      @FacesConfig(version = Version.JSF_2_3) @ApplicationScoped public class Config {}

      With this class the example works as designed and all JSF 2.3 features as well.

              emartins@redhat.com Eduardo Martins
              emartins@redhat.com Eduardo Martins
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: