On 2/22/06, Vladimir Coutinho <[EMAIL PROTECTED]> wrote:
Could I access faces context from a non jsf class? (a bean used with AJAX)
 

 
FacesContext fc = FacesContext.getCurrentInstance();

You can do this from any class ... but it will only return a useful result in the context of a request that is actually being handled by JavaServer Faces (i.e. one whose URL matches the URL mapping for FacesServlet) -- or if you are following the outline in the spec for turning a non-Faces Request into a Faces Response.

--
Vladimir M Coutinho

Craig

Reply via email to