-
1. Re: FacesServlet, what does it do exactly
asookazian Oct 13, 2009 1:48 AM (in response to asookazian)
FacesServlet is a servlet that manages the request processing lifecycle for web applications that are utilizing JavaServer Faces to construct the user interface.http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/webapp/FacesServlet.html
So does this mean FacesServlet manages the JSF life cycle? Anything else?
-
2. Re: FacesServlet, what does it do exactly
niox.nikospara.yahoo.com Oct 13, 2009 9:34 AM (in response to asookazian)Hi,
If you check the source you will find that the logic of FacesServlet is quite simple. It triggers some initializations at startup and triggers the JSF lifecycle per request. The actual logic for these is delegated to other classes (e.g. the implementations of the various factories javax.faces.**.*Factory and the javax.faces.lifecycle.Lifecycle handles the JSF lifecycle).
I would call FacesServlet it the orchestrator of adapters between the servlet world and the JSF world.
Seam adds to the FacesServlet by applying the Seam Filter. I think the filter creates and/or binds Seam-specific contexts to the request and/or thread-local variables. Also RichFaces augments the default JSF Lifecycle to cope with AJAX requests, i.e. partial processing and partial updating.