net.sourceforge.stripes.tag
Class InputPasswordTag
java.lang.Object
net.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.InputTagSupport
net.sourceforge.stripes.tag.InputTextTag
net.sourceforge.stripes.tag.InputPasswordTag
- All Implemented Interfaces:
- BodyTag, DynamicAttributes, IterationTag, JspTag, Tag, TryCatchFinally
public class InputPasswordTag
- extends InputTextTag
Tag class that implements an input tag of type password. Defines one attribute in addition
to those provided by the HTML tag. If repopulate
is set then the password tag will
behave just like the text tag, and will repopulate values on error and during wizard flows. If
repopulate
is not set, or is set to false then values will not be re-populated, but
initial/default values supplied to the tag on the JSP will be used.
- Since:
- Stripes 1.1
- Author:
- Tim Fennell
Constructor Summary |
InputPasswordTag()
Constructs a new tag for generating password fields. |
Method Summary |
int |
doEndInputTag()
Determines which source is applicable for the value of the text field and then writes
out the tag. |
boolean |
getRepopulate()
Returns true if the tag will repopulate values, false otherwise. |
void |
setRepopulate(boolean repopulate)
Sets whether or not the tag will repopulate the value if one is present. |
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 |
InputPasswordTag
public InputPasswordTag()
- Constructs a new tag for generating password fields. Delegates to InputTextTag which it
extends, and then overrides the type of input field to "password".
setRepopulate
public void setRepopulate(boolean repopulate)
- Sets whether or not the tag will repopulate the value if one is present.
getRepopulate
public boolean getRepopulate()
- Returns true if the tag will repopulate values, false otherwise.
doEndInputTag
public int doEndInputTag()
throws JspException
- Description copied from class:
InputTextTag
- Determines which source is applicable for the value of the text field and then writes
out the tag.
- Overrides:
doEndInputTag
in class InputTextTag
- Returns:
- EVAL_PAGE in all cases.
- Throws:
JspException
- if the enclosing form tag cannot be found, or output cannot be written.
? Copyright 2005-2006, Stripes Development Team.