The Book Viewer

A Book Viewer and a Library

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 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 326

  • "Looking at Tiles" on page 331

  • "Parameterizing Tiles" on page 334

  • "Extending Tiles" on page 335

The library illustrates these Tiles features:

  • "Nested Tiles" on page 339

  • "Tile Controllers" on page 341

Coverage of the book viewer begins in the next section, "The Book Viewer" on page 318. The library is discussed in "The Library" on page 339.

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.




Core JavaServerT Faces
Core JavaServer(TM) Faces (2nd Edition)
ISBN: 0131738860
EAN: 2147483647
Year: 2004
Pages: 84

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net