dcsimg
FacesContext.getCurrentInstance=null
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   selvaraj_chennappan
Posted On:   Thursday, February 1, 2007 11:54 AM

How can i get FacesContext.getCurrentInstance in Servlets doget method FacesContextFactory contextFactory = (FacesContextFactory)FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); Lifecycle lifecycle = lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); facesContext = contextFactory.getFacesContext(request.getSession().getServletContext(), request, response, lifecycle); I added this code in my servlet it will create new Facescontext not exisisting one Could any one help me how can i get? Thanks in advance    More>>

How can i get FacesContext.getCurrentInstance in Servlets doget method


FacesContextFactory contextFactory = (FacesContextFactory)FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);

facesContext = contextFactory.getFacesContext(request.getSession().getServletContext(), request, response, lifecycle);

I added this code in my servlet it will create new Facescontext not exisisting one Could any one help me how can i get?


Thanks in advance

   <<Less
About | Sitemap | Contact