-
Notifications
You must be signed in to change notification settings - Fork 19
Support @Inject for FacesContext #527
Comments
Reported by agoncal@java.net |
Issue-Links: |
@edburns said: |
@edburns said: |
lincolnbaxter said: |
@edburns said: @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. |
rogerk said: |
@edburns said: |
@edburns said: |
@edburns said: |
@edburns said: |
@edburns said: |
@edburns said: |
@edburns said: |
@manfredriem said: |
Marked as fixed on Thursday, October 9th 2014, 1:11:10 pm |
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-527 |
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: