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

graphics/08fig02.jpg


Figure 8-3. The Library

graphics/08fig03.jpg


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

graphics/note_icon.gif

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 JavaServer Faces
Core JavaServer Faces
ISBN: 0131463055
EAN: 2147483647
Year: 2003
Pages: 121

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