webtier@glassfish.java.net

Best way to access javax.faces.PROJECT_STAGE in a Filter?

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Sun, 3 Jan 2010 13:11:32 -0500

Question:

FacesContext.getCurrentInstance().getApplication().getProjectStage()
is the normal way to get a hold of the ProjectStage... however, in a
Filter, FacesContext is not available (unless you build it.) What is
the preferred way to access the project stage in a Servlet Filter?

Thanks.
Lincoln