public abstract class AbstractCheckedElementTag extends AbstractHtmlInputElementTag
input'
element with a 'type' of 'checkbox' or 'radio'.ACCESSKEY_ATTRIBUTE, DISABLED_ATTRIBUTE, ONBLUR_ATTRIBUTE, ONCHANGE_ATTRIBUTE, ONFOCUS_ATTRIBUTE, READONLY_ATTRIBUTECLASS_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_ATTRIBUTENESTED_PATH_VARIABLE_NAMElogger, REQUEST_CONTEXT_PAGE_ATTRIBUTEpageContextEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
AbstractCheckedElementTag() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
autogenerateId()
Return a unique ID for the bound name within the current PageContext.
|
protected abstract String |
getInputType()
Return the type of the HTML input element to generate:
"checkbox" or "radio".
|
protected boolean |
isValidDynamicAttribute(String localName,
Object value)
Flags "type" as an illegal dynamic attribute.
|
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. |
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. |
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. |
protected abstract int |
writeTagContent(TagWriter tagWriter)
Writes the '
input' element to the supplied
TagWriter,
marking it as 'checked' if appropriate. |
getAccesskey, getOnblur, getOnchange, getOnfocus, isDisabled, isReadonly, setAccesskey, setDisabled, setOnblur, setOnchange, setOnfocus, setReadonly, writeOptionalAttributesgetCssClass, getCssErrorClass, getCssStyle, getDir, getDynamicAttributes, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTabindex, getTitle, resolveCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setDynamicAttribute, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle, writeDefaultAttributesconvertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPathcreateTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttributeisHtmlEscape, setHtmlEscapedoCatch, doStartTag, getRequestContextdoAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValueprotected void renderFromValue(Object value, TagWriter tagWriter) throws JspException
input(checkbox)' with the supplied value, marking the
'input' element as 'checked' if the supplied value matches the
bound value.JspExceptionprotected void renderFromValue(Object item, Object value, TagWriter tagWriter) throws JspException
input(checkbox)' with the supplied value, marking the
'input' element as 'checked' if the supplied value matches the
bound value.JspExceptionprotected void renderFromBoolean(Boolean boundValue, TagWriter tagWriter) throws JspException
input(checkbox)' with the supplied value, marking
the 'input' element as 'checked' if the supplied Boolean is
true.JspExceptionprotected String autogenerateId() throws JspException
autogenerateId in class AbstractDataBoundFormElementTagJspExceptionprotected abstract int writeTagContent(TagWriter tagWriter) throws JspException
input' element to the supplied
TagWriter,
marking it as 'checked' if appropriate.writeTagContent in class AbstractFormTagTag.doStartTag().JspExceptionprotected boolean isValidDynamicAttribute(String localName, Object value)
isValidDynamicAttribute in class AbstractHtmlElementTagprotected abstract String getInputType()