public abstract class

AbstractSingleCheckedElementTag

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

Class Overview

Abstract base class to provide common methods for implementing databinding-aware JSP tags for rendering a single HTML 'input' element with a 'type' of 'checkbox' or 'radio'.

Summary

[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
AbstractSingleCheckedElementTag()
Public Methods
void setLabel(Object label)
Set the value of the 'label' attribute.
void setValue(Object value)
Set the value of the 'value' attribute.
Protected Methods
Object getLabel()
Get the value of the 'label' attribute.
Object getValue()
Get the value of the 'value' attribute.
int writeTagContent(TagWriter tagWriter)
Renders the 'input(radio)' element with the configured value.
abstract void writeTagDetails(TagWriter tagWriter)
Write the details for the given primary tag: i.e.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.form.AbstractCheckedElementTag
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

Public Constructors

public AbstractSingleCheckedElementTag ()

Public Methods

public void setLabel (Object label)

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

public void setValue (Object value)

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

Protected Methods

protected Object getLabel ()

Get the value of the 'label' attribute.

protected Object getValue ()

Get the value of the 'value' attribute.

protected int writeTagContent (TagWriter tagWriter)

Renders the 'input(radio)' element with the configured value. Marks the element as checked if the value matches the bound value.

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

protected abstract void writeTagDetails (TagWriter tagWriter)

Write the details for the given primary tag: i.e. special attributes and the tag's value.

Throws
JspException