JSF Online Training
Introduction
JavaServer Faces (JSF) is a Java specification for building component-based user interfaces for web applications. It was formalized as a standard through the Java Community Process and is part of the Java Platform, Enterprise Edition. JSF 2 uses Facelets as its default templating system. Other view technologies such as XUL can also be employed. In contrast, JSF 1.x uses JavaServer Pages (JSP) as its default templating system.
Prerequisties
- All attendees should have a solid foundation in Java programming and OO principles.Course Content
Course Content
1. Introduction
- Java EE and Web Applications
- Perspectives: Servlets and JSP
- Perspectives: MVC Frameworks
- Perspectives: AWT and JFC
- JSF Value Proposition
- JSF Configuration
- Issues with JSP and JSF
- Facelets
2. Lifecycle
- The JSF Request/Response Cycle
- Lifecycle Phases
- Phase Listeners
- The FacesContext Class
- Who Does What
- Partial Request Cycles
3. UI Components
- The UI Component Class
- Behavioral Interfaces
- The Core and HTML Tag Libraries
- Relationship to CSS
- ID, Client ID, and Label
- UI SelectItem(s)
- Navigating the UI Tree
- The binding Attribute
4. Page Navigation
- View Selection
- Navigation Rules
- Implicit Navigation
- Problems with POSTback
- Post/Redirect/Get
- Support for HTTP GET
- Conditional Navigation
5. Managed Beans
- JavaBeans and JSF
- Backing Beans
- Configuring Managed Beans
- @ManagedBean and Related Annotations
- The Unified Expression Language
- Value and Method Expressions
- Implicit Objects
6. Scopes
- Managed-Bean Scopes
- Lifecycle Annotations
- View Parameters
- The Flash
7. Dependency Injection
- Managed Properties
- Values, Lists, and Maps
- Using Dynamic Expressions
- Dependencies and Bean Scopes
- The @ManagedProperty Annotation
8. Facelets
- Migrating from JSP
- View Definition Languages
- Facelets
- Tag Libraries
- Writing and Using Custom Tags
9. Events and Listeners
- JSF Event Model
- Event Types and Timing
- Event Queueing
- ActionEvent and ActionListener
- Action Methods
- Connecting Controllers to Beans
- ValueChangeEvent and ValueChangeListener
- Deferring Event Processing
- Limitations of FacesListeners
10. Lists and Tables
- Working with Collections
- Defining Columns and Facets
- One Command Per Row
- Reading the Row Number
- Pseudo-Maps
- Working with Persistent Data
- Concurrency and Caching
- Limiting the Scope of Queries
- Paging
11. Converters
- The Converter Interface
- Life of a Datum
- Standard Converters
- Custom Converters
- The @FacesConverter Annotation
- Timing of Conversion
- Representing Persistent Objects by ID
12. Validators
- The Validator Interface
- Standard Validators
- Using Regular Expressions
- Producing Error Messages
- Message Keys
- Presenting Error Messages
- Posting Error Messages from Anywhere
- Custom Validators
- The @FacesValidator Annotation
- Validating Multiple Inputs
- JSR-303 Support: “Bean Validation”
13. Resources
- Resource Libraries
- Deploying Images, Scripts, and Stylesheets
- Addressing Resources
14. Composites
- Limitations of Custom Tags
- Composite Components
- Encapsulation
- Deploying and Using Composites
- Interface and Implementation
- Impact on the UI Tree
- Attributes
- Retargeting
15. Ajax
- What is Ajax?
- The XMLHttpRequest Object
- Ajax and the JSF Lifecycle
- Using
- execute and render Attributes
- Ajax Listeners
16. The JSF JavaScript API
- The JSF JavaScript API
- Trigering Ajax Requests
- Refining with Callbacks
- on event and on error Attributes
- The Ajax Request/Response Process
- Using Hidden Inputs
- Other JavaScript Functions
Course Reviews
No Reviews found for this course.
Write a Review