If I call the following from inside a backing bean, everything works fine:

User user = (User) 
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(Constants.USER_KEY);
 

However, if I make the same call from an object in the session or from a utilty 
class, I get a
null pointer on "FacesContext.getCurrentInstance()". 

Can the FacesContext be accessed from outside of a backing bean?

Thx.

Mike

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to