public class FieldMetadataTag extends HtmlTagSupport implements javax.servlet.jsp.tagext.BodyTag
Field metadata tag for use with the Stripes framework. Exposes field properties via JavaScript to allow client side validation. If this tag has a body it will be wrapped with JavaScript tags for convenience.
| Modifier and Type | Class and Description |
|---|---|
class |
FieldMetadataTag.Var
This is what is placed into the request attribute.
|
pageContext, parentTag| Constructor and Description |
|---|
FieldMetadataTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody() |
int |
doEndTag()
Abstract method from the Tag interface.
|
void |
doInitBody() |
int |
doStartTag()
Abstract method from the Tag interface.
|
java.lang.String |
getAction() |
java.lang.Object |
getBeanclass()
Corresponding getter for 'beanclass', will always return null.
|
java.lang.String |
getFields() |
FormTag |
getForm() |
java.lang.String |
getVar() |
boolean |
isFqn() |
boolean |
isIncludeType() |
void |
setAction(java.lang.String action)
Sets the action for the form.
|
void |
setBeanclass(java.lang.Object beanclass)
Sets the 'action' attribute by inspecting the bean class provided and asking the current
ActionResolver what the appropriate URL is.
|
void |
setFields(java.lang.String fields)
Optional comma separated list of additional fields to expose.
|
void |
setFqn(boolean fqn)
Set to true to include the fully qualified class name for all fields.
|
void |
setIncludeType(boolean includeType)
Set to true to include type information for all fields.
|
void |
setVar(java.lang.String var)
Sets the name of the variable to hold metadata.
|
evaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTaggetActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParentpublic FormTag getForm()
public void doInitBody()
throws javax.servlet.jsp.JspException
doInitBody in interface javax.servlet.jsp.tagext.BodyTagjavax.servlet.jsp.JspExceptionpublic int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspExceptionpublic int doStartTag()
throws javax.servlet.jsp.JspException
StripesTagSupportdoStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class StripesTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
StripesTagSupportdoEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class StripesTagSupportjavax.servlet.jsp.JspExceptionpublic java.lang.String getVar()
public void setVar(java.lang.String var)
var - the name of the attribute that will contain field metadatapublic java.lang.String getFields()
public void setFields(java.lang.String fields)
fields - comma separated list of field namespublic boolean isIncludeType()
public void setIncludeType(boolean includeType)
includeType - include type info for all fieldspublic boolean isFqn()
public void setFqn(boolean fqn)
fqn - include fully qualified class name for all fieldspublic void setAction(java.lang.String action)
action - the action path, relative to the root of the web applicationpublic java.lang.String getAction()
public void setBeanclass(java.lang.Object beanclass)
throws StripesJspException
beanclass - the String FQN of the class, or a Class representing the classStripesJspException - if the URL cannot be determined for any reason, most likely
because of a mis-spelled class name, or a class that's not an ActionBeanpublic java.lang.Object getBeanclass()
? Copyright 2005-2006, Stripes Development Team.