public abstract class

AbstractCheckedElementTag

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.AbstractCheckedElementTag
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract base class to provide common methods for implementing databinding-aware JSP tags for rendering an 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
AbstractCheckedElementTag()
Protected Methods
String autogenerateId()
Return a unique ID for the bound name within the current PageContext.
void renderFromBoolean(Boolean boundValue, TagWriter tagWriter)
Render the 'input(checkbox)' with the supplied value, marking the 'input' element as 'checked' if the supplied Boolean is true.
void renderFromValue(Object value, TagWriter tagWriter)
Render the 'input(checkbox)' with the supplied value, marking the 'input' element as 'checked' if the supplied value matches the bound value.
void renderFromValue(Object item, Object value, TagWriter tagWriter)
Render the 'input(checkbox)' with the supplied value, marking the 'input' element as 'checked' if the supplied value matches the bound value.
abstract int writeTagContent(TagWriter tagWriter)
Writes the 'input' element to the supplied TagWriter, marking it as 'checked' if appropriate.
[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

Public Constructors

public AbstractCheckedElementTag ()

Protected Methods

protected String autogenerateId ()

Return a unique ID for the bound name within the current PageContext.

Throws
JspException

protected void renderFromBoolean (Boolean boundValue, TagWriter tagWriter)

Render the 'input(checkbox)' with the supplied value, marking the 'input' element as 'checked' if the supplied Boolean is true.

Throws
JspException

protected void renderFromValue (Object value, TagWriter tagWriter)

Render the 'input(checkbox)' with the supplied value, marking the 'input' element as 'checked' if the supplied value matches the bound value.

Throws
JspException

protected void renderFromValue (Object item, Object value, TagWriter tagWriter)

Render the 'input(checkbox)' with the supplied value, marking the 'input' element as 'checked' if the supplied value matches the bound value.

Throws
JspException

protected abstract int writeTagContent (TagWriter tagWriter)

Writes the 'input' element to the supplied TagWriter, marking it as 'checked' if appropriate.

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