public abstract class RhnWizardAction extends RhnAction
generateWizardSteps
method. This method should create
instances of WizardStep
objects and place them in the provided map under
a key which corresponds to the step name. The first, or starting, wizard step should
be associated with two keys: the desired step name and the constant
RhnWizardAction.STEP_START
. The constant is used as a fallback when no
step name is provided by the UI.DynaActionForm
which contains a field named "wizardStep".
This form field must contain the name of the submitted form action. This can be tricky
since the field should normally point to the next step not the current
step.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STEP_PARAM |
static java.lang.String |
STEP_START |
Constructor and Description |
---|
RhnWizardAction() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.struts.action.ActionForward |
dispatch(java.lang.String step,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response) |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.util.List |
findMethods(java.lang.String methodPrefix) |
protected abstract void |
generateWizardSteps(java.util.Map wizardSteps) |
addGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessages
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServlet
public static final java.lang.String STEP_START
public static final java.lang.String STEP_PARAM
public org.apache.struts.action.ActionForward execute(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
execute
in class org.apache.struts.action.Action
java.lang.Exception
protected abstract void generateWizardSteps(java.util.Map wizardSteps)
protected org.apache.struts.action.ActionForward dispatch(java.lang.String step, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, RequestContext ctx, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected java.util.List findMethods(java.lang.String methodPrefix)