Skip to main content

Instructor-led training

JSF Development with ICEfaces Training in Fort Morgan, Colorado

This comprehensive course puts the experienced Java developer in good position to build sophisticated web applications using JavaServer Faces and the ICEfaces component library.

What you'll learn

This comprehensive course puts the experienced Java developer in good position to build sophisticated web applications using JavaServer Faces and the ICEfaces component library. A first module introduces the best-practice concepts of MVC architecture and command-object encapsulation that propel the JSF architecture. Students create JSF applications by organizing their pages as JSF component trees, and their server-side code as JSF managed beans and controllers. They add data-conversion and validation logic and generally get accustomed JSF programming practice. The second module begins with backgrounders in both JSF custom component architecture and Ajax development, as these are essential to understanding both the purpose and the design of ICEfaces. Then, the bulk of this module consists in practical, hands-on exercise with ICEfaces. We focus on Ajax -- partial submits and responses, and Ajax Push -- and other cross-cutting features of the framework. Then we survey the component library, drilling down on a few of the most interesting components and getting a feel for the capabilities of the library as a whole. By the end of the course students are building applications with popup calendars, modal dialogs, tabbed panes, tables, and other cutting-edge UI features.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Fort Morgan, Colorado 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

This course is intended primarily for experienced JSF application developers. Java programming experience is essential. JSP page-authoring experience is required. Servlets programming experience is recommended but not required. Basic knowledge of XML will be helpful, as will any previous experience with HTML.

Course Outline

Module 1. JavaServer Faces

Chapter 1. Overview

  • Java EE and Web Applications
  • Perspectives: Servlets and JSP
  • The Model/View/Controller Pattern
  • Perspectives: MVC Frameworks
  • The Command Pattern
  • Perspectives: AWT and JFC
  • JSF Value Proposition
  • JSF Configuration

Chapter 2. Lifecycle and Page Navigation

  • The JSF Request/Response Cycle
  • Lifecycle Phases
  • The FacesContext Class
  • Who Does What
  • View Selection
  • Navigation Rules
  • Outcomes

Chapter 3. User Interface Components

  • The Composite View Pattern
  • The UIComponent Class
  • Behavioral Interfaces
  • The Core and HTML Tag Libraries
  • Relationship to CSS
  • ID, Client ID, and Label
  • The UISelectItem(s) Class
  • Navigating the UI Tree

Chapter 4. Managed Beans

  • JavaBeans and JSF
  • Backing Beans
  • The Factory Pattern
  • Managed Beans
  • Coarse-Grained Beans
  • The Unified Expression Language
  • Value Expressions
  • Dependency Injection
  • Bean Scopes

Chapter 5. Events and Controllers

  • The Observer Pattern
  • JSF Event Model
  • Event Types and Timing
  • Event Queueing
  • ActionEvent and ActionListener
  • Action Methods
  • Connecting Controllers to Beans
  • Dynamic Outcomes
  • ValueChangeEvent and ValueChangeListener
  • Limitations of FacesListeners

Chapter 6. Converters

  • The Adapter Pattern
  • The Converter Interface
  • Standard Converters
  • Working with Enumerated Types
  • Timing of Conversion
  • Custom Converters
  • Configuring Converters

Chapter 7. Validators

  • Validating Input
  • The Validator Interface
  • Standard Validators
  • Producing Error Messages
  • Message Keys
  • Presenting Error Messages
  • Custom Validators
  • Validating Multiple Inputs
  • Using a PhaseListener
 

Module 2. ICEfaces

Chapter 1. Custom Components

  • UI Component Libraries
  • Using a Custom Component Library
  • The Components of a Component
  • Delivering JavaScript
  • Blending Client- and Server-Side Logic

Chapter 2. Ajax Applications

  • What is Ajax?
  • Request Formats
  • Asynchronous Response Handling
  • Alternatives: XMLHttpRequest
  • Alternatives: Direct Web Remoting
  • JSF for Ajax
  • ICEfaces

Chapter 3. ICEfaces Architecture

  • The ICEfaces Value Proposition
  • Acquiring and Configuring ICEfaces
  • PersistentFacesServlet and BlockingServlet
  • JSP, JSP Documents, and Facelets
  • Ajax via "Parital Submit"
  • Ajax Push: RenderManager vs. SessionRenderer
  • Drag and Drop
  • Security Features

Chapter 4. ICEfaces Components

  • Extended Components
  • Custom Components
  • Layout Managers
  • Component Stylesheets
  • <ice:dataTable>
  • <ice:selectDateInput>
  • <ice:panelTooltip>
  • <ice:panelPopup>
  • <ice:panelTabSet>
  • <ice:outputChart>
  • Visual Effects

