Support @Inject on JSF artifacts
glassfishrobot opened this issue · 11 comments
Support @Inject on JSF artifacts
Reported by @manfredriem
Issue-Links:
is blocked by
JAVASERVERFACES_SPEC_PUBLIC-527
JAVASERVERFACES_SPEC_PUBLIC-1309
JAVASERVERFACES_SPEC_PUBLIC-1323
JAVASERVERFACES_SPEC_PUBLIC-1327
JAVASERVERFACES_SPEC_PUBLIC-1333
JAVASERVERFACES_SPEC_PUBLIC-1335
JAVASERVERFACES_SPEC_PUBLIC-1345
JAVASERVERFACES_SPEC_PUBLIC-1349
JAVASERVERFACES_SPEC_PUBLIC-1350
JAVASERVERFACES_SPEC_PUBLIC-1351
JAVASERVERFACES_SPEC_PUBLIC-1353
blocks
JAVASERVERFACES_SPEC_PUBLIC-1283
is related to
JAVASERVERFACES_SPEC_PUBLIC-763
JAVASERVERFACES_SPEC_PUBLIC-1315
is related to
JAVASERVERFACES_SPEC_PUBLIC-1287
@manfredriem said:
Make sure the following artifacts are mentioned in the spec PDF when describing @Inject support
- applicationMap
- externalContext
- facesContext
- session (delegating that responsibility back to default CDI runtime)
- sessionMap
- view
- viewMap
- converters annotated with @FacesConverter (and managed = true)
- validators annotated with @FacesValidator (and managed = true)
- behaviors annotated with @FacesBehavior (and managed = true)
- requestCookieMap
@edburns said:
Do you have any plans to support Component, Behavior and Validator?
@manfredriem said:
In Progress
@manfredriem said:
Note @Inject on UIComponent instances will not be done as the view state is managed outside of CDI.
@arjantijms said:
Note @Inject on UIComponent instances will not be done as the view state is managed outside of CDI.
IFF there would be an @ComponentScope then as a side-effect of that it may became feasible to allow injection of the UIComponent instances.
@BalusC said:
Injection of @FacesContext is currently not done properly. It's currently request scoped, but it should actually be "faces context scoped", as an (error) dispatch can create a new FacesContext within the very same request. The current approach will throw ISE from assertNotReleased() when the FacesContext is being referenced in EL.
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1316
Closing this as this issue is migrated to jakartaee/faces#1316