Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Support @Inject on JSF artifacts #1316

Closed
glassfishrobot opened this issue Oct 9, 2014 · 11 comments
Closed

Support @Inject on JSF artifacts #1316

glassfishrobot opened this issue Oct 9, 2014 · 11 comments

Comments

@glassfishrobot
Copy link

Support @Inject on JSF artifacts

@glassfishrobot
Copy link
Author

Reported by @manfredriem

@glassfishrobot
Copy link
Author

@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

@glassfishrobot
Copy link
Author

@edburns said:
Do you have any plans to support Component, Behavior and Validator?

@glassfishrobot
Copy link
Author

@manfredriem said:
In Progress

@glassfishrobot
Copy link
Author

@manfredriem said:
Note @Inject on UIComponent instances will not be done as the view state is managed outside of CDI.

@glassfishrobot
Copy link
Author

@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.

@glassfishrobot
Copy link
Author

@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.

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1316

@tandraschko
Copy link

I think @Inject UIComponet could be done by:
#1448 - also if i don't prefer to access uicomponents in the backing bean if it's avoidable.

@glassfishrobot
Copy link
Author

Closing this as this issue is migrated to jakartaee/faces#1316

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants