Templating with JSF 2.0 Facelets
2013-06-12 18:59
411 查看
In JavaServer Faces (JSF) 2.0, Facelets is the default view declaration language (VDL) instead of JavaServer Pages (JSP). With Facelets, you don’t need to configure a view handler as you used to do in JSF 1.2. Facelets is a JSF-centric view technology.
Facelets is based on compositions. A composition defines a JSF UIComponents structure in a Facelets page. A Facelets application may consist of compositions defined in different Facelets pages and run as an application.
Facelets is a templating framework similar to Tiles. The advantage of Facelets over Tiles is that JSF UIComponents are pre-integrated with Facelets, and Facelets does not require a Facelets configuration file, unlike Tiles, which requires a Tiles configuration file.
JSF Validators and Converters may be added to Facelets. Facelets provides a complete expression language (EL) and JavaServer Pages Standard Tag Library (JSTL) support. Templating, re-use, and ease of development are some of the advantages of using Facelets in a Web application.
Facelets pages are XHTML pages by default. A Facelets application consists of the following configuration and templating files.
A Facelet Template file, which is an XHTML page
Facelet Header and Facelet Footer XHTML pages
A JSF configuration file, faces-config.xml
Facelet Composition page, which is also an XHTML page
Facelets is based on compositions. A composition defines a JSF UIComponents structure in a Facelets page. A Facelets application may consist of compositions defined in different Facelets pages and run as an application.
Facelets is a templating framework similar to Tiles. The advantage of Facelets over Tiles is that JSF UIComponents are pre-integrated with Facelets, and Facelets does not require a Facelets configuration file, unlike Tiles, which requires a Tiles configuration file.
JSF Validators and Converters may be added to Facelets. Facelets provides a complete expression language (EL) and JavaServer Pages Standard Tag Library (JSTL) support. Templating, re-use, and ease of development are some of the advantages of using Facelets in a Web application.
Facelets pages are XHTML pages by default. A Facelets application consists of the following configuration and templating files.
A Facelet Template file, which is an XHTML page
Facelet Header and Facelet Footer XHTML pages
A JSF configuration file, faces-config.xml
Facelet Composition page, which is also an XHTML page
相关文章推荐
- Converting a JSF 1.2 application to JSF 2.0 - Facelets and Ajax
- Converting a JSF 1.2 application to JSF 2.0 - Facelets and Ajax
- JSF 2.0 Facelets 的模板技术
- Writing a simple Composite Component with JSF 2.0
- Templating with JSF 2.0 Facelets
- JSF 2.0 Facelets 的模板技术
- Developing applications with Facelets, JSF, and JSP
- Spring security 3.1 +JSF 2.0 . problem with annotating methods in ManagedBeans?
- Ajax Integration with JSF 2.0
- Ajax Integration with JSF 2.0
- Ajax Integration with JSF 2.0
- Converting a JSF 1.2 application to JSF 2.0 - Facelets and Ajax
- HttpSecureCookie, A Way to Encrypt Cookies with ASP.NET 2.0
- How to install Android SDK and play with Android 2.0 in the emulator
- Spring-Jsf2.0-Mybatis整合(可运行工程)
- Objective-C 2.0 with Cocoa Foundation --- 2,从Hello,World!开始
- Effective Objective-C 2.0: Item 32: Beware of Memory Management with Exception-Safe Code
- Tomcat7下使用CDI and JSF 2.0
- Objective-C 2.0 with Cocoa Foundation--- (继承 2)
- Objective-C 2.0 with Cocoa Foundation---NSObject的奥秘(3)