C H A P T E R 5
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.
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.