Class FormTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.FormTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag for generating HTML forms.
- Since:
- 1.0
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class ElementTag
_classes, _data, _outFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intbooleanReturns whether RFC1867 file uploads are permitted within this form.intReturns the current tab index of this form.(package private) intIncrements the current tab index, then returns the new value.voidrelease()voidSets the action URL of this form.voidsetAllowUpload(boolean allowUpload) Sets if RFC1867 file uploads are permitted within this form.voidsetLink(DatabaseBean db) Sets the database ID to link to.voidSets the ID parameter for the command invocation.voidSets the action type of this form.voidSets the command operation for this button.voidsetPageContext(jakarta.servlet.jsp.PageContext ctxt) Loads the UI scheme name from the user object, if present.voidsetSpinner(boolean doSpinner) Sets whether to render the hidden spinner DIV.voidSets the form target.voidsetValidate(String jsFunc) Sets this form's JavaScript validation routine.Methods inherited from class ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setStyleMethods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAMethods inherited from class jakarta.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
public void setPageContext(jakarta.servlet.jsp.PageContext ctxt) Loads the UI scheme name from the user object, if present.- Specified by:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classElementTag- Parameters:
ctxt- the JSP page context
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classElementTag- Throws:
jakarta.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.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- aDatabaseBeanwith 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:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classElementTag
-