public class InputHiddenTag extends InputTagSupport implements BodyTag
Generates one or more <input type="hidden" ... /> HTML tags based on the value supplied. The hidden tag assigns the value attribute by scanning in the following order:
The result of this scan can produce either a Collection, an Array or any other Object. In the first two cases the tag will output an HTML hidden form field tag for each value in the Collection or Array. In all other cases the Object is toString()'d (unless it is null) and a single hidden field will be written.
errorRenderer, fieldErrorspageContext, parentTagEVAL_BODY_BUFFERED, EVAL_BODY_TAGEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
InputHiddenTag()
Basic constructor that sets the input tag's type attribute to "hidden".
|
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
Does nothing.
|
int |
doEndInputTag()
Determines the value(s) that will be used for the tag and then proceeds to generate
one or more hidden fields to contain those values.
|
void |
doInitBody()
Does nothing.
|
int |
doStartInputTag()
Sets the tag up as a hidden tag.
|
Object |
getValue()
Returns the value set with setValue().
|
void |
setValue(Object value)
Sets the value that will be used for the hidden field(s) if no body or repopulation
value is found.
|
doCatch, doEndTag, doFinally, doStartTag, format, format, getActionBean, getDisabled, getFieldErrors, getFormatPattern, getFormatType, getLocalizedFieldName, getLocalizedFieldName, getName, getOverrideValueOrValues, getParentFormTag, getReadonly, getSingleOverrideValue, getSize, getValidationMetadata, getValueOnPage, hasErrors, isItemSelected, loadErrors, makeFocused, registerWithParentForm, setDisabled, setFocus, setFormatPattern, setFormatType, setName, setReadonly, setSizeevaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, isXmlTags, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTaggetActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetBodyContentdoEndTag, doStartTag, getParent, release, setPageContext, setParentpublic InputHiddenTag()
public void setValue(Object value)
value - the result of an EL evaluation, can be a Collection, Array or other.public Object getValue()
public int doStartInputTag()
throws JspException
doStartInputTag in class InputTagSupportJspExceptionpublic void doInitBody()
throws JspException
doInitBody in interface BodyTagJspExceptionpublic int doAfterBody()
throws JspException
doAfterBody in interface IterationTagJspExceptionpublic int doEndInputTag()
throws JspException
doEndInputTag in class InputTagSupportJspException - if the enclosing form tag cannot be found, or output cannot be written.© Copyright 2005-2006, Stripes Development Team.