AnsweredAssumed Answered

How can I instantiate a new FacesContext instance?

Question asked by cuchillo on Jan 10, 2010
Latest reply on Feb 5, 2010 by nowhere
Hi there!  :)
I am modifying Alfresco 3.1.1 source code.
In many points I need an instance of the class FacesContext. In order to get the current instance, I call this method:
FacesContext.getCurrentInstance()
But I get a NullPointerException.

I think this happens because I am not in the right context.
How can I instantiate a new FacesContext instance?
I need to know how Alfresco does from the JSF/Spring level.

Thanks in advance!
Stefano

Outcomes