|
Oracle ADF Controller API Reference 10.1.2 B14363-02 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ADF Lifecycle provides support allowing a web page to interact with ADF Model data bindings. The lifecycle calls the correct binding container needed for a JSP or UIX page, updates values in the binding container's bindings if necessary, and prepares the data to be rendered. The binding container stores this data locally before rendering the page.
NOTE: Implementations of Lifecycle
should be thread-safe and use the LifecycleContext
object as the place to store any per-request state they may need.
Method Summary | |
void |
buildEventList(LifecycleContext lcContext) Builds the list of events with their possible associated action binding from the request parameters. |
void |
findForward(LifecycleContext lcContext) Forwards the request or redirects the response to the next web page in the flow. |
java.lang.reflect.Method |
getEventMethod(LifecycleContext lcContext, java.lang.String name) Retrieve the Method class for an event name. |
void |
handleError(LifecycleContext lcContext, java.lang.Exception ex) Handles any exceptions that occurred during the Lifecycle processing. |
void |
handleLifecycle(LifecycleContext lcContext) Define all the phases of the lifecycle and the order they are executed. |
boolean |
hasErrors(LifecycleContext lcContext) Ask the context if any errors have been recorded during this lifecycle. |
void |
initializeMethodParameters(LifecycleContext lcContext, oracle.jbo.uicli.binding.JUCtrlActionBinding actionBinding) This method is invoked before any ControlBinding or custom method is being executed. |
void |
invokeCustomMethod(LifecycleContext lcContext) Invokes the custom method associated with the binding container. |
void |
prepareModel(LifecycleContext lcContext) Give the opportunity for the data model to prepare and initialize. |
void |
processComponentEvents(LifecycleContext lcContext) Handle any events in the action binding list previously built in processUpdateModel using the buildEventList method. |
void |
processUpdateModel(LifecycleContext lcContext) Update the data model with values submitted in the request. |
void |
refreshModel(LifecycleContext lcContext) Used to notify the model when updates are over with. |
void |
reportErrors(LifecycleContext lcContext) Report the error list to the view layer. |
boolean |
shouldAllowModelUpdate(LifecycleContext lcContext) Allows clients to determine whether the model should be updated. |
void |
validateModelUpdates(LifecycleContext lcContext) Forces model-level validation to occur. |
Method Detail |
public void handleLifecycle(LifecycleContext lcContext) throws java.lang.Exception
lcContext
- the lifecycle contextjava.lang.Exception
public void buildEventList(LifecycleContext lcContext)
lcContext
- the lifecycle contextpublic void prepareModel(LifecycleContext lcContext) throws java.lang.Exception
lcContext
- the lifecycle contextjava.lang.Exception
public boolean shouldAllowModelUpdate(LifecycleContext lcContext)
lcContext
- the lifecycle context.true
, if the model should be updated during this lifecyclepublic void processUpdateModel(LifecycleContext lcContext)
lcContext
- the lifecycle contextpublic void validateModelUpdates(LifecycleContext lcContext)
lcContext
- the lifecycle contextpublic boolean hasErrors(LifecycleContext lcContext)
lcContext
- the lifecycle contexttrue
, if any validation errors have been stored in the LifecycleContext.public void processComponentEvents(LifecycleContext lcContext) throws java.lang.Exception
lcContext
- the lifecycle contextjava.lang.Exception
public void initializeMethodParameters(LifecycleContext lcContext, oracle.jbo.uicli.binding.JUCtrlActionBinding actionBinding)
lcContext
- the lifecycle contextactionBinding
- the action binding object to initializepublic void invokeCustomMethod(LifecycleContext lcContext)
lcContext
- the lifecycle contextpublic void refreshModel(LifecycleContext lcContext)
lcContext
- the lifecycle contextpublic void handleError(LifecycleContext lcContext, java.lang.Exception ex)
lcContext
- the lifecycle contextex
- the exception to recordpublic void reportErrors(LifecycleContext lcContext)
lcContext
- the lifecycle contextpublic void findForward(LifecycleContext lcContext) throws java.lang.Exception
lcContext
- the lifecycle contextjava.lang.Exception
public java.lang.reflect.Method getEventMethod(LifecycleContext lcContext, java.lang.String name)
lcContext
- the lifecycle contextname
- name of the event
|
Oracle ADF Controller API Reference 10.1.2 B14363-02 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2005, Oracle. All rights reserved.