|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.InputTagSupport
net.sourceforge.stripes.tag.InputTextTag
public class InputTextTag
Tag that generates HTML form fields of type <input type="text" name="foo" value="bar"/>, which can dynamically re-populate their value. Text tags may have only a single value, whose default may be set using either the body of the tag, or using the value="" attribute of the tag. At runtime the contents of the text field are determined by looking for the first non-null value in the following list:
Field Summary |
---|
Fields inherited from class net.sourceforge.stripes.tag.InputTagSupport |
---|
errorRenderer, fieldErrors |
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
pageContext, parentTag |
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 | |
---|---|
InputTextTag()
Basic constructor that sets the input tag's type attribute to "text". |
Method Summary | |
---|---|
int |
doAfterBody()
Does nothing. |
int |
doEndInputTag()
Determines which source is applicable for the value of the text field and then writes out the tag. |
void |
doInitBody()
Does nothing. |
int |
doStartInputTag()
Sets type input tags type to "text". |
protected String |
getEffectiveMaxlength()
Gets the maxlength value that is in effect for this tag, as determined by checking getMaxlength() and then the maxlength element of the Validate
annotation on the associated ActionBean property. |
String |
getMaxlength()
Gets the HTML attribute of the same name. |
Object |
getValue()
Returns the value set using setValue(). |
void |
setMaxlength(String maxlength)
Sets the HTML attribute of the same name. |
void |
setValue(Object value)
Sets the default value of the text field (if no body is present). |
Methods inherited from class net.sourceforge.stripes.tag.InputTagSupport |
---|
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 |
Methods inherited from class net.sourceforge.stripes.tag.HtmlTagSupport |
---|
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 |
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
setBodyContent |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
doEndTag, doStartTag, getParent, release, setPageContext, setParent |
Constructor Detail |
---|
public InputTextTag()
Method Detail |
---|
public void setValue(Object value)
public Object getValue()
public void setMaxlength(String maxlength)
public String getMaxlength()
protected String getEffectiveMaxlength() throws StripesJspException
getMaxlength()
and then the maxlength
element of the Validate
annotation on the associated ActionBean
property.
StripesJspException
- if thrown by InputTagSupport.getValidationMetadata()
public int doStartInputTag() throws JspException
doStartInputTag
in class InputTagSupport
JspException
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
JspException
public int doEndInputTag() throws JspException
doEndInputTag
in class InputTagSupport
JspException
- if the enclosing form tag cannot be found, or output cannot be written.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |