Andy Gibson: How to do 10 Common Tasks in JSF 2.0
On JavaLobby, Andy Gibson shows How to do 10 Common Tasks in JSF 2.0:
Here’s a list of 10 features you might need to implement everyday and how they are performed in JSF 2.0. 1. Templating: JSF 1.0 started by using JSP as the templating technology, but most people started using Facelets by Jacob Hookom and I haven’t since found a templating setup I like more. With JSP, templates work by including files, and with other templating setups you define the template to use and then each page defines the content placed in the template. JSF combines both of these and works very much like ASP.net master pages. Each template page defines areas and in each content page, you pull in the template you want to use and then push the content into the defined areas on the template. Here’s an example template file that defines our header, footer and content layout with specific named areas defined for inserting content with the ui:insert tag...
Community:
- Printer-friendly version
- 164 reads



