© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. Scholtz, A. TijmsThe Definitive Guide to Jakarta Faces in Jakarta EE 10https://doi.org/10.1007/978-1-4842-7310-4_3

3. Components

Bauke Scholtz1   and Arjan Tijms2
(1)
Willemstad, Curaçao
(2)
Amsterdam, Noord-Holland, The Netherlands
 
Jakarta Faces is a component-based MVC (model-view-controller) framework. In essence, Jakarta Faces parses the view definition into a “component tree.” The root of this tree is represented by the “view root” instance associated with the current instance of the faces context.
UIComponent tree = FacesContext.getCurrentInstance().getViewRoot();

The view is usually defined using XHTML+XML markup in a Facelets file. XML is a markup language ...

Get The Definitive Guide to Jakarta Faces in Jakarta EE 10: Building Java-Based Enterprise Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.