|
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 |
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)
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 void processUpdateModel(LifecycleContext lcContext)
StrutsPageLifecycle
processUpdateModel
in interface Lifecycle
processUpdateModel
in class StrutsPageLifecycle
public void validateModelUpdates(LifecycleContext lcContext)
PageLifecycle
validateModelUpdates
in interface Lifecycle
validateModelUpdates
in class PageLifecycle
protected boolean shouldValidateToken(javax.servlet.http.HttpServletRequest request, oracle.adf.model.binding.DCBindingContainer bindings)
PageLifecycle
shouldValidateToken
in class PageLifecycle
request
-bindings
-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
|
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.