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_ATTRIBUTE
CLASS_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_ATTRIBUTE
COMMAND_NAME_VARIABLE_NAME, NESTED_PATH_VARIABLE_NAME
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
pageContext
EVAL_BODY_AGAIN
EVAL_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, getDisabled, getOnblur, getOnchange, getOnfocus, getReadonly, isDisabled, isReadonly, setAccesskey, setDisabled, setOnblur, setOnchange, setOnfocus, setReadonly, writeOptionalAttributes
getCssClass, 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, writeDefaultAttributes
convertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPath
createTagWriter, doStartTagInternal, evaluate, evaluateBoolean, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttribute
isHtmlEscape, setHtmlEscape
doCatch, doStartTag, getRequestContext
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
protected 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.JspException
protected 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.JspException
protected 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
.JspException
protected String autogenerateId() throws JspException
autogenerateId
in class AbstractDataBoundFormElementTag
JspException
protected abstract int writeTagContent(TagWriter tagWriter) throws JspException
input
' element to the supplied
TagWriter
,
marking it as 'checked' if appropriate.writeTagContent
in class AbstractFormTag
Tag.doStartTag()
.JspException
protected boolean isValidDynamicAttribute(String localName, Object value)
isValidDynamicAttribute
in class AbstractHtmlElementTag
protected abstract String getInputType()