Header-Menu-Content Layout Example
Here is a Book Viewer
application that achieves the header-menu-content layout.
A JSF h:panelGrid element is used to
get the layout. Note:
- Dynamic resource value retrieval from
messages.properties
with [] notation.
- Use of f:param tag in command link to send chapter key to server
in HTTP request parameter.
- Content inclusion using JSTL's c:import tag. (JSTL = JSP Standard
Tag Library)
The Book backing bean has
properties:
- titleKey
- image
- numChapters
- chapterKeys
Three of the properties are managed by the
faces-config.xml file.