public abstract class

AbstractHtmlInputElementTag

extends AbstractHtmlElementTag
java.lang.Object
   ↳ 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
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Constants
String ACCESSKEY_ATTRIBUTE The name of the 'accesskey' attribute.
String DISABLED_ATTRIBUTE The name of the 'disabled' attribute.
String ONBLUR_ATTRIBUTE The name of the 'onblur' attribute.
String ONCHANGE_ATTRIBUTE The name of the 'onchange' attribute.
String ONFOCUS_ATTRIBUTE The name of the 'onfocus' attribute.
String READONLY_ATTRIBUTE The name of the 'readonly' attribute.
[Expand]
Inherited Constants
From class org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
[Expand]
Inherited Fields
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
Public Constructors
AbstractHtmlInputElementTag()
Public Methods
void setAccesskey(String accesskey)
Set the value of the 'accesskey' attribute.
void setDisabled(String disabled)
Set the value of the 'disabled' attribute.
void setOnblur(String onblur)
Set the value of the 'onblur' attribute.
void setOnchange(String onchange)
Set the value of the 'onchange' attribute.
void setOnfocus(String onfocus)
Set the value of the 'onfocus' attribute.
void setReadonly(String readonly)
Sets the value of the 'readonly' attribute.
Protected Methods
String getAccesskey()
Get the value of the 'accesskey' attribute.
String getDisabled()
Get the value of the 'disabled' attribute.
String getOnblur()
Get the value of the 'onblur' attribute.
String getOnchange()
Get the value of the 'onchange' attribute.
String getOnfocus()
Get the value of the 'onfocus' attribute.
String getReadonly()
Gets the value of the 'readonly' attribute.
boolean isDisabled()
Is the current HTML tag disabled?
boolean isReadonly()
Is the current HTML tag readonly?

Note: some AbstractHtmlInputElementTag subclasses (such a those for checkboxes and radiobuttons) may contain readonly attributes, but are not affected by them since their values don't change (only their status does.)

void writeOptionalAttributes(TagWriter tagWriter)
Adds input-specific optional attributes as defined by this base class.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
From class org.springframework.web.servlet.tags.form.AbstractFormTag
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
From class java.lang.Object
From interface org.springframework.web.servlet.tags.EditorAwareTag

Constants

public static final String ACCESSKEY_ATTRIBUTE

The name of the 'accesskey' attribute.

Constant Value: "accesskey"

public static final String DISABLED_ATTRIBUTE

The name of the 'disabled' attribute.

Constant Value: "disabled"

public static final String ONBLUR_ATTRIBUTE

The name of the 'onblur' attribute.

Constant Value: "onblur"

public static final String ONCHANGE_ATTRIBUTE

The name of the 'onchange' attribute.

Constant Value: "onchange"

public static final String ONFOCUS_ATTRIBUTE

The name of the 'onfocus' attribute.

Constant Value: "onfocus"

public static final String READONLY_ATTRIBUTE

The name of the 'readonly' attribute.

Constant Value: "readonly"

Public Constructors

public AbstractHtmlInputElementTag ()

Public Methods

public void setAccesskey (String accesskey)

Set the value of the 'accesskey' attribute. May be a runtime expression.

public void setDisabled (String disabled)

Set the value of the 'disabled' attribute. May be a runtime expression.

public void setOnblur (String onblur)

Set the value of the 'onblur' attribute. May be a runtime expression.

public void setOnchange (String onchange)

Set the value of the 'onchange' attribute. May be a runtime expression.

public void setOnfocus (String onfocus)

Set the value of the 'onfocus' attribute. May be a runtime expression.

public void setReadonly (String readonly)

Sets the value of the 'readonly' attribute. May be a runtime expression.

See Also

Protected Methods

protected String getAccesskey ()

Get the value of the 'accesskey' attribute.

protected String getDisabled ()

Get the value of the 'disabled' attribute.

protected String getOnblur ()

Get the value of the 'onblur' attribute.

protected String getOnchange ()

Get the value of the 'onchange' attribute.

protected String getOnfocus ()

Get the value of the 'onfocus' attribute.

protected String getReadonly ()

Gets the value of the 'readonly' attribute. May be a runtime expression.

See Also

protected boolean isDisabled ()

Is the current HTML tag disabled?

Throws
JspException

protected boolean isReadonly ()

Is the current HTML tag readonly?

Note: some AbstractHtmlInputElementTag subclasses (such a those for checkboxes and radiobuttons) may contain readonly attributes, but are not affected by them since their values don't change (only their status does.)

Throws
JspException

protected void writeOptionalAttributes (TagWriter tagWriter)

Adds input-specific optional attributes as defined by this base class.

Throws
JspException