TT6300: Core JavaServer Faces (JSF) Programming

Contact PI


  • classroom

  • virtual

  • Onsite
Duration: 3 Days

You will leave this course armed with the required skills to design, implement, and deploy JSF-based web applications utilizing Ajax. You will cover all the standard components, renderers, converters, and validators, along with how to use them to create solid applications. Working in a hands-on, lab-intensive environment, you will explore and use complex user interface layouts, prototyping, and integrating templates with back-end model objects. You will also cover advanced techniques like internationalization and extending JSF with custom components, renderers, converters, and validators.

What You Will Learn

 

  • JSF architecture
  • JSF request processing
  • JSF user interface components
  • UEL expression language
  • Event handling
  • Data validation
  • Data conversion
  • Rendering interface objects
  • Write web applications that take advantage of the FacesServlet, FacesContext, and Action Java classes to control the user experience of the web application
  • Write JSF applications that gather and update information from external application servers such as EJBs, CORBA servers, and database servers
  • Create and use custom Tag Libraries in JavaServer pages
  • Basics of web security and the security features provided by the Web Server
  • Standard JSF validators and how to write custom validators
  • Standard JSF data conversion classes and how to write custom data converters
  • JSF architecture supports rendering output in several formats from the same application (HTML, WML, XML, etc.)

Audience

 

Experienced Java developers that need to further expand their skills in web development

Prerequistes

 

Extensive working knowledge in developing J2EE applications

Course Outline

 

1. JSF

  • Goals
  • Benefits
  • JSF 2.0 Features
  • Development Roles
  • System Requirements
  • Concerns
  • Framework Structure

2. JSF Architecture

  • Architecture
  • Physical Components
  • How JSF Works
  • Faces Servlet
  • Lifecycle Object
  • Lifecycle Phases
  • Writing a JSF Application
  • Structure of a JSF Application

3. JSF Request Processing

  • Page Navigation
  • JSF Objects
  • FacesContext Object
  • UIViewRoot Object
  • UIComponent Interface
  • ExternalContext Object
  • Applications Object
  • Accessing Backing Beans
  • ValueExpression Object

4. JSF User Interface Obects

  • JSF Custom Tag Libraries
  • Panels

5. Unified Expression Language (UEL)

  • Basics
  • Identifiers
  • Implicit Objects
  • Operators
  • JSTL
  • JSTL Logic Tags

6. Event Handling

  • Java 2 Event Model
  • ActionEvent Class
  • ValueChangeEvent Class
  • Event Listeners in JSF
  • ActionListener
  • ValueChangeListener

7. Data Validation

  • Validation
  • Using Standard Validators
  • Handling Error Output
  • <f:validateLength>
  • <f:validateLongRange> & <f:validateDoubleRange>
  • Validators and Custom Validators

8. Data Conversion and Rendering

  • Data Conversion and Rendering
  • Data Conversion vsRendering
  • Converters and Custom Converters
  • Writing the Converter Class
  • Renderers
  • Creating the Renderer Class
  • Creating the Tag Handler
  • Taglib Descriptor
  • Registering the Renderer

Course Labs

 

This course is approximately 50% dynamic lab exercises and 50% lecture, designed to train you in essential Struts development skills, coupling the most current techniques with the soundest industry practices.