-
Bug
-
Resolution: Done
-
Major
-
1.1.5.Final, 1.1.10.Final
-
None
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.