Class EMailInputTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.FormElementTag
org.deltava.taglib.html.InputTag
org.deltava.taglib.html.EMailInputTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
An HTML 5 JSP tag for e-mail input elements.
- Since:
- 5.0
- Version:
- 5.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class FormElementTag
_valueFields inherited from class ElementTag
_classes, _data, _outModifier and TypeFieldDescriptionprotected final Collection<String> protected final XMLRendererprotected jakarta.servlet.jsp.JspWriterFields 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 TypeMethodDescriptionintCreates an e-mail tag if executing in an HTML5 browser.Methods inherited from class InputTag
doEndTag, release, setAutoComplete, setAutofill, setDisabled, setMax, setOnBlur, setOnChange, setOnKeypress, setOnKeyup, setOnRightClick, setPlaceholder, setReadOnly, setSize, setSpellcheck, setTypeModifier and TypeMethodDescriptionintdoEndTag()Generates the HTML for this Input element.voidrelease()voidsetAutoComplete(boolean isAutoComplete) Disables or enables autocomplete support for this field.voidsetAutofill(String token) Sets the autofill token for this field.voidsetDisabled(boolean disabled) Marks this field as disabled.voidsetMax(int maxLen) Sets the maximum length of this field.voidSets the JavaScript event for this element's onBlur() event.voidsetOnChange(String jsCode) Sets the JavaScript event for this element's onChange() event.voidsetOnKeypress(String jsCode) Sets the JavaScript event for this element's onKeyPress() event.voidsetOnKeyup(String jsCode) Sets the JavaScript event for this element's onKeyUp() event.voidSets the Javascript to execute when the element is right-clicked.voidsetPlaceholder(String ph) Sets the placeholder for this field.voidsetReadOnly(boolean readOnly) Marks this field as read-only.voidsetSize(int len) Sets the size of this field.voidsetSpellcheck(boolean sc) Marks this field as spellcheckable.voidSets the HTML field type.Methods inherited from class FormElementTag
setDelimValues, setIdx, setName, setRequired, setValue, validateStateModifier and TypeMethodDescriptionvoidsetDelimValues(String values) Sets multiple values for this input element.voidSets the tab index of this field.voidSets the name of this field.voidsetRequired(boolean isRequired) Sets this field as required for HTML5 browsers.voidSets the value of this input element.protected voidValidates tag state.Methods inherited from class ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyleModifier and TypeMethodDescriptionprotected intGets and increments the current tab index count for the parent form tag.protected StringgetName()Returns the type of HTML element this tag generated.protected FormTagReturns the parent form tag.voidsetClassName(String cName) Sets the CSS class name of this HTML element.voidSets the ID of this HTML element.protected voidsetNumericAttr(String attrName, int value, int minValue) Sets a numeric attribute.voidsetPageContext(jakarta.servlet.jsp.PageContext ctxt) voidAssociates a CSS style with this HTML element.Methods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAModifier and TypeMethodDescriptionprotected HTTPContextDataFetches the browser data.protected booleanReturns whether the user has passed CAPTCHA validation.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
EMailInputTag
public EMailInputTag()
-
-
Method Details
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionCreates an e-mail tag if executing in an HTML5 browser.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classElementTag- Returns:
- SKIP_BODY always
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-