-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support @Inject for FacesContext #527
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented @ManagedProperty(value="# {facesContext} ") @ManagedProperty(value="# {requestScope} ") @ManagedProperty(value="# {sessionScope} ") Granted this is only for Managed Beans. I think the real issue is: How to I have updated the subject. |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
To get the FacesContext in a managed bean you need to do as follow :
FacesContext ctx = FacesContext.getCurrentInstance();
It would be nice to get this context injected such as :
@resource
private FacesContext ctx;
That's the way EJBs and other components handle their context.
Environment
Operating System: All
Platform: All
Affected Versions
[2.0]
The text was updated successfully, but these errors were encountered: