Package com.appslandia.plum.tags
Class FormTag
- java.lang.Object
-
- com.appslandia.plum.tags.TagBase
-
- com.appslandia.plum.tags.UITagBase
-
- com.appslandia.plum.tags.FormTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.DynamicAttributes,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
@Tag(name="form", bodyContent="scriptless") public class FormTag extends UITagBase
- Author:
- Loc Ha
-
-
Field Summary
Fields Modifier and Type Field Description protected String_actionprotected Map<String,Object>_parametersprotected StringacceptCharsetprotected Stringactionprotected booleanactionTypeprotected Stringautocompleteprotected Stringcontrollerprotected booleancsrfprotected Stringenctypeprotected Stringmethodprotected Stringnameprotected booleannovalidate-
Fields inherited from class com.appslandia.plum.tags.UITagBase
clazz, datatag, dynamicAttributes, hidden, id, render, style, title
-
Fields inherited from class com.appslandia.plum.tags.TagBase
jspBody, pageContext, parentTag
-
-
Constructor Summary
Constructors Constructor Description FormTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetTagName()protected booleanhasBody()protected voidinitTag()voidsetAcceptCharset(String acceptCharset)voidsetAction(String action)voidsetActionType(boolean actionType)voidsetAutocomplete(String autocomplete)voidsetController(String controller)voidsetCsrf(boolean csrf)voidsetDynamicAttribute(String uri, String name, Object value)voidsetEnctype(String enctype)voidsetMethod(String method)voidsetName(String name)voidsetNovalidate(boolean novalidate)protected voidwriteAttributes(javax.servlet.jsp.JspWriter out)protected voidwriteBody(javax.servlet.jsp.JspWriter out)-
Methods inherited from class com.appslandia.plum.tags.UITagBase
doTag, setClazz, setDatatag, setHidden, setId, setRender, setStyle, setTitle, writeDynamicAttributes, writeTag
-
Methods inherited from class com.appslandia.plum.tags.TagBase
evalJspBody, getModelState, getPageContext, getParent, getRequest, getRequestContext, getResponse, setJspBody, setJspContext, setParent
-
-
-
-
Field Detail
-
name
protected String name
-
controller
protected String controller
-
action
protected String action
-
actionType
protected boolean actionType
-
csrf
protected boolean csrf
-
method
protected String method
-
acceptCharset
protected String acceptCharset
-
enctype
protected String enctype
-
novalidate
protected boolean novalidate
-
autocomplete
protected String autocomplete
-
_action
protected String _action
-
-
Method Detail
-
getTagName
protected String getTagName()
- Specified by:
getTagNamein classUITagBase
-
setDynamicAttribute
public void setDynamicAttribute(String uri, String name, Object value) throws javax.servlet.jsp.JspException
- Specified by:
setDynamicAttributein interfacejavax.servlet.jsp.tagext.DynamicAttributes- Overrides:
setDynamicAttributein classUITagBase- Throws:
javax.servlet.jsp.JspException
-
initTag
protected void initTag() throws javax.servlet.jsp.JspException, IOException- Specified by:
initTagin classUITagBase- Throws:
javax.servlet.jsp.JspExceptionIOException
-
writeAttributes
protected void writeAttributes(javax.servlet.jsp.JspWriter out) throws javax.servlet.jsp.JspException, IOException- Specified by:
writeAttributesin classUITagBase- Throws:
javax.servlet.jsp.JspExceptionIOException
-
writeBody
protected void writeBody(javax.servlet.jsp.JspWriter out) throws javax.servlet.jsp.JspException, IOException- Overrides:
writeBodyin classUITagBase- Throws:
javax.servlet.jsp.JspExceptionIOException
-
setName
@Attribute(required=false, rtexprvalue=false) public void setName(String name)
-
setController
@Attribute(required=false, rtexprvalue=false) public void setController(String controller)
-
setAction
@Attribute(required=true, rtexprvalue=false) public void setAction(String action)
-
setCsrf
@Attribute(required=false, rtexprvalue=false) public void setCsrf(boolean csrf)
-
setActionType
@Attribute(required=false, rtexprvalue=false) public void setActionType(boolean actionType)
-
setMethod
@Attribute(required=false, rtexprvalue=false) public void setMethod(String method)
-
setAcceptCharset
@Attribute(required=false, rtexprvalue=false) public void setAcceptCharset(String acceptCharset)
-
setEnctype
@Attribute(required=false, rtexprvalue=false) public void setEnctype(String enctype)
-
setNovalidate
@Attribute(required=false, rtexprvalue=false) public void setNovalidate(boolean novalidate)
-
setAutocomplete
@Attribute(required=false, rtexprvalue=false) public void setAutocomplete(String autocomplete)
-
-