JSF 2.0 Template and Composite Components (Java EE 6)

Topics 

  • Templating 
  • Composite components 
    • Simple composite component 
    • Nested attributes 
    • Adding JavaScript to a composite component 
    • Invoking Action method 
    • Attaching ActionListener (to ActionSource2 UI components) 
    • Attaching Validators/Converters (to EditableValueHolder UI components)

Templating

What is Templating? 

  • Templates define common look and feel in layout, styling 
    • Display pages provides actual content fragments that will be inserted into a common template 
    • Display pages share common header and footer and common styling defined in the template 
    • If layout needs to be changed, a single template file needs to be changed 
    • Template file and display pages are XHTML files 
  • In JSF 1.x, templating options were varied 
    • Tiles, Oracle ADF regions, JSP includes, Facelets 
  • In JSF 2.0, Facelets provides standardized templating 
    • Standardized template tags 
    • Template tags accept parameters

 

You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.