Phases and listeners

JSF works under different phases. Here, we explain what happens when we receive a JSF page from our browser and we execute some operation. All the JSF phases can be summarized through the following image:

JSF is completely integrated to the servlet specifications, so it works in a request/response system. Usually, requests and responses are wrapped by the JSF implementation engine to allow the faces context to work better.

When we connect to the JSF application to receive the first web page, the Restore View starts to find the correct page to send through the response.

If the page has buttons or links, we can use them ...

Get Mastering Java EE Development with WildFly 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.