|
Home > Training >
JBoss
>
|
WA2001 What's New in JSF 2.0 - JBoss / Eclipse Training and Courseware
|
JavaServer Faces, or JSF 2.0 is a major update to the technology. Since many Java EE developers may already be familiar with the technology, this class allows those developers to focus only on the new features. These features include new JSF annotations, new managed bean scopes, integration with CDI (Contexts and Dependency Injection), JSF GET requests, JSF AJAX support, and more. |
|
Although JSF 1.x was a solid web application framework there were some specific things that were difficult to do. Many features of JSF 2.0 were added to address these specific weaknesses and this course will make sure that developers know how to effectively use JSF 2.0 to implement robust Java EE web applications. This class also focuses on how native AJAX support has been built into the JSF 2.0 standard making it very easy to use JSF to enrich web applications with AJAX (JavaScript) functionality without actually doing any JavaScript programming.
Objectives
|
| |
This class combines lecture with hands-on experience, and open ended discussion that will help the developer quickly understand the new features of JSF 2.0. Upon completion of the course, students will:
- Utilize new JSF 2.0 managed bean scopes to implement specific application behavior with improved performance
- Use the JSF 2.0 support of GET requests to provide request parameters in links and be able to bookmark JSF pages
- Use the JSF 2.0 integration with CDI (Contexts and Dependency Injection) including the CDI support of "conversational" web applications
- Utilize the native AJAX support of JSF 2.0 to easily add AJAX (JavaScript) functionality
- Provide JSF page templates with the standardization of Facelets
- Easily define JSF 2.0 custom components without complex Java programming
- Use the new JSF system event mechanism to easily define ways for components to be notified of specific JSF events without implementing the complex "PhaseListener" interface
|
|
Topics
|
| |
- New features of JSF 2.0
- JSF Managed Bean scopes including new scopes in JSF 2.0
- JSF GET requests and view parameters
- JSF Integration with Contexts and Dependency Injection (CDI)
- Using AJAX with JSF
- Introduction to Facelets
- Facelets Composite Components
- JSF System Events
|
|
Audience
|
| |
Software designers, developers and programmers experienced with JSF 1.x |
|
Prerequisites
|
| |
Participants should already have an understanding of Java programming and JSF 1.x. Since this course covers only the new features of JSF 2.0, anyone taking this course without some JSF experience will not get the full understanding of all of the features of JSF.
For those that require JSF experience before this course one of the following courses are suggested:
|
|
Duration
|
| |
Two days |
|
|
Course Outline
Chapter 1. What's New in JSF 2.0
- JSF 1.x Issues
- Easier Configuration in JSF 2.0
- Additional Scopes
- Non-JSP Views in JSF 2.0
- Expanded Navigation
- GET Request Support
- Example of Using GET Requests
- AJAX in JSF 2.0
- Other Changes in JSF 2.0
- Summary
Chapter 2. Managed Bean Scopes in JSF
- Scopes Defined by JSF
- Implications of Session Scope
- ViewScoped Managed Beans
- The Flash Object
- Using the Flash Object with Redirects
- Custom Scopes
- Summary
Chapter 3. JSF GET Requests and View Parameters
- Using GET Requests with JSF
- New <h:link> and <h:button> Tags
- Use Cases for View Parameters
- Defining View Parameters
- Using a PreRenderViewEvent
- Bookmarking JSF Pages
- Summary
Chapter 4. JSF Integration with Contexts and Dependency Injection (CDI)
- Using CDI Beans in JSF
- Injecting CDI Beans
- Conversation Scope
- Use Cases of Conversation Scope
- Beginning and Ending a Conversation
- Propagating Conversations
- Using Stateful Session EJBs for JSF Actions
- Summary
Chapter 5. Using AJAX with JSF
- Integrated AJAX Support in JSF 2.0
- The JSF Request Lifecycle for AJAX
- JSF JavaScript API
- New <f:ajax> Tag
- Partial Page Rendering
- Third Party JSF Libraries with AJAX
- Summary
Chapter 6. Introduction to Facelets
- Facelets
- Using Facelets
- Page Templates
- Define a Page Template
- Define a Template Client
- Run the Template Client
- Summary
Chapter 7. Facelets Composite Components
- Simplified Custom JSF Components
- Defining Composite Components
- Defining and Setting Component Attributes
- Using Composite Components
- Nested Composite Components
- Summary
Chapter 8. JSF System Events
- System Events
- Built-in System Events
- Listening for System Events
- Alternative to Phase Listeners
- System Events for Multi-Component Validation
- Using Events to Change the Rendered View
- Summary
Chapter 9. Miscellaneous New Features in JSF 2.0
- Project Stage
- @ManagedProperty Annotation
- Calling Methods in EL Syntax
- Conditional Navigation
- Dynamic Target Views
- Summary
|
|
|
We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston,
Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.
|
|
|