public class InputTextAreaTag extends InputTagSupport implements javax.servlet.jsp.tagext.BodyTag
Tag that generates HTML form fields of type <textarea name="foo"> ... </textarea>, which can dynamically re-populate their value. Textareas may have only a single value, whose default may be set using either the body of the textarea, or using the value="" attribute of the tag. At runtime the contents of the textarea are determined by looking for the first non-null value in the following list:
errorRenderer, fieldErrors
pageContext, parentTag
Constructor and Description |
---|
InputTextAreaTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Does nothing.
|
int |
doEndInputTag()
Determines which source is applicable for the contents of the textarea and then writes
out the textarea tag including the body.
|
void |
doInitBody()
Does nothing.
|
int |
doStartInputTag()
Does nothing.
|
java.lang.String |
getCols()
Gets the HTML attribute of the same name.
|
java.lang.String |
getRows()
Gets the HTML attribute of the same name.
|
java.lang.Object |
getValue()
Returns the value set using setValue().
|
void |
setCols(java.lang.String cols)
Sets the HTML attribute of the same name.
|
void |
setRows(java.lang.String rows)
Sets the HTML attribute of the same name.
|
void |
setValue(java.lang.Object value)
Sets the default value of the textarea (if no body is present).
|
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, setSize
evaluateExpression, 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, 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, writeSingletonTag
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent
public void setValue(java.lang.Object value)
public java.lang.Object getValue()
public void setCols(java.lang.String cols)
public java.lang.String getCols()
public void setRows(java.lang.String rows)
public java.lang.String getRows()
public int doStartInputTag() throws javax.servlet.jsp.JspException
doStartInputTag
in class InputTagSupport
javax.servlet.jsp.JspException
public void doInitBody() throws javax.servlet.jsp.JspException
doInitBody
in interface javax.servlet.jsp.tagext.BodyTag
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
javax.servlet.jsp.JspException
public int doEndInputTag() throws javax.servlet.jsp.JspException
doEndInputTag
in class InputTagSupport
javax.servlet.jsp.JspException
- if the enclosing form tag cannot be found, or output cannot be written.? Copyright 2005-2006, Stripes Development Team.