|
Oracle ADF Controller API Reference 10g Release 2 (10.1.2) B14363-01 November 2004 |
||||||||||
PREV CLASS NEXT CLASS |
|||||||||||
java.lang.Object
oracle.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.struts.actions.StrutsPageLifecycle |
formFileInputHandlerName |
| Fields inherited from class oracle.adf.controller.lifecycle.PageLifecycle |
clazz, DISABLE_VALIDATE_TOKENS, eventParam, events, ordDomainInputHandlerName |
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 |
processUpdateModel(LifecycleContext lcContext)Handle update using a Struts formbean In case of error the method setInputValue will not throw but instead the errors will be collected in the binding container. |
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. |
protected boolean |
shouldValidateToken(javax.servlet.http.HttpServletRequest request, oracle.adf.model.binding.DCBindingContainer bindings)Checks the request object to see if token validation should occur. |
void |
validateModelUpdates(LifecycleContext lcContext)Forces model-level validation to occur. To delay model-level validation until Commit, override this method and replace it with a no-op. To delay model-level validation until Commit, override this method and replace it with a no-op. |
| Methods inherited from class oracle.adf.controller.struts.actions.StrutsPageLifecycle |
findForward, initializeMethodParameters, initializeParameterValuesUsingExpressions, invokeCustomMethod, prepareModel, shouldAllowModelUpdate, updateModel |
| Methods inherited from class oracle.adf.controller.lifecycle.PageLifecycle |
buildEventList, disableTokenValidationForRequest, findCtrlBinding, getEventMethod, getEventMethodFromCache, getRequestValues, handleError, hasErrors, initializeParameterValuesUsingRequestObject, invokeActionBinding, isNewValueForBinding, processEvent, refreshModel, setInputValue |
| 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)
StrutsPageLifecycleprocessActionConfig in class StrutsPageLifecyclemapping - the action mappingDataActionMapping.freeze()
public void handleLifecycle(LifecycleContext lcContext)
throws java.lang.Exception
PageLifecycleDefine the steps of the PageLifecycle processing:
handleLifecycle in interface LifecyclehandleLifecycle in class PageLifecyclejava.lang.Exceptionpublic void processUpdateModel(LifecycleContext lcContext)
StrutsPageLifecycleprocessUpdateModel in interface LifecycleprocessUpdateModel in class StrutsPageLifecyclepublic void validateModelUpdates(LifecycleContext lcContext)
PageLifecyclevalidateModelUpdates in interface LifecyclevalidateModelUpdates in class PageLifecycle
protected boolean shouldValidateToken(javax.servlet.http.HttpServletRequest request,
oracle.adf.model.binding.DCBindingContainer bindings)
PageLifecycleshouldValidateToken in class PageLifecyclerequest -bindings -
public void processComponentEvents(LifecycleContext lcContext)
throws java.lang.Exception
LifecycleprocessComponentEvents in interface LifecycleprocessComponentEvents in class PageLifecyclejava.lang.Exceptionpublic void reportErrors(LifecycleContext lcContext)
StrutsPageLifecycleThis 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 LifecyclereportErrors 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 StrutsPageLifecyclejava.lang.ExceptiongetEventActionBinding
|
Oracle ADF Controller API Reference 10g Release 2 (10.1.2) B14363-01 November 2004 |
||||||||||
PREV CLASS NEXT CLASS |
|||||||||||