public abstract class BaseFieldTag extends BaseInputTag
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
accept
Comma-delimited list of content types that a server processing this
form will handle correctly.
|
protected boolean |
redisplay
The "redisplay contents" flag (used only on
password ). |
protected java.lang.String |
type
The type of input field represented by this tag (text, password, or
hidden).
|
cols, maxlength, messages, name, property, rows, value
accesskey, doDisabled, doReadonly, indexed, tabindex
Constructor and Description |
---|
BaseFieldTag() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Generate the required input tag.
|
protected java.lang.String |
formatValue(java.lang.Object value)
Return the given value as a formatted
String . |
java.lang.String |
getAccept() |
boolean |
getRedisplay() |
protected void |
prepareValue(java.lang.StringBuffer results)
Render the value element
|
void |
release()
Release any acquired resources.
|
protected java.lang.String |
renderInputElement()
Renders a fully formed <input> element.
|
void |
setAccept(java.lang.String accept) |
void |
setRedisplay(boolean redisplay) |
doEndTag, getAutocomplete, getCols, getMaxlength, getName, getProperty, getRows, getSize, getValue, prepareName, setAutocomplete, setCols, setMaxlength, setName, setProperty, setRows, setSize, setValue
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDir, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLang, 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, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareInternationalization, prepareKeyEvents, prepareMouseEvents, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDir, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLang, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected java.lang.String accept
file
tag, but is implemented here because it affects the
rendered HTML of the corresponding <input> tag.protected boolean redisplay
password
).protected java.lang.String type
public java.lang.String getAccept()
public void setAccept(java.lang.String accept)
public boolean getRedisplay()
public void setRedisplay(boolean redisplay)
public int doStartTag() throws javax.servlet.jsp.JspException
Support for indexed property since Struts 1.1
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseInputTag
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected java.lang.String renderInputElement() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void prepareValue(java.lang.StringBuffer results) throws javax.servlet.jsp.JspException
results
- The StringBuffer that output will be appended to.javax.servlet.jsp.JspException
protected java.lang.String formatValue(java.lang.Object value) throws javax.servlet.jsp.JspException
String
. This
implementation escapes potentially harmful HTML characters.value
- The value to be formatted. null
values will
be returned as the empty String "".javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BaseInputTag
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.