Donna was able to communicate the information using examples that I was able to relate to. She didnt talk over... More Testimonials »

JSF 2.0 Training

Delivery Options

Class Date and Time Price Pricing Information
$2,125.00
or 5 vouchers vouchers
$2,125.00 or 5 vouchers vouchers
$2,125.00 or 5 vouchers vouchers

Class Description

Class Overview

This comprehensive course shows Java programmers how to build web applications with JavaServer Faces 2.0. We develop the best-practice concepts that are formalized by the JSF architecture, from model/view/controller to the UI component framework and request-handling lifecycle. Students start to discover that there is a "JSF way" of doing things, and we learn not just APIs and tag libraries but the habit of slicing application logic into its most reusable forms: managed beans, event listeners, converters, validators, and more.

Students acquire a firm command of JSF development, learning to work with JSF's list and table components, building reusable composite components, and building Ajax applications. Simple, high-level Ajax functionality is covered, and students also work more directly with JSF's JavaScript API and resource-management framework.

Class Goals

  • Understand the purpose and scope of the JSF architecture
  • Build web applications using JSF's FacesServlet, faces-config.xml, and the JSF request/response lifecycle
  • Use Facelets tag libraries to build JSF views
  • Use managed beans to encapsulate form handling and server-side presentation logic
  • Implement control logic as JSF event listeners or action methods
  • Use validators and converters to implement a validation phase for a JSF application
  • Build composite UI fragments or custom components using Facelets
  • Build Ajax applications with JSF: client-side behaviors and partial requests and responses followed by DOM updates

Class Outline

  1. Overview
    1. Java EE and Web Applications
    2. Perspectives: Servlets and JSP
    3. Perspectives: MVC Frameworks
    4. Perspectives: AWT and JFC
    5. JSF Value Proposition
    6. JSF Configuration
    7. Issues with JSP and JSF
    8. Facelets
  2. Lifecycle
    1. The JSF Request/Response Cycle
    2. Lifecycle Phases
    3. Phase Listeners
    4. The FacesContext Class
    5. Who Does What
    6. Partial Request Cycles
  3. UI Components
    1. The UIComponent Class
    2. Behavioral Interfaces
    3. The Core and HTML Tag Libraries
    4. Relationship to CSS
    5. ID, Client ID, and Label
    6. UISelectItem(s)
    7. Navigating the UI Tree
    8. The binding Attribute
  4. Page Navigation
    1. View Selection
    2. Navigation Rules
    3. Implicit Navigation
    4. Problems with POSTback
    5. Post/Redirect/Get
    6. Support for HTTP GET
    7. Conditional Navigation
  5. Managed Beans
    1. JavaBeans and JSF
    2. Backing Beans
    3. Configuring Managed Beans
    4. @ManagedBean and Related Annotations
    5. The Unified Expression Language
    6. Value and Method Expressions
    7. Implicit Objects
  6. Scopes
    1. Managed-Bean Scopes
    2. Lifecycle Annotations
    3. View Parameters
    4. The Flash
  7. Dependency Injection
    1. Managed Properties
    2. Values, Lists, and Maps
    3. Using Dynamic Expressions
    4. Dependencies and Bean Scopes
    5. The @ManagedProperty Annotation
  8. Facelets
    1. Migrating from JSP
    2. View Definition Languages
    3. Facelets
    4. Tag Libraries
    5. Writing and Using Custom Tags
  9. Events and Listeners
    1. JSF Event Model
    2. Event Types and Timing
    3. Event Queueing
    4. ActionEvent and ActionListener
    5. Action Methods
    6. Connecting Controllers to Beans
    7. ValueChangeEvent and ValueChangeListener
    8. Deferring Event Processing
    9. Limitations of FacesListeners
  10. Lists and Tables
    1. Working with Collections
    2. Why We Don't Use <c:anything> <c:anyMore>
    3. <ui:repeat> vs. <c:forEach>
    4. <h:dataTable>
    5. Defining Columns and Facets
    6. One Command Per Row
    7. Reading the Row Number
    8. Pseudo-Maps
    9. Working with Persistent Data
    10. Concurrency and Caching
    11. Limiting the Scope of Queries
    12. Paging
  11. Converters
    1. The Converter Interface
    2. Life of a Datum
    3. Standard Converters
    4. Custom Converters
    5. The @FacesConverter Annotation
    6. Timing of Conversion
    7. Representing Persistent Objects by ID
  12. Validators
    1. The Validator Interface
    2. Standard Validators
    3. Using Regular Expressions
    4. Producing Error Messages
    5. Message Keys
    6. Presenting Error Messages
    7. Posting Error Messages from Anywhere
    8. Custom Validators
    9. The @FacesValidator Annotation
    10. Validating Multiple Inputs
    11. JSR-303 Support: "Bean Validation"
  13. Resources
    1. Resource Libraries
    2. Deploying Images, Scripts, and Stylesheets
    3. Addressing Resources
  14. Composites
    1. Limitations of Custom Tags
    2. Composite Components
    3. Encapsulation
    4. Deploying and Using Composites
    5. Interface and Implementation
    6. Impact on the UI Tree
    7. Attributes
    8. Retargeting
  15. Ajax
    1. What is Ajax?
    2. The XMLHttpRequest Object
    3. Ajax and the JSF Lifecycle
    4. Using <f:ajax>
    5. execute and render Attributes
    6. Ajax Listeners
  16. The JSF JavaScript API
    1. The JSF JavaScript API
    2. Trigering Ajax Requests
    3. Refining <f:ajax> with Callbacks
    4. onevent and onerror Attributes
    5. The Ajax Request/Response Process
    6. Using Hidden Inputs
    7. Other JavaScript Functions

Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following areas is required:

  • This course is intended primarily for experienced Java application developers. Page authors, component developers, and others who may have little or no Java experience (but perhaps are stronger on HTML, JavaScript, and JSP) may well find this to be a valuable training experience, though without solid Java skills many of the coding exercises will be difficult to follow.
  • Java programming experience is essential to understanding the JSF API as presented here
  • General understanding of servlets and JSP is recommended, but not required
  • Basic knowledge of XML will be helpful, as will any previous experience with HTML.

Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away.


  • Java ®, all Java-based marks, Hibernate ®, and all Hibernate-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries.
Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Locations
Watch 3-minute Demo Video
of Live Online Training:
Learn the benefits of online training with Webucator

Free Webinars

A Crash Course in CSS

Wed, 3/21 1:00 PM EST

Project Management Institute Partner

Webucator is a Registered Education Provider (R.E.P.) approved by PMI to issue professional development units (PDUs) for our training courses.

© Webucator, Inc. All rights reserved. | Toll Free: 1-877-932-8228 | From outside the USA: 315-849-2724| Fax: 315-849-2723