First page Back Continue Last page Text

oracle adf workshop

Notes:


JSF Life Cycle

The life cycle of a JSF page is similar to that of a JavaServer Pages (JSP) page: the client makes an HTTP request for the page, and the server responds with the page translated to HTML. However, because of the extra features that JSF technology offers, the life cycle provides some additional services to process a page.

A JSF page is represented by a tree of UI components, called a view. When a client makes a request for the page, the life cycle starts. During the life cycle, the JSF implementation must build the view while considering the state saved from a previous submission of the page. When the client submits a page, the JSF implementation must perform several tasks, such as validating the data input of components in the view and converting input data to types specified on the server side. The JSF implementation performs all these tasks as a series of steps in the life cycle.

Which steps in the life cycle are executed depends on whether:

The request originated from a JSF application or not

The response is generated with the rendering phase of the JSF life cycle