Skip to main content

Instructor-led training

Fast Track to JavaServer Faces (JSF) : Using JSF to Build J2EE Web AppsUsing Rational Application Developer (RAD) Training in Arnold, Missouri

This three-day course will get you up to speed with JSF in a very short time.

What you'll learn

This three-day 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.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Arnold, Missouri or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Suitable for programmers with some previous experience in working with Java and Object-Oriented (OO) programming.

Course Outline

Session 1: Overview of Java EE and Java Web Applications
Java EE and Web App Overview
Servlet, Servlet Scopes
JSPs, JSP Lifecycle
Custom Tags, Tag Libraries, taglib directive
Model View Controller
 
Session 2: Getting started with JSF  
JSF Overview
Purpose and Goals
JSF Architecture
JSF Views, Managed Beans, Controler, configuration
Downloading and Installing JSF
Your first JSF Application - setup, configuration, deployment
Server setup and use
 
Session 3: Managed Beans
Defining a Managed Bean
Managed Bean Lifecycle
elements in faces-config.xml
Managed Beans and JSF Forms
Managed Beans as Value Binding Expressions
JSF Expression Language (EL) & the Unified EL (JSF 1.2)
Value Binding Expressions
Method Binding Expressions
Implicit Objects
 
Session 4: JSF Navigation
configuration issues
and nested elements
How to use the navigation rules
 
Session 5: The JSF Tag Libraries
JSF Tag Library Overview
JSF Core tags
JSF HTML tags
Using the Most Common Form controls – TextFields, Buttons, Links …
 
Session 6: h:dataTable
tag and nested tags etc.
Working with collections of type List or array
Table headers and footers, f:facet
 
Session 7: More about JSF Tags
Using and
Using the h:selectXxx Tags (e.g h:selectManyListbox)
JSF Event Model (Action, Value Change, and Data Model Listeners)
 
Session 8: JSF Validation
Standard Validators
required, validateDoubleRange, validateLongRange
Creating, configuring, and using Custom Validators
 
Session 9: JSF Conversion
Standard JSF Converters
convertDateTime, convertNumber - configuration and usage
Custom Converters
 
Session 10: JSF Lifecycle
Lifecycle Overview
Initial requests and postbacks
Restore View, Apply Request Values, Process Events, Process Validations, Update Model Values, Invoke Application, Render Response
renderResponse() and renderComplete()
Phase listeners
 
Session 11: Additional Topics
Backing Beans / UIComponents
JSF and CSS
JSF and JavaScript
Localization and Resource Bundles
Ajax4jsf - Using Ajax with JSF

What makes JSF hard to master

JSF is a component framework, not a template with form handlers. The syntax is easy to pick up. The difficulty is that the framework runs a fixed processing sequence around your code, and many bugs come from not knowing where in that sequence something happens. The syllabus builds toward this in order.

  • Web foundations first (session 1). Servlets, servlet scopes, the JSP lifecycle, custom tags and the taglib directive, and Model View Controller. Managed bean scope and the JSF tag libraries make little sense without these.
  • Managed beans and the Expression Language (session 3). Value binding expressions read and write properties, and method binding expressions invoke actions. The syllabus covers the Unified EL (JSF 1.2), implicit objects, and bean definitions in faces-config.xml. A common misconception is that a bean is just a form-backing object. Its scope and lifecycle decide what state survives between requests.
  • Tags and data tables (sessions 5-7). The core and HTML tag libraries, form controls, h:dataTable over a List or array, headers and footers with f:facet, h:selectXxx tags, and the event model.
  • Validation and conversion (sessions 8-9). Standard and custom validators and converters, including convertDateTime and convertNumber. Developers often expect a failed validation to leave the model untouched, and it does, but they cannot explain why until they know the lifecycle.
  • The lifecycle (session 10). Restore View through Render Response, initial requests versus postbacks, renderResponse() and renderComplete(), and phase listeners. This session ties the earlier ones together and is the most useful debugging tool in the course.

Navigation rules (session 4) add a further indirection: actions return outcomes, and configuration maps outcomes to pages.

Who it suits and what to take around it

This is an introductory, three-day course for programmers with some Java and object-oriented experience. It suits teams that build, maintain or support JSF applications defined by faces-config.xml managed beans and navigation rules, and teams moving a web team from Servlets/JSP to a component model. The course title names Rational Application Developer as the development environment. The syllabus itself lists server setup, configuration and deployment of a first application.

Session 1 reviews servlets, JSPs and custom tags, but developers with no web experience will get more from the fuller treatment in Fast Track to Servlets/JSP Using Rational Application Developer (RAD), because JSF's scopes, tags and lifecycle build directly on them.

For the next step, Fast Track to JavaServer Faces 2 (JSF 2) suits teams whose applications use the later JSF generation. To connect views to a business and persistence tier, Fast Track to EJB 3.0 (JEE 5 level) is a natural companion.

This course lists Java SE 7 and earlier, which is out of support. Organizations on newer Java releases can ask about customized private training tailored to the versions they run. Browse related topics in the Java Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • A data-entry form with strict input rules. A team might build a customer form where required fields, numeric ranges and date formats are enforced. That maps to the standard validators (required, validateLongRange, validateDoubleRange), convertDateTime/convertNumber, and a custom validator for a business rule.
  • A list page with selection controls. For example, a page that shows a collection from a managed bean in an h:dataTable with f:facet headers and footers, plus an h:selectManyListbox that feeds filters. It combines value binding, collection handling and the event model.
  • A multi-step flow with localized text. A team might define navigation rules between pages, move labels into resource bundles for localization, and use Ajax4jsf for partial updates. A phase listener can trace the request through the lifecycle when a field fails to update.

AI coding assistants and JSF

AI coding assistants can draft a managed bean, a simple converter or validator class, boilerplate h:dataTable markup, or a resource bundle. They are useful for repetitive scaffolding.

They fail in predictable ways for this material:

  • Version mixing. JSF code found online spans several generations. An assistant may suggest annotation-based beans or different view technology where this course's syllabus uses faces-config.xml beans, JSP-based views and the JSF 1.2 Unified EL. Check every suggestion against the project's actual JSF and Java versions.
  • Lifecycle blindness. Assistants often put logic in a getter or setter that runs several times per request, or expect the model to update after a validation failure. Neither fits the phase order from session 10.
  • Configuration gaps. Generated navigation rules and bean scopes can look right but reference the wrong outcome string or a scope that loses state.

To verify, run the page and log each phase with a phase listener. Test invalid input to confirm the model is not updated. Test a postback against an initial request. Review scope choices and any custom validator by hand, since input handling is a security boundary.

Frequently asked questions

What level is this course and who should take it?

It is introductory and runs three days. It suits programmers with some Java and object-oriented experience who need to build or maintain JSF web applications.

Do I need web development experience first?

The stated prerequisite is prior Java and OO experience. Session 1 reviews servlets, scopes, JSPs, custom tags and MVC, so basic web knowledge is helpful but is not assumed beyond that review.

What does the course cover?

The JSF architecture, managed beans and the Expression Language, navigation rules, the core and HTML tag libraries, h:dataTable, validation, conversion, the request lifecycle and phase listeners. It closes with backing beans, CSS, JavaScript, localization and Ajax4jsf.

Can this be delivered privately for our team, onsite or online?

Yes. HSG delivers private training for organizations at the client's location or live online.

Can the content be customized to the versions we use?

Private training can be tailored to the technology versions an organization uses, including current releases. You can request a training proposal to discuss your environment.

Training locations

Fast Track to JavaServer Faces (JSF) : Using JSF to Build J2EE Web AppsUsing Rational Application Developer (RAD) training across the U.S. and beyond.

We provide private Fast Track to JavaServer Faces (JSF) : Using JSF to Build J2EE Web AppsUsing Rational Application Developer (RAD) training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Fast Track to JavaServer Faces (JSF) : Using JSF to Build J2EE Web AppsUsing Rational Application Developer (RAD) training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.