Skip to main content

Instructor-led training

Fast Track to JavaServer Faces 2 (JSF 2) : Using JSF 2 to Build JEE Web Apps Training in State College, Pennsylvania

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 m aterial, 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 State College, Pennsylvania 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

Java, HTML, and XML programming experience is recommended.

Course Outline

 
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
 
Getting started with JSF  
JSF Overview
Purpose and Goals
JSF Architecture
JSF Views, Managed Beans, Controller, configuration
Downloading and Installing JSF
Your first JSF Application - setup, configuration, deployment
Server setup and use
 
Managed Beans
Defining a Managed Bean
Managed Bean Lifecycle
<managed-bean> 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
 
JSF Navigation
<navigation-rule> configuration issues
<navigation-case> and nested elements
How to use the navigation rules
Session 5: The JSF Tag Libraries
JSF Tag Library Overview
JSF Core tags <f:tagName>
JSF HTML tags <h:tagName>
Using the Most Common Form controls – TextFields, Buttons, Links …
 
h:dataTable
<h:dataTable> tag and nested tags <h:column> etc.
Working with collections of type List or array
Table headers and footers, f:facet
 
More about JSF Tags
Using <h:commandLink> and <h:outputLink>
Using the h:selectXxx Tags (e.g h:selectManyListbox)
JSF Event Model (Action, Value Change, and Data Model Listeners)
 
Standard Validators
required, validateDoubleRange, validateLongRange
Creating, configuring, and using Custom Validators
 
JSF Conversion
Standard JSF Converters
convertDateTime, convertNumber - configuration and usage
Custom Converters
 
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
 
Additional Topics
Backing Beans / UIComponents
JSF and CSS
JSF and JavaScript
Localization and Resource Bundles
Ajax4jsf - Using Ajax with JSF

What makes JavaServer Faces hard to master

The Java is rarely the obstacle. JSF is a component framework that runs a fixed request lifecycle on your behalf, so bugs tend to show up as values that never reach a bean or as validation messages that appear unexpectedly. The syllabus builds up the pieces in this order.

  • Web foundations first. It begins with Java EE web applications, servlets and servlet scopes, JSPs and their lifecycle, custom tags and Model View Controller. Developers who skip this layer struggle to see what JSF adds.
  • Beans and expressions. Managed beans, their lifecycle, <managed-bean> entries in faces-config.xml, and the JSF Expression Language (value binding, method binding, implicit objects) connect pages to code. Navigation rules (<navigation-rule>, <navigation-case>) are configured separately and are a common source of "the wrong page appeared" problems.
  • Components. The core and HTML tag libraries, h:dataTable with columns and facets, the h:selectXxx tags, and the event model (action, value change, data model listeners).
  • Validation and conversion. Standard and custom validators and converters, including convertDateTime and convertNumber.
  • The lifecycle last. Restore View through Render Response, initial requests versus postbacks, renderResponse(), renderComplete() and phase listeners. This is where the earlier topics fit together, and it explains why a failed conversion or validation stops the model from being updated.

A common misconception is that a JSF page is just JSP with different tags. The component tree and the lifecycle phases are what determine behavior. The course description also covers Facelets and the JSF 2 annotations as new in JSF 2.

Who it suits and what to take around it

This is an introductory, three-day course for Java developers who are new to JSF. Java, HTML and XML experience is recommended. The XML matters because much of the configuration (faces-config.xml, navigation rules, managed bean declarations) is written in it.

The syllabus opens with a Java EE web refresher, so you do not need deep servlet experience. If your team is entirely new to server-side Java web work, the Fast Track to Servlets/JSP course covers the request/response and scope concepts that JSF sits on, and it gives you more time on them than this course can.

After this course, the natural step is persistence and business logic behind your beans. Building Modern Java Enterprise Apps: JPA, EJB3, & JSF puts JSF in the context of a full enterprise stack. For the wider catalog, see the Java Programming courses and learning guide.

Organizations on a specific Java or JSF version can ask about private training tailored to it through a training proposal.

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.

  • An internal data-entry application. A team might build a form-driven screen backed by managed beans. Required fields, validateLongRange checks and a custom validator enforce business rules, while date and number converters handle formatting. Navigation rules route the user to a confirmation page.
  • A listing screen. A team might show a List of records in an h:dataTable with header and footer facets. h:commandLink and h:outputLink would provide row-level actions and navigation.
  • Maintaining an existing JSF application. A developer inheriting a JSF application with faces-config.xml bean declarations might use phase listeners and the lifecycle phases to trace why a value is not updating. Resource bundles could be added to localize the UI.

AI coding assistants and JSF

AI coding assistants can draft a managed bean, a facelet page with a form, or a first-pass custom validator or converter, and they can explain an EL expression. They are weakest where JSF depends on context they cannot see.

  • Mixed versions and styles. JSF material spans several generations, and suggestions often blend XML-declared beans with annotation-based ones, or tags and namespaces from different versions. Check the output against the JSF and Java versions your project actually runs.
  • Lifecycle bugs. Assistants often put logic in the wrong phase, such as expecting model values to be set before validation passes. Confirm behavior with a phase listener or by logging each phase.
  • Navigation and scope. Generated navigation outcomes may not match your <navigation-case> entries, and bean scope choices can cause state to leak between users or disappear between requests.
  • Security. Review generated converters, validators and any JavaScript or Ajax integration for injection and unsafe output handling.

To verify, run the page, submit invalid and valid input, and confirm which phase handled each case. Then compare the result with what the generated code claimed.

Frequently asked questions

What level is this course?

It is introductory and runs three days. It suits Java developers who are new to JSF and want a fast, broad start.

What should I know beforehand?

Java, HTML and XML programming experience is recommended. The syllabus begins with a review of Java EE web applications, servlets, JSPs and MVC, so deep servlet experience is not assumed.

What does the course cover?

It covers the JSF architecture, managed beans, the Expression Language, navigation rules, the core and HTML tag libraries, data tables, the event model, validators, converters and the request lifecycle with phase listeners. Additional topics include backing beans, CSS, JavaScript, localization with resource bundles, and Ajax4jsf.

Can the course be delivered privately, onsite or online?

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

Can the content be customized?

Private training can be customized, including tailoring to the technology versions your organization uses. You can describe your needs through a training proposal request.

Training locations

Fast Track to JavaServer Faces 2 (JSF 2) : Using JSF 2 to Build JEE Web Apps training across the U.S. and beyond.

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