FAST TRACK TO JAVASERVER FACES DEVELOPER’S WORKSHOP

Course Description  
JSF is a J2EE technology that focuses on simplifying the building of Web based user interfaces in Java.  It builds on existing technologies, such as Servlets and JSP, but solves many of the issues that arise when using them directly.  It does this by providing a standard component based user interface (UI) framework that can be leveraged by tools to provide a rich and easy to use development environment. This course will get you up to speed with JSF in a very short time.  It includes all the important concepts, as well as numerous hands on labs that will have you building working JSF applications very quickly. It covers all the important architectural concepts, as well as providing practical instruction on how to use the many capabilities of the JSF framework. The course includes a broad coverage of the most important JSF capabilities, including the JSF architecture, working with managed beans, the JSF Expression Language, the JSF core and HTML tag libraries, data tables, validation, and conversion. It also includes overview of advanced technologies, such as using JSF and Ajax. After learning this material, you'll be ready to use JSF to create your own solutions in the most demanding situations. All labs are done with the Eclipse IDE Java EE version deploying to the Tomcat server, and the lab instructions include detailed directions for using them.

Course Length: 3 Days
Course Tuition: $990 (US)
Prerequisites
A good working knowledge of Java, basic Web application structure, Servlets, JSPs, and Java Web applications.
Course Outline  


• Overview of Java EE and Java Web Applications
Java EE and Web Applications
Web-Based Architecture
Java EE Web Applications
Web Application Structure
Model View Controller and Java EE
MVC Pattern Flow
What are Servlets?
A Simple HTTP Servlet
How a Servlet Works
What is a JavaServer Page (JSP)?
JSP and JSP Expressions
JSPs are Really Servlets
Lifecycle of a JSP
Object Buckets or Scopes
Predefined JSP Variables – Implicit Objects
<jsp:usebean>
JSP Mixers Dynamic and Template Data
How a Servlet Works with a JSP
Web Archive – WAR Files
Deploying Web Applications
Custom Tags
Tab Libraries
taglib Directive in JSP
Custom Tags in a JSP Files
How a JSP Works with a Custom Tag

• Getting Started with JSF
JSF Purpose and Goals
JSF Addresses Servlet/JSP Shortcomings
JSF API
JSF as MVC
JSF Views
JavaBean Defined
Managed Beans as JSF Model
JSF Controller Components
Managed Beans – Part of JSF Controller
faces-config.xml Details
faces-config.xml Structure
Architecture Diagram
Downloading and Installing JSF
Your First JSF Application
Configuring FacesServlet in web.xml
JSF Controller
JSF HelloWorld
faces-config.xml
Creating/Deploying a JSF Application

• JSF Managed Beans
Defining a Managed Bean
Review of Managed Beans
A Simple Managed Bean
Managed Beans Lifecycle
faces-config.xml<managed-bean>
Managed Beans and JSF Forms
Examining the Logon Form
Linking Input Fields to Bean Properties
Submitting the Form
Static Navigation Rule
Form Processing
Value Binding Expressions
Value Binding Expressions & faces-config.xml
Data Binding
Value Binding Expressions are Read/Write
Managed Scopes
JSF EL (Expression Language)
EL Details
JSF EL Implicit Variables
Unified Expression Language

• JSF Navigation
Navigating in a Web Application
Static Navigation Rule
Multiple Navigation Rules
Dynamic Navigation Rules
Method Binding Expression Details
Dynamic Navigation Rule
Dynamic Navigation Rule Illustrated
<navigation-rule> and its Child Elements
Additional Navigation Capabilities

• JSF Tab Library
JSF Tag Goals
JSF Tag Libraries
UIComponent Tree – Behind the Scenes
Component Tree Illustrated
Page Processing
JSF Core Tag Library
Core Tags Overview
JSF HTML Tag Library
Editable Text Components – Input
Read-Only Text Components – Output
Basic Tag Attributes
Standard HTML Attributes
JSF from Above

• h:dataTable
Using <h:dataTable
How Data Tables Work
Headers and Footers
Complete <h:dataTable> Code Listing
<h:dataTable> Code Generation

• More About JSF Tags
Working with <h:commandLink>
Detail using <h:commandLink>
CommandLink – Action Attribute
FacesContext and ExternalContext
Giving Text Value to a Link
h:outputLink
Select Tags
Creating Options Data
Grouping Select Items
selectManyListbox
selectManyCheckbox
JSF Event Model
Action Events and Action Listeners
Defining Action Listeners
ActionEvent
Using Action Listeners
Action Listeners at Work
Immediate Attribute
Defining Listener Classes
f:actionListener
Value Change Events
Data Model Events

• JSF Validation
JSF Validation Overview
Type One: required Attribute
Detail Using required Attribute
Type Two: JSF Pre-built Validators
Detail Using JSF Pre-Build Validators
Custom Validator
Register Custom Validator
Using the Custom Validator
Custom Validation within Managed Bean

• JSF Conversion
JSF Data Conversion
Type Conversion
Implicit Conversion
JSF Converters
Converter Details
Converter Usage
JSF Conversion from Above
Custom Conversion

• JSF Lifecycle
Lifecycle Overview
Initial Request Lifecycle
Restore View, Apply Request Phases
Process Events – Common Processing
Validation, Update Model, Invoke Application
Render Response
Affecting the Lifecycle
Lifecycle Summary
Phase Listeners

• Additional Topics
Backing Beans & Binding to Components
Using a Component Instance
Binding to a Component Property
JSF and CSS
JSF and JavaScript
Localization and Resource Bundles
Ajax4jsf
Request Processing Flow
Ajax4jsf Component Structure
How the Ajax Filter Works
Ajax4jsf Request Processing Flow
Ajax4jsf Action Components
Ajax4jsf Container Components

Contact us for course schedules or more information.





Questions? Call Today!
800-735-7418