-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
JSF 1.2 Components
By :
One of the goals of the Facelets view definition framework is to simplify designing composite views in a JSF application. The Composite View design pattern is an approach to user interface development that encourages subdivision and reuse of view elements, such as headers, footers, navigation menus, and more. Let's examine how the Facelets framework supports this approach. Facelets includes a number of useful tags for assembling JSF views from smaller elements.
What is a Facelet?
We can think of a Facelet as a subset of a user interface comprised of zero or more UI components. In this chapter, we will begin by looking at some of the basic tags in the Facelets tag library and will progress towards a more complex composite view implementation based on advanced Facelets templating concepts.
First, let's begin with a very simple example of a Facelets page to highlight some key similarities and differences between Facelets and JSP. The following...
Change the font size
Change margin width
Change background colour