O'Reilly logo

Java EE Development with Eclipse by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Facelets

Similar to BasicTemplate.xhtml add the following XHTML pages:

  • header.xhtml for a common header section to the WEB-INF/templates directory. For header.xhtml select the New Facelet Header template.
  • footer.xhtml for a common footer section to the WEB-INF/templates directory. For footer.xhtml select the New Facelet Footer template.
  • An input Facelets composition page (input.xhtml) to the WebContent directory. For input.xhtml select the New Facelet Composition Page template.
  • An output Facelets composition page (output.xhtml) to the WebContent directory. For output.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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required