java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.DispatchAction
net.jspcontrols.dialogs.actions.SelectAction
net.jspcontrols.dialogs.actions.DialogAction
net.jspcontrols.dialogs.actions.wizard.WizardAction
Basic wizard action. Implements back, forward and cancel method handlers. Works in pair with action form, implementing IWizardManager interface.
Field Summary |
Fields inherited from class net.jspcontrols.dialogs.actions.SelectAction |
keyMethodMap |
Fields inherited from class org.apache.struts.actions.DispatchAction |
clazz, log, messages, methods, types |
Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
Constructor Summary | |
WizardAction()
|
Method Summary | |
org.apache.struts.action.ActionForward |
getDialogView(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns an ActionForward instance describing the View
for current dialog state, usually a forward to a JSP page. |
protected java.util.Map |
getKeyMethodMap()
Maps submit button names to handler methods; also maps initialization keys to initialization methods. |
static org.apache.struts.action.ActionErrors |
getStrutsErrors(java.util.Map uiErrors)
Pulls errors found during wizard transition from wizard into Struts error object. |
org.apache.struts.action.ActionForward |
onBack(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles "Back" button on wizard panel. |
org.apache.struts.action.ActionForward |
onCancel(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles "Cancel" button on wizard panel. |
org.apache.struts.action.ActionForward |
onNext(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles "Back" button on wizard panel. |
Methods inherited from class net.jspcontrols.dialogs.actions.DialogAction |
clearMessages, execute, execute, getActionSuffix, getMethodName, isBogusGET, isInit, isInput, saveDialogErrors, setNoCache |
Methods inherited from class net.jspcontrols.dialogs.actions.SelectAction |
buildLookupMap, cancelled, execute, getCancelKey, getDefaultKey, getInitKey, getMethod, resolveEvents, unspecified |
Methods inherited from class org.apache.struts.actions.DispatchAction |
dispatchMethod, getMethod |
Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.jspcontrols.dialogs.actions.ISelectAction |
cancelled, unspecified |
Constructor Detail |
public WizardAction()
Method Detail |
protected java.util.Map getKeyMethodMap()
If you do not want to use all CRUD handlers, and want to protect yourself from calling unneeded handler, you can subclass this class, and override this method. Then you define only mappings that you need.
getKeyMethodMap
in class DialogAction
SelectAction.getInitKey()
public org.apache.struts.action.ActionForward onCancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating
java.lang.Exception
- if an exception occurspublic org.apache.struts.action.ActionForward onBack(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating
java.lang.Exception
- if an exception occurspublic org.apache.struts.action.ActionForward onNext(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating
java.lang.Exception
- if an exception occurspublic org.apache.struts.action.ActionForward getDialogView(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
ActionForward
instance describing the View
for current dialog state, usually a forward to a JSP page.
getDialogView
in interface IDialogAction
getDialogView
in class DialogAction
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating
java.lang.Exception
- if an exception occurspublic static org.apache.struts.action.ActionErrors getStrutsErrors(java.util.Map uiErrors)
uiErrors
- map of errors, where key is an error message,
and value is error parameters as string array