JSF 2.0 Training

  4.3 out of 5 - Read Testimonials

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.

Goals
  1. Understand the purpose and scope of the JSF architecture
  2. Build web applications using JSF's FacesServlet, faces-config.xml, and the JSF request/response lifecycle
  3. Use Facelets tag libraries to build JSF views
  4. Use managed beans to encapsulate form handling and server-side presentation logic
  5. Implement control logic as JSF event listeners or action methods
  6. Use validators and converters to implement a validation phase for a JSF application
  7. Build composite UI fragments or custom components using Facelets
  8. Build Ajax applications with JSF: client-side behaviors and partial requests and responses followed by DOM updates
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 is required for this JavaServer Faces class:

  • 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.
Preparing for Class

Training for your Team

Length: 5 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

Training for Yourself

$2,125.00 or 5 vouchers

Upcoming Classes

  • See More Classes

Please select a class.
  • Live Online Training
  • For Individuals
  • Expert Instructors
  • Guaranteed to Run
  • 100% Free Re-take Option
  • 1-minute Video

What people say about our training

To-the-point and fast-paced course.
Phani Mantravadi
Jackson National Life Insurance Co
The instructor is very experienced, knowledgeable, and talented. He really brings the course materials to life.
Nicholas Mogielnicki
The Ohio State University Wexner Medical Center
Thorough JSF coverage by top-notch instruction.
Adam Dunn
UTHealth
Excellent course and instructor!
Chris Gabel
BC OnLine

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

60,501

Students who have taken Instructor-led Training

11,679

Organizations who trust Webucator for their Instructor-led training needs

100%

Satisfaction guarantee and retake option

8.64

Students rated our JSF 2.0 Training trainers 8.64 out of 10 based on 45 reviews

Contact Us or call 1-877-932-8228