JSF---在后台提供了一组UI componets的java实现。在前端提供了相对应的JSF的标签。这些标签可用于各种不同的display technology(如:jsp)中。同样这些标签可嵌入xhmtl中,这种display technology被称为Facelets。
Facelets的优点:
1. 通过JSF组件替换(jsf属性)的方式,可以使得UI designer(只熟悉html/xhtml)和software engineer很好的协同工作。
(参见: javaserver faces核心编程12.2.2)
2. In JSP, elements in a web page are processed and rendered in a progressive order. However, JSF provides its own processing and rendering order. This can cause unpredictable behavior when web applications are executed. Facelets resolves this mismatch.
3. Templating allows you to create a page that acts as a template for other pages in an application.
4. Composite components makes it easy to create customized JSF components.
相关技术:Tapestry(表现层框架Struts/Tapestry/JSF架构比较)、Shale