Appendix A. Learning Resources

Appendix B. JSF Quick Reference

  • JSF Custom Tags
  • Packages and Classes
  • JSF API: Finding Things
  • JSF API: Controllers, Converters, and Validators

What makes JSF and ICEfaces hard to master

The difficulty is mostly the lifecycle, not the Java. In JSF, the framework decides when your code runs. A value that looks wrong on screen usually traces to a phase: conversion and validation happen before the model is updated, and action methods run after. The syllabus builds this understanding in order.

  • Request cycle first. Module 1 covers the lifecycle phases, FacesContext, navigation rules and outcomes. Everything later depends on knowing which phase you are in.
  • Component tree and beans. Pages become UIComponent trees. Server-side state lives in managed beans with value expressions, dependency injection and scopes. Choosing the wrong scope is a common source of bugs that only appear with more than one user or after a second request.
  • Events, converters, validators. The course covers action and value-change events, custom converters, and validating multiple inputs. A frequent misconception is that validation can read the model. It runs before the model is updated.
  • Ajax and custom components. Module 2 explains custom component architecture and Ajax before ICEfaces itself, because ICEfaces is a component library that changes how requests and responses behave.
  • ICEfaces specifics. Partial submit, and Ajax Push with RenderManager versus SessionRenderer. Push is the hardest part: updates are initiated by the server, not by a user action.

Covering two modules in one day means the pace is brisk. Prior JSF exposure is what makes it workable.

Who it suits and what to take around it

The course suits Java developers who already write JSF pages and need to add ICEfaces components and Ajax behavior, including teams maintaining existing ICEfaces applications. The prerequisites call for Java experience and JSP page-authoring experience. Servlet, XML and HTML knowledge helps but is not required.

If JSF itself is new to your team, a longer JSF course is a sensible first step, because Module 1 here is a condensed review. Fast Track to JavaServer Faces 2 (JSF 2) spends three days on the framework before you add a component library.

For the layers behind the web tier, Building Modern Java Enterprise Apps: JPA, EJB3, & JSF covers persistence and business components alongside JSF. That helps once your beans start talking to a database.

Organizations on a specific JSF or ICEfaces release can request a training proposal for private delivery tailored to the versions they run.

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.

  • Live status board. A team might show order or job status that changes on the server without user clicks. This maps to Ajax Push, the choice between RenderManager and SessionRenderer, and the architecture chapter's coverage of PersistentFacesServlet and BlockingServlet.
  • Data-entry screen with strict rules. A back-office form could combine standard and custom converters and validators, cross-field validation and message keys. Partial submit then refreshes only the affected parts of the page.
  • Reporting page. A team might lay out results with <ice:panelTabSet>, list records in <ice:dataTable>, show detail in <ice:panelPopup>, chart with <ice:outputChart>, and use <ice:selectDateInput> for date filters.

AI coding assistants with JSF and ICEfaces

AI coding assistants handle the routine parts of Module 1 well: drafting a backing bean, a custom Converter or Validator, or a navigation rule. They also help explain an unfamiliar stack trace.

They are less reliable here for several reasons:

  • Mixed versions. Tag names, attributes and configuration differ between JSF and component-library releases. Suggestions often blend several, so a tag may not exist in the release you use.
  • Lifecycle reasoning. Generated code may read or write state in the wrong phase, or pick a bean scope that leaks data between users.
  • Push and concurrency. Server-initiated rendering involves threads and sessions. Generated code can compile and still update the wrong session or fail under load.

To verify, check every tag and attribute against the documentation for your exact release. Run pages with two browser sessions to test scope and push behavior. Add a test for each converter and validator. Trace a failing request phase by phase, for example with a PhaseListener, as the course shows.

Frequently asked questions

What level is this course?

It is a general-level, one-day course for experienced Java developers. Module 1 reviews JSF fundamentals and Module 2 covers ICEfaces.

What do I need to know beforehand?

Java experience is essential and JSP page-authoring experience is required. Servlet experience is recommended but not required. Basic XML and HTML knowledge will help.

What does it cover?

Module 1 covers the JSF lifecycle, navigation, UI components, managed beans, events, converters and validators. Module 2 covers custom components, Ajax, ICEfaces architecture (partial submit, Ajax Push, drag and drop, security features) and components such as data tables, date input, tooltips, popups, tab sets and charts.

Can it 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?

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

Training locations

JSF Development with ICEfaces training across the U.S. and beyond.

We provide private JSF Development with ICEfaces training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all JSF Development with ICEfaces 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.