C H A P T E R  5

image

Creating Custom Components

In this chapter, you'll learn how to create your own components that can be reused on multiple pages.

Displaying a Copyright Notice on Multiple Pages

Suppose that you'd like to display a copyright notice on multiple pages like that shown in Figure 5-1.

image

Figure 5-1. Copyright notice on multiple pages

This is no good, because if later you need to modify the copyright notice, you'll have to do it multiple times (once for each page). To solve this problem, you can extract the common HTML code into a separate ...

Get Beginning JSF™ 2 APIs and JBoss® Seam now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.