|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--com.bea.web.tag.AbstractInputTagSupport
An abstract base class for input tags to extend from. The tag classes provided by the Web toolkit generate the HTML for a form field and pre-populate its value with a default, if applicable. In addition, the tag classes display a localized error message next to the form field if the value supplied by the user is invalid. Moreover, instances of this class initialize a com.bea.web.validation.Word object and save it in Web application scope so that the validation object is accessible by the ControllerServlet using the form field’s name. Lastly, this class encapsulates attributes that are common to all input tags:
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id,
pageContext |
Constructor Summary | |
AbstractInputTagSupport()
Default constructor, all subclasses of javax.servlet.jsp.tagext.TagSupport are required to only
define a public constructor with the same signature, and to call the
superclass constructor. |
Method Summary | |
java.lang.String |
getAttrs()
|
java.lang.String |
getDefault()
|
int |
getMaxlength()
|
java.lang.String |
getName()
|
int |
getSize()
|
boolean |
isRequired()
|
protected void |
printError(javax.servlet.jsp.JspWriter out,
java.lang.String strError)
Prints an error with HTML markup to the supplied output writer. |
void |
release()
Resets the internal state of this instance for reuse. |
void |
setAttrs(java.lang.String strAttrs)
Sets any HTML Attrs for this input tag |
void |
setDefault(java.lang.String strDefault)
Sets the default value for this input tag |
void |
setMaxlength(int iLength)
Sets the maxlength for this form field. |
void |
setName(java.lang.String strName)
Sets the name of this input tag |
void |
setRequired(boolean bIsRequired)
Sets whether this input field is required for successful processing of the HTML form. |
void |
setSize(int iSize)
Sets the size for this form field. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody,
doEndTag,
doStartTag,
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 |
Constructor Detail |
public AbstractInputTagSupport()
javax.servlet.jsp.tagext.TagSupport
are required to only
define a public constructor with the same signature, and to call the
superclass constructor.Method Detail |
public void release()
protected void printError(javax.servlet.jsp.JspWriter out, java.lang.String strError)
public final java.lang.String getDefault()
public final java.lang.String getAttrs()
public final int getMaxlength()
public final java.lang.String getName()
public final int getSize()
public final boolean isRequired()
public final void setDefault(java.lang.String strDefault)
strDefault
- - the default value; if null or "" empty, the value is
ignoredpublic final void setAttrs(java.lang.String strAttrs)
strAttrs
- - the HTML Attrs; if null or "" empty, the value is
ignoredpublic final void setMaxlength(int iLength)
public final void setName(java.lang.String strName) throws java.lang.IllegalArgumentException
strName
- - the name; cannot be null or empty ""strName
is null
or "" emptypublic final void setRequired(boolean bIsRequired)
public final void setSize(int iSize)
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |