nl.openedge.baritus.interceptors
Interface AfterPerformInterceptor
- All Superinterfaces:
- Interceptor
- public interface AfterPerformInterceptor
- extends Interceptor
Registered instances will have their command method executed after the
normal action execution took place. That means that makeFormBean was called,
the form was populated and - if that population was succesfull - the
command method was called prior to this execution. Hence, this interceptor
will allways be executed, regardless population/ validation and regardless
whether the perform method actually was executed.
- Author:
- Eelco Hillenius
Method Summary |
void |
doAfterPerform(org.infohazard.maverick.flow.ControllerContext cctx,
FormBeanContext formBeanContext)
Executed after the normal action execution took place. |
doAfterPerform
public void doAfterPerform(org.infohazard.maverick.flow.ControllerContext cctx,
FormBeanContext formBeanContext)
throws javax.servlet.ServletException,
DispatchNowFlowException,
ReturnNowFlowException
- Executed after the normal action execution took place. That means that
makeFormBean was called, the form was populated and - if that population
was succesfull - the command method was called prior to this execution.
Hence, this interceptor will allways be executed, regardless
population/ validation and regardless whether the perform method
actually was executed.
NOTE. You cannot be sure that the form was populated successfully. Therefore
it's dangerous and generally bad practice to rely on form properties that are
populated from the http request. A good usage example: a lot of views need
data to fill their dropdown lists etc. In this method, you could load that data and
save it in the form (or as a request attribute if that's your style). As this method
is allways executed, you have a guaranteed data delivery to your view, regardless
the normal execution outcome of the control.
- Parameters:
cctx
- maverick contextformBeanContext
- the context with the (possibly succesfull) populated formBean
- Throws:
javax.servlet.ServletException
RedirectingException
- when an interceptor wants to redirect
DirectReturnFlowException
- when an interceptor wants to return directly
DispatchNowFlowException
ReturnNowFlowException
Copyright © 2003-2004 Open Edge. All Rights Reserved.