In
this Post I would like to discuss about
ADF life cycle .
When
a request is sent from client to server , the application invokes ADF pagelife
cycle , an extended version of JSF life cycle. The following diagram will help
you to understand the extended phases of ADF life cycle compared to JSF life
cycle.
So, the phases of ADF life cycle will
includes
- Restore View
- ADF Init Context
- ADF Prepare Model
- Apply Request Values
- Process Validation
- Update Model Values
- ADF Validate Model Updates
- Invoke Application
- ADF Metadata Commit
- ADF Prepare Render
- Render Response
I will try to explain this in a simple way
When a request is sent from client to server
1) ADF frame
work will do some pre-processing. ADF frame work will provide ADFBindingFilter , which is defined on web.xml . ADFBindingFilter
will find an existing Binding Context (if it is in current session) or create a new Binding Context . Binding
Context holds the mappings of pages , Page Definition files , list of data
controls used etc., as a run time representation of DataBindings.cpx file.
2)
Binding
Context which stores the information of ADF life cycle will be initialized with
associated request and Binding Container.(The binding container contains the
control bindings of a reusable units like region, page etc., Binding Container
is a request scope map)
3)
During the
Prepare Model phase life cycle invokes the refresh method on the Binding
Container .Prepare Model will executes any executables (iterators etc.,)whose
refresh property is set to prepareModel
4)
Input
values will be stored in temporary location and initialized
5) Validations
on input data will be imposed (like conversion to underlying data types
,validations etc.,)
6)
The local
values will be discarded and updated in the model.
7)
Validations
will be done at model level , like the updated attribute value will be
validated at EO level .
8)
Any action
bindings will be invoked in this phase
9)
Changes to run time metadata are committed. This
phase stores any run time changes made to the application using the Metadata
Service (MDS)
10) The binding
container is refreshed to allow for any changes that may have occurred in the
Apply Request Values or Validation phases
11)
Finally
The page will appear in this Phase
Please go through the following link
for more information
No comments:
Post a Comment