JSF Cheat Sheet
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. The reference material consulted while preparing these pages is listed in the section bibliography. |
A single-page, colour-coded summary of the Jakarta Faces essentials, written against Jakarta Faces 4.1 (API 4.1.2,
Jakarta EE 11, Java 17 or later, examples on Java 21) with Eclipse Mojarra 4.1.17 and Apache MyFaces Core 4.1.4, plus
PrimeFaces 16.0.0, OmniFaces 5.5.5, Tomcat 11 with Weld 6.0.4, JoinFaces 6.1.1 and myfaces-quarkus 4.1.4 (versions
verified 2026-10-08) — the six lifecycle phases and immediate, the Maven WAR, web.xml, faces-config.xml and the
project stages, the Facelets namespaces, ui:* templating and the Expression Language, the h: and f: tags with
conversion, validation and messages, navigation, view parameters and Post/Redirect/Get, CDI scopes and Faces Flows,
f:ajax, search expressions and f:websocket, composite and custom components, state saving, exceptions and security,
PrimeFaces, OmniFaces, the runtimes and testing, and a strip of what changed since older tutorials — handy for quick
memorization or as a downloadable PDF desk reference.
For the full explanation, every option, and additional examples, see the dedicated pages:
Start here — JSF (JavaServer Faces).
Foundations — Introduction & History, Versions & Implementations, Architecture & Component Model, Request Processing Lifecycle, Project Setup, and Getting Started.
Facelets and views — Facelets & XHTML Views, Facelets Templating, Expression Language, HTML5-Friendly Markup, JSTL and Build Time vs Render Time, and Programmatic Facelets.
Standard components — Standard HTML Components, Core Tags (f:), Data Tables and Iteration, and File Upload and Download.
Conversion and validation — Converters, Validators, Bean Validation in Jakarta Faces, and Messages and Internationalization.
Events and navigation — Events and Listeners, Navigation, and View Parameters and View Actions.
Beans, scopes and CDI — Backing Beans and CDI, Scopes, Flash Scope and Post-Redirect-Get, and Faces Flows.
Ajax and push — Ajax, Search Expressions, and WebSocket Push with f:websocket.
Composite and custom components — Composite Components, Tag Files and Tag Libraries, Custom Components and Renderers, and Client Behaviors.
Resources and configuration — Resource Handling, Resource Library Contracts, and Configuration and Project Stages.
Advanced topics — State Saving and Stateless Views, Exception Handling and Error Pages, Extending Faces: Wrappers, Factories and Listeners, Multi-Window Support, and Performance.
Component libraries — PrimeFaces: Getting Started, Configuration and Themes, PrimeFaces: Ajax, Forms and Validation, PrimeFaces Data Components, PrimeFaces Panels, Menus and Dialogs, PrimeFaces: Files, Media, Charts and Drag and Drop, PrimeFaces Extensions, OmniFaces, and Other Component Libraries.
Integration and runtimes — Jakarta EE Servers, Tomcat and Weld, Jakarta Faces on Spring Boot with JoinFaces, Jakarta Faces on Quarkus, and Persistence and Services.
Testing — Testing Jakarta Faces Applications.
Production and migration — Deployment and Clustering, Migrating to Jakarta Faces, and Jakarta Faces Best Practices Checklist.
References
The PDF summarizes the official documentation; each source is cited in full on the page listed above that covers it, and in the section bibliography.