|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBodyTagSupport
it.eng.spago.taglib.html.BaseHandlerTag
it.eng.spago.taglib.html.BaseInputTag
it.eng.spago.taglib.html.BaseFieldTag
public abstract class BaseFieldTag
Convenience base class for the various input tags for text fields.
Field Summary | |
---|---|
protected java.lang.String |
accept
Comma-delimited list of content types that a server processing this form will handle correctly. |
protected boolean |
redisplay
The "redisplay contents" flag (used only on password ). |
protected java.lang.String |
type
The type of input field represented by this tag (text, password, or hidden). |
Fields inherited from class it.eng.spago.taglib.html.BaseInputTag |
---|
cols, maxlength, messages, property, rows, scope, value |
Fields inherited from class it.eng.spago.taglib.html.BaseHandlerTag |
---|
accesskey, doDisabled, doReadonly, indexed, tabindex |
Constructor Summary | |
---|---|
BaseFieldTag()
|
Method Summary | |
---|---|
int |
doStartTag()
Generate the required input tag. |
protected java.lang.String |
formatValue(java.lang.Object value)
Return the given value as a formatted String . |
java.lang.String |
getAccept()
|
boolean |
getRedisplay()
|
protected void |
prepareValue(java.lang.StringBuffer results)
Render the value element |
void |
release()
Release any acquired resources. |
protected java.lang.String |
renderInputElement()
Renders a fully formed <input> element. |
void |
setAccept(java.lang.String accept)
|
void |
setRedisplay(boolean redisplay)
|
Methods inherited from class it.eng.spago.taglib.html.BaseInputTag |
---|
doEndTag, getCols, getMaxlength, getProperty, getRows, getScope, getSize, getValue, prepareName, setCols, setMaxlength, setProperty, setRows, setScope, setSize, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String accept
file
tag, but is implemented here because it affects the
rendered HTML of the corresponding <input> tag.
protected boolean redisplay
password
).
protected java.lang.String type
Constructor Detail |
---|
public BaseFieldTag()
Method Detail |
---|
public java.lang.String getAccept()
public void setAccept(java.lang.String accept)
public boolean getRedisplay()
public void setRedisplay(boolean redisplay)
public int doStartTag() throws JspException
Support for indexed property since Struts 1.1
doStartTag
in class BaseInputTag
JspException
- if a JSP exception has occurredprotected java.lang.String renderInputElement() throws JspException
JspException
protected void prepareValue(java.lang.StringBuffer results) throws JspException
results
- The StringBuffer that output will be appended to.
JspException
protected java.lang.String formatValue(java.lang.Object value) throws JspException
String
. This
implementation escapes potentially harmful HTML characters.
value
- The value to be formatted. null
values will
be returned as the empty String "".
JspException
- if a JSP exception has occurredpublic void release()
release
in class BaseInputTag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |