![]() ![]() ![]() The code of LifecycleImpl for the two methods is basically the following: The PersistentFacesServlet has created these objects already before using the PageServer. Here the lifecycle object and its factory are of the following two classes:Ĭom. tHeader("Content-Type", "text/html") Ĭom.(lifecycle) tHeader("Expires", 0) //prevents proxy caching PseudoServlet sessionServer = new SessionDispatcher() ) //HTTP 1.1 PseudoServlet resourceServer = new BasicAdaptingServlet(new ResourceServer(configuration, mimeTypeMatcher, localFileLocator)) In the init() method, it has the following: Private PathDispatcher dispatcher = new PathDispatcher() The PersistentFacesServlet is actually a MainServlet. The major class of Icefaces is .xmlhttp.PersistentFacesServlet. In this analysis, Icefaces 1.6.2 is used. Protected void renderResponse(FacesContext facesContext) throws IOExceptionĭ2DFaceletViewHandler overrides this method. This method calls the renderResponse method: Public void renderView(FacesContext context, UIViewRoot viewToRender) Public class D2DFaceletViewHandler extends D2DViewHandlerĭ2DFaceletViewHandler inherits from D2DViewHandler all the public methods including the following ![]() Note that the ICEfaces facelet viewHandler is a subclass of the D2DViewHandler: But the core of the whole program is still the LifecycleImpl class ( This class implements ) from SUN to carry out the JSF lifecycle. In the D2DViewHandler, Icefaces uses its own JsfJspDigester to parse the JSF/JSP files. It is configured in the faces-config.xml inside icefaces.1.6.2.jar:Ĭom.2DViewHandlerĬom. The heaviest duty that Icefaces put in is its implementation of ViewHandler: D2DViewHandler. Some people think that Icefaces is an implementation of JSF. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |