Skip to main content

Instructor-led training

Fast Track to JavaServer Faces 2 (JSF 2) : Using JSF 2 to Build JEE WebApps Using Rational Application Developer (RAD) Training in Tiffin, Ohio

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

What you'll learn

This course will get you up to speed with JSF 2 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. It includes coverage of all important capabilities that are new in JSF 2, including the use of Facelets, and using the new JSF 2 annotations. The course includes a broad coverage of the most important JSF capabilities, including the JSF architecture, working with managed beans, the JSF Expression Language, creating JSF pages with facelets and/or JSP, the JSF core and HTML tag libraries, data tables, validation, and conversion. 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 Tiffin, Ohio 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

A working knowledge of Java.

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 - facelets and JSP Pages
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 (annotation-based and configuration in faces-config.xm)
Managed Bean Lifecycle
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: Facelets and JSF Tag Libraries
Facelet Introduction and Life Cycle
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 Data Validation
Standard Validators
required, validateDoubleRange, validateLongRange
Creating, configuring, and using Custom Validators
 
Session 9: JSF Data Conversion
Standard JSF Converters
convertDateTime, convertNumber - configuration and usage
Custom Converters
 
Session 10: Templates
Layout Issues in Web Pages
Using Templates with Facelets
Creating Custom Composite Components
 
Session 11: 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 12: Additional Topics
Backing Beans / UIComponents
JSF and CSS
JSF and JavaScript
Localization and Resource Bundles
 
Session 13: JSF and Ajax
Ajax Overview
Using f:ajax
Event Triggers for "Ajax-ified" Components
Listener Methods
 
Session 14: Composite Components
Overview
Using composite:interface, composite:attribute, and composite:implementation
Passing Managed Beans and Methods to a Component
Adding Listeners and Actions
 
Session 15: JSP Pages
JSP Overview
Create JSF Pages Using JSP

What makes JSF 2 hard to master

The Java is rarely the obstacle. JSF is a component framework: a page is a server-side tree of components with its own lifecycle, not a template that runs once per request. Most early bugs come from not knowing which phase is running.

The syllabus builds the model in layers:

  • Web foundations (session 1). Servlets, scopes, the JSP lifecycle, custom tags and Model View Controller. JSF's scopes and tag libraries make little sense without these.
  • Beans and expressions (sessions 3-4). Managed beans defined by annotation or in faces-config.xml, bean lifecycle, value and method binding expressions, implicit objects and navigation rules. A common mistake is confusing a value binding, which reads and writes a property, with a method binding, which invokes an action.
  • Views and components (sessions 5-7, 10). Facelets, the core and HTML tag libraries, h:dataTable with f:facet, the h:selectXxx tags, the event model, and templates.
  • Validation and conversion (sessions 8-9). Converters turn request strings into typed values, then validators check them. Custom versions of both are covered.
  • Lifecycle (session 11). Restore View through Render Response, initial requests versus postbacks, renderResponse() and renderComplete(), and phase listeners. This is where the earlier topics connect. For example, a failed validation means the model is never updated, which surprises developers who expect the bean to hold the submitted value.
  • Ajax and composite components (sessions 13-14). f:ajax adds partial requests on top of the same lifecycle, so it is easier to debug once the phases are clear.

The syllabus also covers JSP-based JSF pages (session 15) next to Facelets, so you can maintain either style.

Who it suits and what to take around it

This is an introductory, four-day course for Java developers who need to build or maintain JSF web front ends. The only stated prerequisite is a working knowledge of Java. Session 1 reviews servlets, JSPs and MVC, but a team with no web-tier background will move faster after Fast Track to Servlets/JSP Using Rational Application Developer (RAD), since JSF scopes, tags and the request model build directly on it.

JSF covers the presentation tier only. Syllabus topics such as managed beans and data tables show where a business or persistence layer plugs in, but they do not teach it. For that, Fast Track to EJB 3.2 (JEE 7 level) and JPA2 is a natural next step. Building Modern Java Enterprise Apps: JPA, EJB3, & JSF suits teams that want JSF in the context of the whole stack.

Organizations on a different Java or JSF version than the course default can ask about private training tailored to their versions through a training proposal. The wider catalog is at 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 an order or claims form that uses required, validateDoubleRange and validateLongRange, convertDateTime and convertNumber, and a custom validator for a business rule. Understanding the lifecycle tells them why an error message appears and the bean stays unchanged.
  • A browsable list screen. For example, an internal tool might show a List of records in h:dataTable, with headers and footers through f:facet. It could add h:selectManyListbox filters, and action and value-change listeners to react to user choices.
  • A consistent look across many pages. A team might put the shared layout in a Facelets template and wrap a repeated address or contact block as a composite component. The block would use composite:interface and composite:implementation and receive its bean and action methods as attributes. A page could then refresh part of itself with f:ajax instead of a full postback.

Using AI coding assistants with JSF 2

AI coding assistants can draft a managed bean, a facelet form, a basic h:dataTable or a skeleton validator or converter quickly. They save the most time on repetitive markup and boilerplate.

They tend to fail in ways specific to JSF:

  • Mixed generations. JSF has years of older examples that rely on JSP views and faces-config.xml configuration. Suggestions may mix those with annotation-based beans and Facelets, producing pages that do not render or beans that are never registered.
  • Wrong scope or lifecycle assumptions. A generated bean may have the wrong scope, or logic placed in a phase where the model has not been updated yet.
  • Invented or misused tag attributes. Check every attribute and namespace against the tag library you are using, especially for f:ajax and composite components.
  • Converter and validator contracts. Generated custom ones often skip null or empty-value handling and error-message plumbing.

To verify, run the page and watch the phases with a phase listener, as covered in the lifecycle session. Test each form with invalid, empty and boundary input. Confirm the Java and JSF versions in your project before accepting generated code. Review any code that renders user-supplied values for escaping and injection risks.

Frequently asked questions

What level is this course and what do I need beforehand?

It is introductory and runs four days. The stated prerequisite is a working knowledge of Java. The first session reviews servlets, JSPs, custom tags and MVC, so deep web experience is not assumed.

What does the course cover?

The syllabus covers JSF architecture, managed beans, the JSF Expression Language, navigation, Facelets, the core and HTML tag libraries, h:dataTable, validation, conversion, templates, composite components, the JSF lifecycle and f:ajax. It also covers CSS, JavaScript, localization with resource bundles, and building JSF pages with JSP.

Can this course be delivered privately for our team?

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

Can the content be customized?

Private course content can be customized, including to the technology versions your organization uses. Use the training proposal request to describe your stack and goals.

Training locations

Fast Track to JavaServer Faces 2 (JSF 2) : Using JSF 2 to Build JEE WebApps Using Rational Application Developer (RAD) training across the U.S. and beyond.

We provide private Fast Track to JavaServer Faces 2 (JSF 2) : Using JSF 2 to Build JEE WebApps Using 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 2 (JSF 2) : Using JSF 2 to Build JEE WebApps Using 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.