Can't you use Phase Listener instead of servlet filter?

regards...

On 6/5/06, Val Blant <[EMAIL PROTECTED] > wrote:

Try this in your doFIlter():

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 facesContext = contextFactory.getFacesContext(servletContext,
request, response, lifecycle);

Let me know if it works.
--
View this message in context: http://www.nabble.com/Managed-bean-lookup-from-servlet-filter--t1736402.html#a4718698
Sent from the MyFaces - Users forum at Nabble.com.




--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/

Reply via email to