|
ADF Controller v9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.controller.lifecycle.PageLifecycle
oracle.adf.controller.struts.actions.StrutsPageLifecycle
oracle.adf.controller.struts.actions.StrutsUixLifecycle
Customized Struts lifecycle to support UIX.
Field Summary |
Fields inherited from class oracle.adf.controller.lifecycle.PageLifecycle |
clazz, eventParam, events |
Constructor Summary | |
StrutsUixLifecycle()
|
Method Summary | |
protected boolean |
handleEvent(LifecycleContext lcContext,
java.lang.String event)
Handle an event. |
void |
handleLifecycle(LifecycleContext lcContext)
Define all the phases of the lifecycle and the order they are executed.. This is the entry point to execute the all the phases of the lifecycle. Overide this method to add logic before or after the lifecycle execution. Define the steps of the PageLifecycle processing:
|
void |
processActionConfig(DataActionMapping mapping)
Give the opportunity to the lifecyle to handle and possibly modify the config of the mapping. |
void |
processComponentEvents(LifecycleContext lcContext)
Handle any events in the action binding list previously built in processUpdateModel using the buildEventList method. |
void |
reportErrors(LifecycleContext lcContext)
This method retrieve the list of error from the dataControl and treat them as fit for the PageLifeCycle implementation. Retrieves the errors from the data control and reports then to the user. This method retrieve the list of error from the dataControl and treat them as fit for the PageLifeCycle implementation. |
boolean |
shouldAllowModelUpdate(LifecycleContext lcContext)
Allows clients to determine whether the model should be updated.. Disable data model updates in two cases:
Overide this method if you need to add logic to skip data model updates. This is the stuff needed to bypass update on some method like rollback. Also give a chance to the custom method to veto the change. This is the stuff needed to bypass update on some method like rollback. |
Methods inherited from class oracle.adf.controller.struts.actions.StrutsPageLifecycle |
findForward, initializeMethodParameters, initializeParameterValuesUsingExpressions, invokeCustomMethod, isNewValueForBinding, prepareModel, processUpdateModel, setInputValue |
Methods inherited from class oracle.adf.controller.lifecycle.PageLifecycle |
buildEventList, findCtrlBinding, getEventMethod, getEventMethodFromCache, getRequestValues, handleError, hasErrors, initializeParameterValuesUsingRequestObject, invokeActionBinding, processEvent, refreshModel, updateModel, validateModelUpdates |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StrutsUixLifecycle()
Method Detail |
public void processActionConfig(DataActionMapping mapping)
StrutsPageLifecycle
processActionConfig
in class StrutsPageLifecycle
mapping
- the action mappingDataActionMapping.freeze()
public void handleLifecycle(LifecycleContext lcContext) throws java.lang.Exception
PageLifecycle
Define the steps of the PageLifecycle processing:
handleLifecycle
in interface Lifecycle
handleLifecycle
in class PageLifecycle
java.lang.Exception
public boolean shouldAllowModelUpdate(LifecycleContext lcContext)
StrutsPageLifecycle
Disable data model updates in two cases:
This is the stuff needed to bypass update on some method like rollback. Also give a chance to the custom method to veto the change.
shouldAllowModelUpdate
in interface Lifecycle
shouldAllowModelUpdate
in class StrutsPageLifecycle
public void processComponentEvents(LifecycleContext lcContext) throws java.lang.Exception
Lifecycle
processComponentEvents
in interface Lifecycle
processComponentEvents
in class PageLifecycle
java.lang.Exception
public void reportErrors(LifecycleContext lcContext)
StrutsPageLifecycle
This method retrieve the list of error from the dataControl and treat them as fit for the PageLifeCycle implementation. Retrieves the errors from the data control and reports then to the user.
reportErrors
in interface Lifecycle
reportErrors
in class StrutsPageLifecycle
protected boolean handleEvent(LifecycleContext lcContext, java.lang.String event) throws java.lang.Exception
StrutsPageLifecycle
public void onEvent(DataActionContext ctx) { // Use the following method to execute the possible // action binding associated with this event ctx.getEventActionBinding().doit(); }Where Event is the name of the event.
An event can also be an action binding with the same name of the event present in the current binding container.
In addition to the super class behavior, the event name is used as a automatic forward mechanism. If it exist an action forward of the same name of the event, this action forward is set to the context to be the return value of the DataAction execute method.
handleEvent
in class StrutsPageLifecycle
java.lang.Exception
getEventActionBinding
|
ADF Controller v9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.