30.5 Model-View-Controller Architecture of JSF Apps

JSF applications adhere to the Model-View-Controller (MVC) architecture, which separates an application’s data (contained in the model) from the graphical presentation (the view) and the processing logic (the controller). Figure 30.11 shows the relationships between components in MVC.

Fig. 30.11 Model-View-Controller architecture.

A block diagram depicts the model view controller architecture. The controller modifies the model, which in turn, notifies the view.

In JSF, the controller is the JSF framework and is responsible for coordinating interactions between the view and the model. The model contains the application’s data (typically in a database), and the view presents the data stored in the model (typically as web pages). ...

Get Java How to Program, Early Objects, 11th Edition 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.