程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> JSP編程 >> 關於JSP >> JSF Implementation: go into the world of MyFaces

JSF Implementation: go into the world of MyFaces

編輯:關於JSP

MyFaces is an successful implementation of JSF specifications and it is the core members of Apache web framework family.In this recipe, we explore its core class in the code manner.

1. Facade Servlet

MyFacesServlet is the subclass of FacesServlet which is defined in web.xml. In its init method, it will parse the faces-config.xml and bind the servlet,filter instance to servlet context. As for the listener, components, and managed beans, they are bound to FacesContext.

2. Phases in the request process life-cycle

 

63      public void execute(FacesContext facesContext)
64          throws FacesException
65      {
66          if (restoreView(facesContext))
67          {
68              return;
69          }
70  
71          if (applyRequestValues(facesContext))
72          {
73              return;
74          }
75  
76          if (processValidations(facesContext))
77          {
78              return;
79          }
80  
81          if (updateModelValues(facesContext))
82          {
83              return;
84          }
85  
86          if (invokeApplication(facesContext))
87          {
88              return;
89          }
90      }

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved