|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
org.apache.struts.taglib.html.BaseInputTag
org.apache.struts.taglib.html.BaseFieldTag
org.apache.struts.taglib.html.PasswordTag
com.ivata.mask.web.tag.html.PasswordTag
Overrides an HTML <input type=password> tag, by
overriding the class from Struts .
Tag attributes:
| attribute | reqd. | param. class | description |
|---|---|---|---|
| fieldName | true | java.lang.String |
The field name is used to default the following attributes of the tag:
|
| mandatory | false | boolean |
Specifies data for this tag must be entered when the form is submitted. |
| readOnly | false | boolean |
Specifies the form elements should be displayed only and cannot be altered. |
Note: all the tag attributes from Stuts are also included.
| Field Summary |
| Fields inherited from class org.apache.struts.taglib.html.BaseFieldTag |
accept, name, redisplay, type |
| Fields inherited from class org.apache.struts.taglib.html.BaseInputTag |
cols, maxlength, messages, property, rows, value |
| Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
accesskey, defaultLocale, indexed, tabindex |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| 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 | |
PasswordTag()
|
|
| Method Summary | |
int |
doEndTag()
Overridden to set title and value
attributes from keys. |
int |
doStartTag()
Overridden to remove any value from the password. |
MaskProperties |
getMaskProperties()
Stores and maintains ivata op specific mask properties. |
void |
setFieldName(java.lang.String fieldName)
>Name of the field to which this label refers. |
void |
setMandatory(boolean mandatory)
Set whether or not the value this control must be entered. |
void |
setMaskProperties(MaskProperties maskPropertiesParam)
Stores and maintains ivata op specific mask properties. |
void |
setReadOnly(boolean readOnly)
Specifies whether or not the input values can be altered. |
| Methods inherited from class org.apache.struts.taglib.html.BaseFieldTag |
formatValue, getAccept, getName, getRedisplay, release, renderInputElement, setAccept, setName, setRedisplay |
| Methods inherited from class org.apache.struts.taglib.html.BaseInputTag |
getCols, getMaxlength, getProperty, getRows, getSize, getValue, setCols, setMaxlength, setProperty, setRows, setSize, setValue |
| Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getIndexed, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Constructor Detail |
public PasswordTag()
| Method Detail |
public int doEndTag()
throws javax.servlet.jsp.JspException
Overridden to set title and value
attributes from keys.
javax.servlet.jsp.JspException - if there is an error wrting to out.print()
public int doStartTag()
throws javax.servlet.jsp.JspException
Overridden to remove any value from the password.
SKIP_BODY
if this tag is read-only.
javax.servlet.jsp.JspException - if either valueKey or titleKey
have not been set, or as thrown by superclass method.public MaskProperties getMaskProperties()
Stores and maintains ivata op specific mask properties.
public void setFieldName(java.lang.String fieldName)
>Name of the field to which this label refers. This is used in
conjunction with the resourceFieldPath to retrieve the
correct message resources path.
fieldName - the new value of fieldName.public void setMandatory(boolean mandatory)
Set whether or not the value this control must be entered.
mandatory - true if this field must be entered, otherwise
false if the field is optional.public void setMaskProperties(MaskProperties maskPropertiesParam)
Stores and maintains ivata op specific mask properties.
maskPropertiesParam - the new value of maskProperties.public void setReadOnly(boolean readOnly)
Specifies whether or not the input values can be altered.
readOnly - true if the input of this field can be changed,
otherwise false to only display the current
value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||