public class WizardFieldsTag extends StripesTagSupport implements javax.servlet.jsp.tagext.TryCatchFinally
Examines the request and include hidden fields for all parameters that have do not have form fields in the current form. Will include multiple values for parameters that have them. Excludes 'special' parameters like the source page parameter, and the parameter that conveyed the event name.
Very useful for implementing basic wizard flow without relying on session scoping of ActionBeans, and without having to name all the parameters that should be carried forward in the form.
pageContext, parentTag
Constructor and Description |
---|
WizardFieldsTag() |
Modifier and Type | Method and Description |
---|---|
void |
doCatch(java.lang.Throwable throwable)
Rethrows the passed in throwable in all cases.
|
int |
doEndTag()
Performs the main work of the tag, as described in the class level javadoc.
|
void |
doFinally()
Used to ensure that the input tag is always removed from the tag stack so that there is
never any confusion about tag-parent hierarchies.
|
int |
doStartTag()
Skips over the body because there shouldn't be one.
|
boolean |
isCurrentFormOnly()
Gets whether the tag will output fields for the current form only, or in all cases.
|
protected boolean |
isEventName(java.lang.Class<? extends ActionBean> beanType,
java.lang.String name)
|
void |
setCurrentFormOnly(boolean currentFormOnly)
Sets whether or not the parameters should be output only if the form matches the current
request.
|
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, release, setPageContext, setParent
public void setCurrentFormOnly(boolean currentFormOnly)
public boolean isCurrentFormOnly()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class StripesTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class StripesTagSupport
javax.servlet.jsp.JspException
public void doCatch(java.lang.Throwable throwable) throws java.lang.Throwable
doCatch
in interface javax.servlet.jsp.tagext.TryCatchFinally
java.lang.Throwable
public void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
protected boolean isEventName(java.lang.Class<? extends ActionBean> beanType, java.lang.String name)
beanType
- An ActionBean
classname
- The name to look up? Copyright 2005-2006, Stripes Development Team.