com.taggercat.tags
Class HTMLCheckBoxesTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.AbstractExpEvalTag
com.taggercat.tags.AbstractHTMLInputTag
com.taggercat.tags.HTMLRadioButtonsTag
com.taggercat.tags.HTMLCheckBoxesTag
- All Implemented Interfaces:
- com.taggercat.el.ELPropertyResolver, java.io.Serializable, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class HTMLCheckBoxesTag
- extends HTMLRadioButtonsTag
This tag creates a series of check boxes that populates a single ds property.
The check boxes can be filled from a Code Table, a List, Map, a properties file, or an explicitly
specified list of comma separated options. The List or Map object can be in any accessible scope.
List objects are used where the stored value is the same as the display
value. Map objects are used when the stored value is a key to the
display value ( a coded value list ).
If the listOptions attribute is set in conjunction with the listVar attribute, and the listVar instance
does not exist, then the listVar named scope variable will be created from the
listOptions attribute list.
Checkboxes are always generated with a matching hidden form element used to submit unselected items.
- See Also:
- Serialized Form
-
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class com.taggercat.tags.AbstractHTMLInputTag |
addBaseAttributes, addBaseEnabledAttributes, doStartTag, getAccesskey, getAjaxValidationJSFunction, getCondition, getDisabled, getDsn, getField, getName, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRowID, getStyle, getStyleclass, getStyleid, getTabindex, getTitle, getValue, isQbf, isShowDisabled, isXHTMLtag, setAccesskey, setAjaxValidationJSFunction, setCondition, setDisabled, setDsn, setDynamicAttribute, setField, setFormat, setId, setName, setNulls, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setPreserveHTML, setQbf, setReadonly, setRowID, setShowDisabled, setStyle, setStyleid, setTabindex, setTitle, setValue |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLCheckBoxesTag
public HTMLCheckBoxesTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
HTMLRadioButtonsTag
- Resets the tags internal state.
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class HTMLRadioButtonsTag
- Throws:
javax.servlet.jsp.JspException
- Returns:
- EVAL_PAGE
setValue
public void setValue(Model model,
DataSource ds,
TCEntity tcEntity)
throws javax.servlet.jsp.JspException
- Description copied from class:
AbstractHTMLInputTag
- Sets the value field and attribute.
- Overrides:
setValue in class HTMLRadioButtonsTag
- Throws:
javax.servlet.jsp.JspException- Parameters:
model - the modelds - the data source the field applies totcEntity - the TCEntity
setSelected
public void setSelected(java.lang.String selected)
- Sets the selected attribute. This is a value that is used to locate the current
item in the option list. The selected values can be a semicolon separated list.
- Overrides:
setSelected in class HTMLRadioButtonsTag
- Parameters:
selected - The new selected value