Consulting Training Blog Careers About Us Contact Us

Migrating to JSF 2.0 Training

Course ID: CAP116
Duration: 2 Days

Upcoming Classes

Sorry, nothing scheduled right now. Click the Get Notified button below to be alerted when a class is scheduled.

Get Notified

On Site/Private

Can't find a class that fits right for you? Contact us to inquire about scheduling your own private class

Contact Us

Description

This fast-paced course helps experienced JSF-1.x developers jump into the much-improved JSF-2.0 architecture.  We highlight various improvements in pre-existing techniques--implicit navigation, new bean scopes, and so forth--and then spend most of the course on features that are entirely new to JSF 2.0.  Students refactor applications to take advantage of new support HTTP GET requests and query strings, and learn to use Facelets and managed-bean annotations, and to build JSF2 composite components.  JSF 2.0 is much more Ajax-aware than its predecessor, and the course concludes with a tour of lifecycle enhancements, the tag, and the standard JavaScript API to build Ajax applications in a straightforward way. 


 

Bring This Course To You

For groups of 5 or more, let Intertech bring this course to your location. Customized versions tailored towards your objectives are also available.

Learn More

Learning Objectives

  • Understand the key expansions in the JSF 2.0 architecture
  • Build applications in the typical JSF 2.0 style
  • Migrate from JSP to Facelets as the JSF view definition language
  • Design page flows to take best advantage of GET, POST, and redirect navigations, and pass form parameters and server-side information effectively in all cases
  • Use the new view scope for managed beans
  • Use managed-bean annotations and connect beans with managed-property annotations
  • 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

Prerequisites

Prior experience with JSF 1.x is strictly required.  Prior experience with an Ajax-aware JSF component library will be helpful in understanding some of the new features, but is not a requirement.

Course Outline

What's New in JSF 2.0

  • Overview of New Features
  • Issues with JSP and JSF
  • Facelets
  • Implicit Navigation
  • Conditional Navigation
  • Support for HTTP Get
  • System Events
  • New Scopes
  • Annotations
  • Validation Enhancements
  • JSR-303 Support
  • Resources
  • Composites
  • Ajax

Scopes

  • View and "None" Scope
  • Dependencies and Bean Scopes
  • Relationship Between Request and View Scopes

Using HTTP GET

  • Problems with POSTback
  • Post/Redirect/Get
  • Support for HTTP GET
  • View Parameters
  • The Flash
  • Limitations

Annotations

  • @ManagedBean and Related Annotations
  • The @Managed Property Annotation
  • Lifecycle Annotations
  • Best Practice Recommendations
  • @FacesConverter and @Faces Validator

Facelets

  • Migrating from JSP
  • View Definition Languages
  • Facelets
  • Tag Libraries
  • Writing and Using Custom Tags

Resources

  • Resource Libraries
  • Deploying Images, Scripts, and Stylesheets
  • Addressing Resources

Composites

  • Limitations of Custom Tags
  • Composite Components
  • Encapsulation
  • Deploying and Using Composites
  • Interface and Implementation
  • Impact on the UI Tree
  • Attributes
  • Retargeting

Ajax

  • What is Ajax?
  • The XMLHttpRequest Object
  • Ajax and JSF Lifecycle
  • Using
  • execute and render Attributes
  • Ajax Listeners

Free Resources from Intertech

Complete Guide to Becoming a Full Stack Developer

Free Book Chapter: Spring Web

Free Whitepaper: Spring 4 – Conditional Bean Configuration

X