Class AbstractHtmlInputElementTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.springframework.web.servlet.tags.RequestContextAwareTag
org.springframework.web.servlet.tags.HtmlEscapingAwareTag
org.springframework.web.servlet.tags.form.AbstractFormTag
org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.DynamicAttributes, jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, jakarta.servlet.jsp.tagext.TryCatchFinally, Serializable, EditorAwareTag
- Direct Known Subclasses:
AbstractCheckedElementTag, InputTag, SelectTag, TextareaTag
Base class for databinding-aware JSP tags that render HTML form input element.
Provides a set of properties corresponding to the set of HTML attributes that are common across form input elements.
- Since:
- 2.0
- Author:
- Rob Harrop, Rick Evans, Juergen Hoeller
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the 'accesskey' attribute.static final StringThe name of the 'disabled' attribute.static final StringThe name of the 'onblur' attribute.static final StringThe name of the 'onchange' attribute.static final StringThe name of the 'onfocus' attribute.static final StringThe name of the 'readonly' attribute.Fields inherited from class AbstractHtmlElementTag
CLASS_ATTRIBUTE, DIR_ATTRIBUTE, LANG_ATTRIBUTE, ONCLICK_ATTRIBUTE, ONDBLCLICK_ATTRIBUTE, ONKEYDOWN_ATTRIBUTE, ONKEYPRESS_ATTRIBUTE, ONKEYUP_ATTRIBUTE, ONMOUSEDOWN_ATTRIBUTE, ONMOUSEMOVE_ATTRIBUTE, ONMOUSEOUT_ATTRIBUTE, ONMOUSEOVER_ATTRIBUTE, ONMOUSEUP_ATTRIBUTE, STYLE_ATTRIBUTE, TABINDEX_ATTRIBUTE, TITLE_ATTRIBUTEFields inherited from class AbstractDataBoundFormElementTag
NESTED_PATH_VARIABLE_NAMEFields inherited from class RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTEFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the 'accesskey' attribute.Get the value of the 'onblur' attribute.Get the value of the 'onchange' attribute.Get the value of the 'onfocus' attribute.protected booleanGet the value of the 'disabled' attribute.protected booleanGets the value of the 'readonly' attribute.voidsetAccesskey(String accesskey) Set the value of the 'accesskey' attribute.voidsetDisabled(boolean disabled) Set the value of the 'disabled' attribute.voidSet the value of the 'onblur' attribute.voidsetOnchange(String onchange) Set the value of the 'onchange' attribute.voidsetOnfocus(String onfocus) Set the value of the 'onfocus' attribute.voidsetReadonly(boolean readonly) Sets the value of the 'readonly' attribute.protected voidwriteOptionalAttributes(TagWriter tagWriter) Adds input-specific optional attributes as defined by this base class.Methods inherited from class AbstractHtmlElementTag
getCssClass, getCssErrorClass, getCssStyle, getDir, getDynamicAttributes, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTabindex, getTitle, isValidDynamicAttribute, resolveCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setDynamicAttribute, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle, writeDefaultAttributesMethods inherited from class AbstractDataBoundFormElementTag
autogenerateId, convertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPathMethods inherited from class AbstractFormTag
createTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttribute, writeTagContentMethods inherited from class HtmlEscapingAwareTag
htmlEscape, isHtmlEscape, isResponseEncodedHtmlEscape, setHtmlEscapeMethods inherited from class RequestContextAwareTag
doCatch, doStartTag, getRequestContextMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
-
Field Details
-
ONFOCUS_ATTRIBUTE
-
ONBLUR_ATTRIBUTE
-
ONCHANGE_ATTRIBUTE
-
ACCESSKEY_ATTRIBUTE
-
DISABLED_ATTRIBUTE
-
READONLY_ATTRIBUTE
-
-
Constructor Details
-
AbstractHtmlInputElementTag
public AbstractHtmlInputElementTag()
-
-
Method Details
-
setOnfocus
Set the value of the 'onfocus' attribute. May be a runtime expression. -
getOnfocus
-
setOnblur
Set the value of the 'onblur' attribute. May be a runtime expression. -
getOnblur
-
setOnchange
Set the value of the 'onchange' attribute. May be a runtime expression. -
getOnchange
-
setAccesskey
Set the value of the 'accesskey' attribute. May be a runtime expression. -
getAccesskey
-
setDisabled
public void setDisabled(boolean disabled) Set the value of the 'disabled' attribute. -
isDisabled
protected boolean isDisabled()Get the value of the 'disabled' attribute. -
setReadonly
public void setReadonly(boolean readonly) Sets the value of the 'readonly' attribute. -
isReadonly
protected boolean isReadonly()Gets the value of the 'readonly' attribute. -
writeOptionalAttributes
Adds input-specific optional attributes as defined by this base class.- Overrides:
writeOptionalAttributesin classAbstractHtmlElementTag- Throws:
jakarta.servlet.jsp.JspException
-