O'Reilly logo

JavaServer® Faces 2.0: Essential Guide for Developers by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2TEMPLATING WITH FACELETS

In JSF 2.0, Facelets is the default View Declaration Language (VDL) instead of JSP. As a result, you don’t need to configure a view handler as you did in JSF 1.2. Facelets is a Java-Server Faces–centric view technology.

Facelets is based on compositions. A composition defines a JSF user interface (UI) component 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 as Tiles does a Tiles configuration file.

JSF validators ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required