This content has been marked as final.
Show 7 replies
-
1. Re: Is it possible to grab the FacesContext in a @WebRemote
indyjones Jan 24, 2008 5:12 PM (in response to indyjones)in a @WebRemote method i have...
FacesContext context = FacesContext.getCurrentInstance();
Which throws a null pointer... -
2. Re: Is it possible to grab the FacesContext in a @WebRemote
nickarls Jan 24, 2008 5:14 PM (in response to indyjones)I'm not at all convinced that there should be any faces context available there...
-
3. Re: Is it possible to grab the FacesContext in a @WebRemote
shane.bryzak Jan 24, 2008 7:49 PM (in response to indyjones)There is no FacesContext in a remoting (non-JSF) request.
-
4. Re: Is it possible to grab the FacesContext in a @WebRemote
hades_chm Jan 24, 2008 9:06 PM (in response to indyjones)but how to get a httpRequest or httpSession there
-
5. Re: Is it possible to grab the FacesContext in a @WebRemote
hades_chm Jan 24, 2008 9:06 PM (in response to indyjones)but how to get a httpRequest or httpSession there
-
6. Re: Is it possible to grab the FacesContext in a @WebRemote
nickarls Jan 25, 2008 1:36 AM (in response to indyjones)I don't think thats possible either. Try ServletContexts.instance().getRequest().getSession() but they will probably give you nulls, too.
-
7. Re: Is it possible to grab the FacesContext in a @WebRemote
shane.bryzak Jan 25, 2008 6:57 PM (in response to indyjones)ServletContexts is correctly set with the HttpServletRequest for a remoting request, so yes you can use it.