inside every request, that goes to the facesServlet, you can acccess the FacesContext, because the FacesServlet sets up the FacesCtx for each request (inside the service() before executing the jsf-lifecycle)
When the request is outside of that, you get null back -M On Nov 21, 2007 6:33 AM, pdt_p <[EMAIL PROTECTED]> wrote: > > Hi... > > I have 1 JSF ear, and 1 ejb ear deployed in a Jboss. > > normally, we execute FacesContext.getCurrentInstance() in order to get > current facescontext. But this method will return null when you execute it > in one of the ejb class. > > is that possible to get JSF faces context from one of ejb class? > if it's possible, how to do it? > > any idea > > thanks > > > Pdt > -- > View this message in context: > http://www.nabble.com/Question-about-FacesContext-tf4848184.html#a13871389 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org

