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, _outFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.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(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 org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setStyleMethods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext, passedCAPTCHAMethods 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:
setPageContextin interfaceTag- Overrides:
setPageContextin classElementTag- Parameters:
ctxt- the JSP page context
-
doStartTag
- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classElementTag- Throws:
JspException
-
doEndTag
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin 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- 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 interfaceTag- Overrides:
releasein classElementTag
-