JavaServer Faces JSF Web Application Programming Using Rational Application Developer 7.5 Training

Duration: 
4 days
Codes: 
WA1699,JSF
Versions: 
7.5

Overview

This training course introduces the developer to the JSF architecture and provides the basis for planning, developing, and deploying Web based applications using the JSF framework. After taking this class, the developer will be able to quickly construct dynamic server-side web applications using JSF.

Audience

Software designers, developers and programmers

Skills Gained

This class combines lecture with hands-on experience, and open ended discussion that will help the developer quickly understand the benefits of JSF and how to use the framework. Upon completion of the course, students will:

  • Become familiar with the JSF tags for the commonly used HTML components in a form.
  • Learn how to write event handler methods in a managed bean.
  • Learn how to register the event handler method with a GUI component.
  • Write navigation rule in faces-config.xml.
  • Control the sequence of page display based on certain business logic.
  • Add very besic validation to the intro.jsp page
  • Display objects in an ArrayList in a data table.
  • Introduction and Overview
  • The JSF Architecture
  • JSF Request Objects
  • JSF User Interface components
  • The EL Expression Language and Advanced User Interface components
  • Event Handling
  • Data Validation
  • Data Conversion
  • Rendering Custom User Interface Objects
  • Facelets
  • Internationalization (i18n)
  • Java EE Server Side Enterprise Java Beans
  • Advanced XML

Prerequisites

Participants should already have a solid understanding of Java programming and understand the basics of XML. The course also assumes a basic understanding of HTML syntax and JavaServer Pages syntax. Understanding of Enterprise Java Beans (EJB) is also a plus.

Course Outline

Outline of JavaServer Faces (JSF) Web Application Programming Using Rational Application Developer 7.5 Training Chapter 1. Java Enterprise Edition (EE) Overview

  • Introduction to Java Platform
  • Java Community Process (JCP)
  • Introduction to Java EE
  • Why Move to Java EE
  • Java EE - New and Enhanced Features
  • Java EE Software Packaging
  • Java EE Technologies
  • Summary

Chapter 2. Introduction to Rational Application Developer (RAD) v7.5

  • The RAD 7.5 Product
  • Eclipse Platform
  • Rational Web Developer
  • Rational Application Developer
  • Key Features in RAD v7.5
  • Views, Perspective, and Editor Areas
  • Basic Operations with RAD Views and Perspectives
  • The Java Perspective
  • The Debug Perspective
  • Navigator View
  • Package Explorer
  • Outline View
  • Task and Problems View
  • Build and Validation
  • Import and Export Project
  • Project Interchange Feature
  • Code Completion, Templates and Snippets
  • Searching
  • Setup Compiler Class Path
  • JRE Switching
  • Migrating Workspace from RAD v6.0 or RAD v7.0
  • Backward Compatibility with RAD v7.0
  • References

Chapter 3. Introduction to JavaServer Faces

  • What is JavaServer Faces (JSF)?
  • Why Use JSF?
  • Nature of a JSF Application
  • The Sun Reference Implementation (RI)
  • JSF and MVC
  • Faces Servlet
  • Managed Bean
  • The View
  • A Simple JSF Application
  • The Input Form: form.jsp
  • The Result: thanks.jsp
  • The Controller: AddressBean
  • Page Flow or Navigation Rule
  • How Does the Application Work?
  • Under the Covers: The Rendered Form HTML
  • Under the Covers: The Layout Tree

Chapter 4. Managed Bean

  • What is a Managed Bean?
  • Why Do You Need Managed Beans?
  • Managed Bean As a Controller
  • Registering a Managed Bean
  • Lifecycle of a Managed Bean
  • Initializing a Managed Bean
  • What Scope to Use?
  • Value Binding
  • Property Data Conversion
  • Advanced Property Types
  • Component Binding
  • Other Binding Types
  • Basic Input Processing
  • Advanced Input Processing
  • JSF Expression Language
  • Language Basics
  • Use of Expression in JSF
  • Basic Expression
  • Property Access Expression
  • Map Access Expression
  • Complex Access Expression
  • Predefined Objects
  • Operators

Chapter 5. User Interface Components

  • JSF UI Components
  • JSF Component Tag Libraries
  • Using the Tag Libraries
  • HTML Tag Library
  • Identifying Components
  • Component Identifier
  • Client Identifier
  • Form Input Field Names
  • Define a Form
  • Labels and Images
  • Buttons
  • Links
  • Adding Parameters to Links
  • Text Input
  • Simple Check Box
  • Check Box Group
  • Check Box Group Example
  • Radio Button
  • List Boxes
  • Dynamic List Box
  • Example
  • Another Example
  • JSF Core Library
  • JSF Core Library - Components
  • JSF Component Model
  • Base Class Hierarchy
  • Useful Base Classes
  • Useful HTML Classes

Chapter 6. JSF Event Handling

  • Request Processing Phases
  • Action Request Processing Phases
  • JSF Event & Listener Model…
  • JSF Event Classes
  • Event Classes
  • Event Classes: Hierarchy
  • Action Event Handling
  • Action Event: Example
  • Action Listener
  • Value Change Event
  • Value Change Event Handler
  • Listener Classes
  • Listener Interfaces
  • Listener Classes: Hierarchy
  • Action Listener Class
  • Value Change Listener Class
  • Phase Event Listener
  • Request Processing Lifecycle
  • Phase Identifiers

