public class FormTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Class and Description |
---|---|
static class |
FormTag.ValidationRule
INTERNAL: Internal class encapsulating validation rules
|
Modifier and Type | Field and Description |
---|---|
protected String |
action_uri
If a action URI is specified directly the default process servlet ACTION is
overwritten.
|
protected String |
actiongroup
The action group this form uses, important for the contained input fields
and buttons.
|
protected String |
enctype |
protected String |
focus
The name of the field to receive focus, if any.
|
protected String |
idattr
The id of the tag.
|
protected String |
klass |
protected String |
lockVarname
(Optional) Name of variable which should be tried to lock, because of the
modifications that may be involved in this form.
|
protected static String |
NAME
The attribute key under which the associated bean giving access to this
form is stored.
|
protected Boolean |
nested |
protected String |
readonly
State of the form that specifies whether it is read-only or not.
|
static String |
REQUEST_ID_ATTRIBUTE_NAME |
protected String |
requestId |
protected String |
target
If target is specified it will override the default TARGET.
|
protected static String |
TEMPLATE_FILE
The default location where the velocity template can be retrieved from.
|
Constructor and Description |
---|
FormTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Renders the input form element with it's content.
|
int |
doStartTag() |
String |
getActiongroup() |
void |
release()
Releases any acquired resources.
|
void |
setActiongroup(String actiongroup) |
void |
setActionURI(String action_uri) |
void |
setClass(String klass)
Sets the class attribute of the tag.
|
void |
setEnctype(String enctype) |
void |
setId(String idattr) |
void |
setLock(String lock_varname) |
void |
setNested(String nested) |
protected void |
setOutputSubmitFunc(boolean b) |
void |
setReadonly(String readonly) |
void |
setTarget(String target) |
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
protected static final String TEMPLATE_FILE
protected static final String NAME
protected String idattr
protected String klass
protected String readonly
protected String actiongroup
protected String lockVarname
protected Boolean nested
protected String action_uri
Constants.PROCESS_SERVLET
protected String target
protected String focus
protected String enctype
protected String requestId
public static final String REQUEST_ID_ATTRIBUTE_NAME
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
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 idattr)
setId
in class javax.servlet.jsp.tagext.TagSupport
public void setReadonly(String readonly)
public void setClass(String klass)
public void setActiongroup(String actiongroup)
public String getActiongroup()
public void setActionURI(String action_uri)
public void setTarget(String target)
public void setLock(String lock_varname)
public void setNested(String nested)
public void setEnctype(String enctype)
protected void setOutputSubmitFunc(boolean b)