net.sourceforge.stripes.tag
Class InputButtonSupportTag
java.lang.Object
net.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.InputTagSupport
net.sourceforge.stripes.tag.InputButtonSupportTag
- All Implemented Interfaces:
- BodyTag, DynamicAttributes, IterationTag, JspTag, Tag, TryCatchFinally
- Direct Known Subclasses:
- InputButtonTag, InputResetTag, InputSubmitTag
public class InputButtonSupportTag
- extends InputTagSupport
- implements BodyTag
Support tag class that can generate HTML form fields with localized value attributes.
Primarily used to contain identical functionality between submit, reset and button input types.
The only capability offered above and beyond a pure html tag is the ability to lookup the value
of the button (i.e. the text on the button that the user sees) from a localized resource bundle.
The tag will set it's value using the first non-null result from the following list:
- formName.buttonName from the localized resource bundle
- buttonName from the localized resource bundle
- the trimmed body of the tag
- the value attribute of the tag
- Author:
- Tim Fennell
Method Summary |
int |
doAfterBody()
Does nothing. |
int |
doEndInputTag()
Looks up the appropriate value to use for the submit button and then writes the tag
out to the page. |
void |
doInitBody()
Does nothing. |
int |
doStartInputTag()
Does nothing. |
String |
getValue()
Returns the value set with setValue(). |
void |
setValue(String value)
Sets the value to use for the submit button if all other strategies fail. |
Methods inherited from class net.sourceforge.stripes.tag.InputTagSupport |
doCatch, doEndTag, doFinally, doStartTag, format, format, getActionBean, getDisabled, getFieldErrors, getFormatPattern, getFormatType, getLocalizedFieldName, getLocalizedFieldName, getName, getOverrideValueOrValues, getParentFormTag, getReadonly, getSingleOverrideValue, getSize, getValidationMetadata, getValueOnPage, hasErrors, isItemSelected, loadErrors, makeFocused, registerWithParentForm, setDisabled, setFocus, setFormatPattern, setFormatType, setName, setReadonly, setSize |
Methods inherited from class net.sourceforge.stripes.tag.HtmlTagSupport |
evaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTag |
InputButtonSupportTag
public InputButtonSupportTag()
setValue
public void setValue(String value)
- Sets the value to use for the submit button if all other strategies fail.
getValue
public String getValue()
- Returns the value set with setValue().
doStartInputTag
public int doStartInputTag()
throws JspException
- Does nothing.
- Specified by:
doStartInputTag
in class InputTagSupport
- Returns:
- EVAL_BODY_BUFFERED in all cases.
- Throws:
JspException
doInitBody
public void doInitBody()
throws JspException
- Does nothing.
- Specified by:
doInitBody
in interface BodyTag
- Throws:
JspException
doAfterBody
public int doAfterBody()
throws JspException
- Does nothing.
- Specified by:
doAfterBody
in interface IterationTag
- Returns:
- SKIP_BODY in all cases.
- Throws:
JspException
doEndInputTag
public int doEndInputTag()
throws JspException
- Looks up the appropriate value to use for the submit button and then writes the tag
out to the page.
- Specified by:
doEndInputTag
in class InputTagSupport
- Returns:
- EVAL_PAGE in all cases.
- Throws:
JspException
- if output cannot be written.
? Copyright 2005-2006, Stripes Development Team.