A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Why does FacesContext .getCurrentInstance() return null?
Joined: Aug 04, 2003
Dec 02, 2005 08:40:00
I have a
(several actually) in a
application that I need to gain access to the
I noticed that often when I call
.getCurrentInstance() it will return null.
Now, it is my understanding that as long as a JSF page within my application had been called previously, then the
should have been set up. Is this not the case?
Any clues as to why the context is null?
This is driving my nuts!
[ December 02, 2005: Message edited by: Darrin Smith ]
It is sorta covered in the
JavaRanch Style Guide
subject: Why does FacesContext .getCurrentInstance() return null?
Using FacesCcntext within Listeners and Filters
[Resolved] Services as Managed Beans
Using imageCropper with JSF and primefaces
How can I access JSF managed bean from JSF converter?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014