Similar to BasicTemplate.xhtml
add the following XHTML pages:
header.xhtml
for a common header section to theWEB-INF/templates
directory. Forheader.xhtml
select the New Facelet Header template.footer.xhtml
for a common footer section to theWEB-INF/templates
directory. Forfooter.xhtml
select the New Facelet Footer template.An input Facelets composition page (
input.xhtml
) to theWebContent
directory. Forinput.xhtml
select the New Facelet Composition Page template.An output Facelets composition page (
output.xhtml
) to theWebContent
directory. Foroutput.xhtml
select the New Facelet Composition Page template.
The XHTML pages based on different types of templates are shown in the Facelets application, as follows:
In the header.xhtml
page specify a JPEG for the header with the h:graphicImage
tag. The header.xhtml
page is listed, as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3...