Chapter 7. JSF Navigation

  • JSF Navigation
  • Example Action Listener
  • faces-config.xml File
  • Navigation Rules: Example
  • Choosing Between Redirect & Direct Rendering
  • Navigation: Scenarios

Chapter 8. Validation

  • Introduction
  • Validation
  • Standard Validators
  • Checking for Required Values
  • Showing Validation Error Messages
  • Customizing Standard Error Messages
  • Standard Validation Error Messages
  • Validation Process
  • Sequence Diagram
  • Bypassing Validation
  • Immediate Command Components
  • Immediate Input Components
  • Accessing User Input
  • Immediate Command Component Example
  • Immediate Input Component Example
  • Advanced Field Validation
  • Model Layer Error Handling

Chapter 9. Advanced GUI Components

  • HTML Panel
  • Applying Styles
  • Grouping Components
  • Data Table
  • Using a Data Table
  • Data Table Model
  • Displaying a Header and Footer Row
  • Adding Links to a Row
  • Using Component Binding
  • Handling Action
  • Using the Data Table Model

Chapter 10. Internationalization (I18N)

  • Internationalization
  • I18N
  • Locales
  • Default Locales
  • Resource Bundles
  • Updating faces-config.xml
  • Loading the Bundle
  • Display Localized Text
  • Example – Resource Bundles
  • Update faces-config.xml
  • JSP
  • View the JSP
  • Benefits
  • Parameterized Messages
  • Displaying Parameters
  • Changing the Locale

Chapter 11. Unified Expression Language

  • Unified Expression Language
  • Value Expressions
  • Method Expressions
  • Chained Resolution
  • Operators [] and .
  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Test for Empty Collection
  • Conditional Operator
  • Order of Evaluation
  • Introduction to JSTL
  • Using JSTL with JSF
  • The Tag
  • or ?
  • International Text Display Tags

Chapter 12. Custom Components

  • Custom Components
  • Requirements To Develop Custom Components
  • Classes Useful for Custom Component Developer
  • javax.faces.component.UIComponent
  • Implementing Custom Component Tags
  • FacesContext
  • javax.faces.application.Application
  • javax.faces.context.ResponseWriter
  • javax.faces.component.EditableValueHolder
  • Tag Library: TLD
  • Faces Configuration File: faces-config.xml
  • JSP: Example Showing Relationship Between JSF Artifacts
  • Generated HTML: Example Showing the Relationship Between the JSF Artifacts
  • TLD: Example Showing the Relationship Between the JSF Artifacts
  • Tag Class: Example Showing the Relationship Between the JSF Artifacts
  • Faces Configuration: Example Showing the Relationship Between the JSF Artifacts
  • Component Class: Example Showing the Relationship Between the JSF Artifacts
  • External Renderer
  • Renderer Defined in faces-config.xml
  • Implementing the Renderer
  • Renderer Example
  • Event Listeners
  • Using ActionListener in JSP
  • ActionListener in the Java Code
  • ActionListeners in JSF
  • Create Input Form
  • Input Form (Code)
  • ActionEvent Handling

Chapter 13. JSF Techniques

  • A Typical Application
  • The Create Form
  • Create Action Method
  • Listing Items
  • Editing an Item
  • Adding the Edit Link
  • The Edit Form
  • Update Item
  • Things to Keep in Mind

Chapter 14. Data Conversion Model

  • Conversion Overview
  • Different Viewpoints of Data
  • Process of Conversion
  • Why Local Values?
  • Types of Standard Converters
  • Standard Converters with JSF
  • Three Ways to Use Standard Converters
  • Bind UI Component to Backing Bean Property
  • Use "converter" Attribute on the UI Component
  • Use Tag with ConverterId Attribute
  • Usage of Standard Converters
  • Output of Using Standard Converters
  • Converter Attribute
  • Standard Converters to Display Output
  • Standard Converters: Screen Shot
  • Conversion Errors
  • Displaying Error Messages
  • Conversion Tag
  • Conversion Error: Display
  • Conversion Error
  • Custom Converter
  • Registering the Converter
  • Using the Registered Converter

Chapter 15. Custom Validators

  • Validation Review
  • Custom Validators
  • The Validator Interfaces
  • Creating a Custom Validator
  • Custom Validator Example
  • Creating a JSP Custom Tag
  • The ValidatorELTag Class
  • Custom Validator Tag Example
  • Create the TLD File
  • Using the Custom Tag
  • Validation from Managed Bean
  • Add Validation Logic
  • Use the Managed Bean Validator

Chapter 16. Introduction to Facelets

  • Constructing and Rendering a View (JSP way)
  • Facelets
  • Getting Facelets
  • Using Facelets
  • Page Templates
  • Define a Page Template
  • Define a Template Client
  • Run the Template Client

Chapter 17. JEE Application Deployment

  • Overview
  • Generate Deployed Code
  • Export EAR
  • Export EJB Client JAR
  • Export Utility JAR
  • JEE Deployment
  • WebSphere Profiles
  • Creating Profiles for RAD
  • Administrative Console
  • Environment Variable
  • Security
  • Resources
  • Creating JDBC provider
  • Creating Data Source
  • WebSphere MQ JMS Configuration
  • WebSphere MQ JMS Provider
  • Connection Factory
  • Destination
  • Activation Specification
  • Installing Applications
  • Starting an Application
  • Scripting in RAD
  • Script Configuration
  • Command Assistance Notifications

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. It's a cost effective option.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.