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 Detroit, Michigan
This course will get you up to speed with JSF 2 in a very short time.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Detroit, Michigan 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 TrainingPrerequisites
Course Outline
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
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.