public class FieldTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Field and Description |
---|---|
protected String |
action_name |
protected String |
fieldtype_name |
protected String |
id |
protected String |
klass |
protected String |
params |
protected String |
pattern |
protected String |
readonly |
protected static String |
TEMPLATE_FILE
The default location where the velocity template can be retrieved from.
|
protected String |
trim |
Constructor and Description |
---|
FieldTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Renders the input field element with it's content.
|
int |
doStartTag()
Process the start tag, do nothing.
|
void |
release()
Release any acquired resources.
|
void |
setAction(String action_name)
Sets the name of the related action.
|
void |
setClass(String klass)
Sets the class attribute of the tag.
|
void |
setId(String id)
Sets the id of the tag.
|
void |
setParams(String params)
Sets the variable name(s) of the parameter(s) transmitted to the action,
separated by whitespaces.
|
void |
setPattern(String pattern)
Sets regular expression against which value must validate.
|
void |
setReadonly(String readonly)
Sets the the readonly flag of the tag.
|
void |
setTrim(String trim)
Specify whether the contained string should be trimmed for white-space,
i.e.
|
void |
setType(String fieldtype_name)
Sets the name of the input field type.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
protected static final String TEMPLATE_FILE
protected String id
protected String readonly
protected String klass
protected String action_name
protected String pattern
protected String params
protected String fieldtype_name
protected String trim
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
EVAL_BODY_INCLUDE
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public void setReadonly(String readonly)
public void setClass(String klass)
public void setAction(String action_name)
public void setPattern(String pattern)
public void setType(String fieldtype_name)
public void setParams(String params)
public void setTrim(String trim)