The JavaServer Faces (JSF) is a powerful Java EE API for building outstanding UIs, using both client and server features.
It goes much further than when you are using JSP, as you are not only using Java code inside HTML code, but actually really referencing code injected in the server context.
This recipe will show you how to use the Facelet's template feature to get more flexibility and reusability from your layout template.