Class FormTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.FormTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag for generating HTML forms.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.html.ElementTag
_classes, _data, _out
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
int
boolean
Returns whether RFC1867 file uploads are permitted within this form.int
Returns the current tab index of this form.(package private) int
Increments the current tab index, then returns the new value.void
release()
void
Sets the action URL of this form.void
setAllowUpload
(boolean allowUpload) Sets if RFC1867 file uploads are permitted within this form.void
setLink
(DatabaseBean db) Sets the database ID to link to.void
Sets the ID parameter for the command invocation.void
Sets the action type of this form.void
Sets the command operation for this button.void
setPageContext
(PageContext ctxt) Loads the UI scheme name from the user object, if present.void
setSpinner
(boolean doSpinner) Sets whether to render the hidden spinner DIV.void
Sets the form target.void
setValidate
(String jsFunc) Sets this form's JavaScript validation routine.Methods inherited from class org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
FormTag
public FormTag()Creates a new Form element Tag.
-
-
Method Details
-
setPageContext
Loads the UI scheme name from the user object, if present.- Specified by:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classElementTag
- Parameters:
ctxt
- the JSP page context
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classElementTag
- Throws:
JspException
-
doEndTag
- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Throws:
JspException
-
incTabIndex
int incTabIndex()Increments the current tab index, then returns the new value.- Returns:
- the new tab Index
-
getTabIndex
public int getTabIndex()Returns the current tab index of this form.- Returns:
- the current tab Index
-
getAllowUpload
public boolean getAllowUpload()Returns whether RFC1867 file uploads are permitted within this form.- Returns:
- TRUE if file uploads are permitted, otherwise FALSE
-
setLinkID
Sets the ID parameter for the command invocation. If it starts with "0x" then turn the rest of the string into a hexadecimal number string.- Parameters:
id
- the parameter- See Also:
-
setLink
Sets the database ID to link to.- Parameters:
db
- aDatabaseBean
with the proper database ID
-
setOp
Sets the command operation for this button.- Parameters:
opName
- the operation name- See Also:
-
setMethod
Sets the action type of this form.- Parameters:
postType
- the action type, typically GET or POST
-
setValidate
Sets this form's JavaScript validation routine.- Parameters:
jsFunc
- JavaScript code to be passed as the onSubmit attribute
-
setTarget
Sets the form target.- Parameters:
target
- the target frame name
-
setAction
Sets the action URL of this form.- Parameters:
url
- the URL where this form data will be sent to on submit
-
setAllowUpload
public void setAllowUpload(boolean allowUpload) Sets if RFC1867 file uploads are permitted within this form.- Parameters:
allowUpload
- TRUE if file uploads are permitted, otherwise FALSE
-
setSpinner
public void setSpinner(boolean doSpinner) Sets whether to render the hidden spinner DIV.- Parameters:
doSpinner
- TRUE if the spinner DIV should be rendered, otherwise FALSE
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classElementTag
-