To illustrate implementing layouts, including common content, and using Tiles, we discuss two applications in this chapter: a book viewer and a library. Those applications are shown in Figure 8-2 and Figure 8-3, respectively.
Figure 8-2. The Book Viewer
Figure 8-3. The Library
The book viewer is intuitive. If you click on a chapter link, that chapter is shown in the content region of the web page. The library is an extension of the book viewer that lets you view more than one book. You can select books from the menu at the top of the web page.
The book viewer addresses the following topics:
"Monolithic JSF Pages" on page 320
"Common Content Inclusion" on page 325
"Looking at Tiles" on page 330
"Parameterizing Tiles" on page 334
"Extending Tiles" on page 335
The library illustrates these Tiles features:
"Nested Tiles" on page 340
"Tile Controllers" on page 340
Coverage of the book viewer begins in the next section. The library is discussed in "The Library" on page 338.
NOTE
For the examples in this chapter, we downloaded Alice in Wonderland and Peter Pan from the Project Gutenberg web site http://promo.net/pg/ chopped them up into chapters and converted them to HTML.