interesting issue with Controller and FacesContext
Posted Wed, 15/07/2009 - 14:08 by oded
Hi,
Does anyone know why when i try to get FacesContext.getCurrentInstance() inside Controller implemenation function (handleRequest),
the current instance is null?
Thanks,
Oded.

Comments
Can you put some more information?
Like code example of what are you exactly trying to do?
Environment details, what kind of thirdparty are you using?
It might be life cycle issue or thirdparty issue.
I am not a Spring user or advocate (I am using Seam) but I think your request isn't in a JSF context. It would be beneficial to know why you need the FacesContext in your bean/controller and what you are using it for.
Any way, these might be helpful:
http://cagataycivici.wordpress.com/2005/12/25/integrating_jsf_and_spring/
http://blogs.steeplesoft.com/facesutil-a-missing-yet-important-piece/
http://www.thoughtsabout.net/blog/archives/000033.html
Yeah it looks like you need the third link Shlomo referenced.
It is !
it is working, i checked it . with the same environment like yours off course :)