|
Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle 11g Release 1 (11.1.1.4.0) E10652-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.adf.controller.v2.lifecycle.Phases
oracle.adf.controller.v2.lifecycle.PageLifecycle
oracle.adf.controller.v2.lifecycle.PageController
public class PageController
Implement the PageLifecycle functionality by delegating to the current
PageLifecycle implementation stored in the PageLifecycle property of the
LifecycleContext.
| Field Summary |
|---|
| Fields inherited from class oracle.adf.controller.v2.lifecycle.PageLifecycle |
|---|
clazz, eventParam, events |
| Constructor Summary | |
|---|---|
PageController()
|
|
| Method Summary | |
|---|---|
void |
applyInputValues(LifecycleContext context)
Builds the list of events with their possible associated action binding from the request parameters. |
void |
executeEvent(PageLifecycleContext context,
java.lang.String event,
oracle.adf.model.OperationBinding actionBinding)
Execute a single event. |
void |
findForward(PageLifecycleContext context)
The path of the next web page is identified using the forwardPath property on the PageLifecycleContext. |
java.lang.reflect.Method |
getEventMethod(PageLifecycleContext lcContext,
java.lang.String eventName)
Retrieve the Method class for a given an event name. |
void |
handleError(PageLifecycleContext context,
java.lang.Exception ex)
Handles any exceptions that occurred during the PageLifecycle processing. |
boolean |
hasErrors(PageLifecycleContext context)
Return true if an error occured during validation. |
void |
initContext(LifecycleContext context)
During this phase the listener is able to initialize the LifecycleContext
with additional information that will be persisted during the Lifecycle. |
void |
initializeMethodParameters(PageLifecycleContext context,
oracle.adf.model.OperationBinding actionBinding)
This method is invoked before any ControlBinding or custom method is being executed. |
boolean |
invokeActionBinding(PageLifecycleContext context,
java.lang.String event)
Invoke the action binding associated with the event name. |
boolean |
invokeEventMethod(PageLifecycleContext context,
java.lang.String eventName)
Execute the Method class for a given an event name. |
void |
metadataCommit(LifecycleContext context)
Used to commit Runtime changes to the metadata. |
void |
prepareModel(LifecycleContext context)
Give the opportunity for the data model to prepare and initialize. |
void |
prepareRender(LifecycleContext context)
Last phase before rendering a page. |
void |
processComponentEvents(LifecycleContext context)
Process each event accumulated during the previous phases. |
void |
processUpdateModel(LifecycleContext context)
Update the data model with new and validated input values. |
void |
reportErrors(PageLifecycleContext context)
Provide the opportunity to build an error list in a format appropriate to the view layer. |
boolean |
shouldAllowModelUpdate(PageLifecycleContext context)
This method is called during the processUpdateModel phase. |
void |
validateInputValues(LifecycleContext context)
Validate input values. |
void |
validateModelUpdates(LifecycleContext context)
Forces model-level validation to occur. |
| Methods inherited from class oracle.adf.controller.v2.lifecycle.PageLifecycle |
|---|
getEventMethodFromCache, getLifecycleContextClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageController()
| Method Detail |
|---|
public void initContext(LifecycleContext context)
PhasesLifecycleContext
with additional information that will be persisted during the Lifecycle.
initContext in class Phasespublic void prepareModel(LifecycleContext context)
Phases
prepareModel in class Phasespublic void applyInputValues(LifecycleContext context)
Phases
applyInputValues in class Phasespublic void validateInputValues(LifecycleContext context)
Phases
validateInputValues in class Phasespublic void processUpdateModel(LifecycleContext context)
Phases
processUpdateModel in class Phasespublic void validateModelUpdates(LifecycleContext context)
Phases
validateModelUpdates in class Phasespublic void processComponentEvents(LifecycleContext context)
Phases
processComponentEvents in class Phasespublic void metadataCommit(LifecycleContext context)
Phases
metadataCommit in class Phasespublic void prepareRender(LifecycleContext context)
PhasesDuring this phase the model is refreshed.
prepareRender in class Phasespublic boolean shouldAllowModelUpdate(PageLifecycleContext context)
PageLifecycle
shouldAllowModelUpdate in class PageLifecycleJUCtrlActionBinding.ignoreUpdates()public boolean hasErrors(PageLifecycleContext context)
PageLifecycle
hasErrors in class PageLifecycle
public void handleError(PageLifecycleContext context,
java.lang.Exception ex)
PageLifecycleBindingContainer.
handleError in class PageLifecyclepublic void reportErrors(PageLifecycleContext context)
PageLifecycle
reportErrors in class PageLifecycle
public java.lang.reflect.Method getEventMethod(PageLifecycleContext lcContext,
java.lang.String eventName)
PageLifecycle
lcContext - the PageLifecycle contexteventName - name of the event
public boolean invokeEventMethod(PageLifecycleContext context,
java.lang.String eventName)
throws java.lang.Exception
PageLifecycle
context - the PageLifecycle contexteventName - name of the event
java.lang.Exception
public boolean invokeActionBinding(PageLifecycleContext context,
java.lang.String event)
PageLifecycleAn action binding is associated with an event if an action binding with
the same name as the event exist in the current binding container. If the
action binding exist, the method parameters are initialized using the
initializeMethodParameters method on
the PageLifecycle before executing the action binding.
true
context - the lifecycle contextevent - the name of the event
true if an action binding is associated
with the event
public void findForward(PageLifecycleContext context)
throws java.lang.Exception
PageLifecycle
findForward in class PageLifecyclejava.lang.Exception
public void executeEvent(PageLifecycleContext context,
java.lang.String event,
oracle.adf.model.OperationBinding actionBinding)
PageLifecycle
executeEvent in class PageLifecyclehandleEvent.
public void initializeMethodParameters(PageLifecycleContext context,
oracle.adf.model.OperationBinding actionBinding)
PageLifecycle
initializeMethodParameters in class PageLifecyclecontext - the PageLifecycle contextactionBinding - the action binding object to initialize
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle 11g Release 1 (11.1.1.4.0) E10652-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||