Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1280

Dependent scoped not injected via Application#getELResolver#getValue, works with ValueExpression

    XMLWordPrintable

    Details

      Description

      An exception is thrown when accessing an @Dependent scoped bean via ELResolver#getValue obtained from JSF FacesContext/Application, OTOH injection does work when accessed via ValueExpression#getValue (also obtained from JSF FacesContext/Application).

      The exception contains the message: "No CreationalContext registered for EL evaluation, it is likely that the the expression factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI".

      Discussion took place on MyFaces-Users mailing list, started with a MyFaces CODI/ExtVal startup problem (ExtVal startup failing to obtain an @Dependent bean via ELResolver#getValue), and resulted in Gerhard Petracek and Brian Leathem confirming the bug. Jozef Harting asked me to open this issue and attach an example.

        Attachments

          Activity

            People

            Assignee:
            jharting Jozef Hartinger
            Reporter:
            gturner Gerald Turner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: