|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
org.apache.struts.taglib.html.MultiboxTag
org.hdiv.taglib.html.MultiboxTagHDIV
public class MultiboxTagHDIV
Renders an HTML <input> element of type checkbox, whose
"checked" status is initialized based on whether the specified value matches one
of the elements of the underlying property's array of current values. This element
is useful when you have large numbers of checkboxes, and prefer to combine the
values into a single array-valued property instead of multiple boolean properties.
This tag is only valid when nested inside a form tag body.
WARNING: In order to correctly recognize cases where none of the
associated checkboxes are selected, the ActionForm bean associated
with this form must include a statement setting the corresponding array to zero
length in the reset() method.
The value to be returned to the server, if this checkbox is selected, must be defined by one of the following methods:
value attribute, whose contents will be used
literally as the value to be returned.value attribute, and the nested body content of
this tag will be used as the value to be returned.
MultiboxTag,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.apache.struts.taglib.html.MultiboxTag |
|---|
constant, messages, name, property, value |
| Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
|---|
accesskey, doDisabled, doReadonly, indexed, tabindex |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 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 |
| Constructor Summary | |
|---|---|
MultiboxTagHDIV()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
prepareValue(java.lang.StringBuffer results)
Render the value element |
| Methods inherited from class org.apache.struts.taglib.html.MultiboxTag |
|---|
doAfterBody, doEndTag, doStartTag, getName, getProperty, getValue, prepareChecked, prepareName, release, setName, setProperty, setValue |
| Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
|---|
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDir, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLang, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareInternationalization, prepareKeyEvents, prepareMouseEvents, prepareOtherAttributes, prepareStyles, prepareTextEvents, processFormParameterName, processFormParameterValue, processURL, setAccesskey, setAlt, setAltKey, setBundle, setDir, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLang, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setPageContext, setParent |
| Constructor Detail |
|---|
public MultiboxTagHDIV()
| Method Detail |
|---|
protected java.lang.String prepareValue(java.lang.StringBuffer results)
throws javax.servlet.jsp.JspException
prepareValue in class org.apache.struts.taglib.html.MultiboxTagresults - The StringBuffer that output will be appended to.
javax.servlet.jsp.JspExceptionorg.hdiv.composer.IDataComposer#compose(String, String, boolean)
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||