Databases Reference
In-Depth Information
Process Validaions : The validaion for the applied values takes place in this phase.
If there is an error while doing validaion, then the life cycle directly moves to the
Render Response phase.
Validate Model Updates : This phase is to verify the model updates that occurred
previously. The validateModelUpdates method is called.
Invoke Applicaion : The applicaion is invoked using the acion binding components.
Metadata Commit : This phase is used to commit the runime metadata for the model.
Render Response : The components in the tree are rendered with the updated
values. The state of the view is saved for further request processing.
Update Model Values : Ater the validaion is successful, the model values are
updated for the components. In this phase, the processUpdateModel method is
called. This method will update the model with the submited values in the request.
Memory scopes
At runime, we have the bindings and the managed bean instaniated and these objects
have a speciied life ime to live ater which the access to these objects is not possible.
If you want to store an object in a specific scope, we will use the scope to store the value,
such as #{requestScope.param} , which means that the object param is stored in
requestScope . The scope will determine how long the objects are to be made available
for access. There are six scopes available for us to use.
Applicaion Scope : The object will be stored for the duraion of the current
applicaion and it is across user sessions.
Session Scope: The object is available for the current user session and will not be
available if the user exits out of the session. We will use the SessionScope API to
store the object in the session. In an EL expression we used it as #{sessionScope.
param} . You should not reference or use the standard servlet scopes such as
session, applicaion, or request to refer to the managed bean. Referring to the
managed bean with a standard preix will fail to instaniate the bean.
Page Flow Scope : The object is available for the duraion of the bonded task
flow. We use #{pageFlowScope.param} to access the object stored in
pageFlowScope .
Request Scope : The object is available only from the HTTP request and the
response ime is sent back to the client.
 
Search WWH ::




Custom Search