© Bauke Scholtz, Arjan Tijms 2018
Bauke Scholtz and Arjan TijmsThe Definitive Guide to JSF in Java EE 8https://doi.org/10.1007/978-1-4842-3387-0_3

3. Components

Bauke Scholtz1  and Arjan Tijms2
(1)
Willemstad, Curaçao
(2)
Amsterdam, Noord-Holland, The Netherlands
 

JSF (JavaServer Faces) is a component-based MVC (Model-View-Controller) framework. In essence, JSF 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 which is very suitable for defining a tree hierarchy using ...

Get The Definitive Guide to JSF in Java EE 8: Building Web Applications with JavaServer Faces 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.