public static AWResponseGenerating invokeWizardAction (
WizardFrame frame,
WizardAction wizardAction,
AWRequestContext requestContext)
{
Wizard wizard = frame.getWizard();
WizardActionTarget target = wizard.invokeAction(wizardAction, requestContext);
AWResponseGenerating targetComponent = null;
if (target instanceof UrlActionTarget) {
targetComponent = generateResponseForUrlTarget(
frame, (UrlActionTarget)target, requestContext);
}
else if (target instanceof WizardFrame) {
WizardFrame targetFrame = (WizardFrame)target;
// clear up the action handler that could been
// stashed by WizardExitActionHandler
if (targetFrame == wizard.getExitFrame()) {
WizardExitActionHandler.clearActionHandler(targetFrame);
}
targetComponent = generateResponseForFrameTarget(
frame, targetFrame, requestContext);
}