public class

InputTag

extends AbstractHtmlInputElementTag
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
                 ↳ org.springframework.web.servlet.tags.form.InputTag
Known Direct Subclasses

Class Overview

Data-binding-aware JSP tag for rendering an HTML 'input' element with a 'type' of 'text'.

Summary

Constants
String ALT_ATTRIBUTE
String AUTOCOMPLETE_ATTRIBUTE
String MAXLENGTH_ATTRIBUTE
String ONSELECT_ATTRIBUTE
String READONLY_ATTRIBUTE
String SIZE_ATTRIBUTE
[Expand]
Inherited Constants
From class org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag
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
InputTag()
Public Methods
void setAlt(String alt)
Set the value of the 'alt' attribute.
void setAutocomplete(String autocomplete)
Set the value of the 'autocomplete' attribute.
void setMaxlength(String maxlength)
Set the value of the 'maxlength' attribute.
void setOnselect(String onselect)
Set the value of the 'onselect' attribute.
void setSize(String size)
Set the value of the 'size' attribute.
Protected Methods
String getAlt()
Get the value of the 'alt' attribute.
String getAutocomplete()
Get the value of the 'autocomplete' attribute.
String getMaxlength()
Get the value of the 'maxlength' attribute.
String getOnselect()
Get the value of the 'onselect' attribute.
String getSize()
Get the value of the 'size' attribute.
String getType()
Get the value of the 'type' attribute.
int writeTagContent(TagWriter tagWriter)
Writes the 'input' tag to the supplied TagWriter.
void writeValue(TagWriter tagWriter)
Writes the 'value' attribute to the supplied TagWriter.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag
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 ALT_ATTRIBUTE

Constant Value: "alt"

public static final String AUTOCOMPLETE_ATTRIBUTE

Constant Value: "autocomplete"

public static final String MAXLENGTH_ATTRIBUTE

Constant Value: "maxlength"

public static final String ONSELECT_ATTRIBUTE

Constant Value: "onselect"

public static final String READONLY_ATTRIBUTE

Constant Value: "readonly"

public static final String SIZE_ATTRIBUTE

Constant Value: "size"

Public Constructors

public InputTag ()

Public Methods

public void setAlt (String alt)

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

public void setAutocomplete (String autocomplete)

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

public void setMaxlength (String maxlength)

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

public void setOnselect (String onselect)

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

public void setSize (String size)

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

Protected Methods

protected String getAlt ()

Get the value of the 'alt' attribute.

protected String getAutocomplete ()

Get the value of the 'autocomplete' attribute.

protected String getMaxlength ()

Get the value of the 'maxlength' attribute.

protected String getOnselect ()

Get the value of the 'onselect' attribute.

protected String getSize ()

Get the value of the 'size' attribute.

protected String getType ()

Get the value of the 'type' attribute. Subclasses can override this to change the type of 'input' element rendered. Default value is 'text'.

protected int writeTagContent (TagWriter tagWriter)

Writes the 'input' tag to the supplied TagWriter. Uses the value returned by getType() to determine which type of 'input' element to render.

Returns
  • valid tag render instruction as per javax.servlet.jsp.tagext.Tag#doStartTag().
Throws
JspException

protected void writeValue (TagWriter tagWriter)

Writes the 'value' attribute to the supplied TagWriter. Subclasses may choose to override this implementation to control exactly when the value is written.

Throws
JspException