org.apache.myfaces.webapp.StartupServletContextListener
and javax.faces.webapp.FacesServlet - All the requests map to this servlet
These 2 servlets are defined in the web.xml situated in WEB-INF directory.
So all the request must start with /faces to match the url pattern. Now this FacesServlet object creates an object called FacesContext which in turn contains 3 objects i.e ServletContext, ServletRequest and ServletResponse objects which are passed to the service method of the FacesServlet. Next is the processing. The processor is an object called Lifecycle. The FacesServlet servlet hands over control to the Lifecycle object. The Lifecycle object processes the FacesContext object in six phases.
No comments:
Post a Comment