On 8/21/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
Filters are executed before the servlet gains control ... which means before the JSF FacesServlet has had a chance to set up the FacesContext and such for a JSF request. Therefore, a filter won't be able to use the managed beans APIs to create new beans. It can, however, have access to any attributes that have already been created, using standard Servlet API techniques (request.getAttribute() for request scope, request.getSession().getAttribute() for session scope, etc.).
You can follow the process detailed at this URL to create a FacesContext in your servlet filter. I don't know if it's sufficient to set up the environment needed for creating managed beans off the top of my head. http://www.thoughtsabout.net/blog/archives/000033.html
