RE: Invoking FacesNavigation from a Filter

From: Manfred Riem <>
Date: Sat, 31 Oct 2009 14:11:35 -0600

Why would you want to use a Filter. Have you considered using
a PhaseListener instead?


-----Original Message-----
From: Lincoln Baxter, III []
Sent: Saturday, October 31, 2009 1:12 PM
Subject: Invoking FacesNavigation from a Filter


I'm trying to invoke default FacesNavigation from a filter (Where I've
already instantiated a FacesContext,) but I can't seem to get it to
work unless the outcome was defined in a navigation case in

When the navigation case is a direct navigation (/faces/demo.jsf) or a
relative navigation string (eg: demo.jsf), no navigation occurs.

I'm assuming this has to do with the fact that the view was not
restored and set into the context, but doing that manually with a
viewId of "" to prevent NullPointerException doesn't work either.

Thoughts? How can I properly build the facesContext object model to
support navigation in a filter?


To unsubscribe, e-mail:
For additional commands, e-mail: