net.sourceforge.stripes.tag
Class InputPasswordTag

java.lang.Object
  extended by net.sourceforge.stripes.tag.StripesTagSupport
      extended by net.sourceforge.stripes.tag.HtmlTagSupport
          extended by net.sourceforge.stripes.tag.InputTagSupport
              extended by net.sourceforge.stripes.tag.InputTextTag
                  extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.stripes.tag.InputTagSupport
errorRenderer, fieldErrors
 
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport
pageContext, parentTag
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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.InputTextTag
doAfterBody, doInitBody, doStartInputTag, getEffectiveMaxlength, getMaxlength, getValue, setMaxlength, setValue
 
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
 
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag
setBodyContent
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Constructor Detail

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".

Method Detail

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.