Courses
 
 
Java Server Faces (JSF)
 
Duration:   3 days Level:  Advanced Format:   50% hands-on
 
Description:
JavaServer Faces (JSF) technology provides event driven, component-based technology and simplifies building user interfaces for Java Server applications. Developers can build web applications quickly & easily by assembling reusable UI components in a page, connecting these components to an application data source, and wiring client-generated events to server-side event handlers. The user interface code runs on the server, responding to events generated on the client. This allows the application developer to focus on application code.

JavaServer Faces 1.0 Framework makes it easy to build powerful and dynamic web applications.
 
Upon completion, students will be able to:
Understand the life-cycle and component model of the JSF framework
Understand the event handling model of the JSF framework
Use the JSP tags to access the components
Use the JSF validators
 
Topics:
1 Overview of JSF
2 Simple JSF application
3 JSF components and life-cycle
4 Using UI components
5 JSF Validation Framework
6 Using Backing Beans in JSF
7 Custom UI Components
 
Contents:
1 Overview of J2EE
 
  • The need for distributed enterprise applications
  • The typical enterprise architecture
  • The J2EE architecture
  • Major roles in designing, developing, and deploying J2EE applications
  • J2EE Application development life cycle
  • J2EE deployment descriptors - DDs, EARs, JARs, WARs
  • J2EE-compliant Application servers : WebSphere, WebLogic, JBoss, Sun, Oracle
  • J2EE Development tools / IDE
   
2 Overview of JSF
 
  • Overview of JSF framework
  • Java Server Faces Technology benefits
  • Architecture
  • Application development Roles
   
3 JSF components and life-cycle
 
  • Use Interface component model
  • Navigation model
  • Backing bean management
  • How JSF components fits together
  • Life-cycle of JSF pages
   
4 Simple JSF applicaiton
 
  • JSF web application overview
  • Development IDE overview
  • Create Web application project
  • Develop model objects which holds the data
  • Develop the backing beans
  • Add managed bean declarations
  • Create the pages using UI components
  • Define the page navigation
  • Configure web application using web.xml
  • Deploy JSF web application
  • Run JSF web application
   
5 Using UI components
 
  • Accessing JSF tags
  • Using the JSF core tags
  • Using the HTML tags from render kit
   
6 Event Handling in JSF
 
  • JSF Event & Listener Model
  • Implementing Event Listeners
  • Handling Value-Change events
  • Handling Action events
   
7 Using Backing Beans in JSF
 
  • Creating Backing Beans
  • Binding Component values and instances to a property
  • Writing Backing Bean methods
    • Implement a method to manage navigation
    • Implement a method to handle an Action event
    • Implement a method to perform validation
    • Implement a method to handle a Value-Change event
  • Configuring Beans
    • Using the managed-bean element
    • Initializing properties
    • Initializing maps and lists
   
8 JSF Converters
 
  • Why converters required?
  • JSF Standard Converters
  • Applying Standard Converters
  • Developing JSF Custom Converter
  • Registering and using JSF Custom Converter
   
9 JSF Validation Framework
 
  • JSF Validation framework - overview
  • Standard Validator classes
  • Applying Standard Validator
  • Displaying Validation Error messages
  • Steps for creating custom validator
  • Creating Custom Validator tag and tag handler
  • Registering the Custom validator
   
10 Internationalization in JSF web application
 
  • Internationalization and Localization concepts
  • Locale and Resource Bundle
  • Providing Localized Messages and Labels
  • Establishing the Locale
  • Setting the Resource Bundle
  • Retrieving Localized Messages
  • Localizing Dynamic data
  • Date and number formatting
   
11 Custom UI Components
 
  • Creating Custom components
  • When (not) to create custom components
  • Component, Renderer and Tag combinations
  • Steps for creating a custom component
    • Creating the Component tag handler
    • Defining the Custom Component Tag in a Tag library descriptor
    • Creating Custom Component classes
    • Delegating Rendering to a Renderer
    • Handling Events for Custom Components
 
Hands-on Labs:
1 Install softwares for the lab
2 Building and running a web application
3 Developing JSF-based web application
4 Using JSF Core and HTML tags
5 Using JSF UI Components
6 Using Backing beans to control JSF application
7 Using JSF Converters and Validators
8 Internationalizing a JSF-based web application
9 Develop JSF Component - Stock Quote Viewer
   
Prerequisites:
Audience should have strong knowledge of Java and experience in Web application development, especially using JSP and Servlet technology. Prerequisites can be satisfied by taking Eclipse University Course "J2EE design and development".
   
Audience:
Architects, designers, analysts, and developers.