public class FieldMetadataTag extends HtmlTagSupport implements 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, parentTagEVAL_BODY_BUFFERED, EVAL_BODY_TAGEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| 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.
|
String |
getAction() |
Object |
getBeanclass()
Corresponding getter for 'beanclass', will always return null.
|
String |
getFields() |
FormTag |
getForm() |
String |
getVar() |
boolean |
isFqn() |
boolean |
isIncludeType() |
void |
setAction(String action)
Sets the action for the form.
|
void |
setBeanclass(Object beanclass)
Sets the 'action' attribute by inspecting the bean class provided and asking the current
ActionResolver what the appropriate URL is.
|
void |
setFields(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(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, isXmlTags, 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, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetBodyContentgetParent, release, setPageContext, setParentpublic FormTag getForm()
public void doInitBody()
throws JspException
doInitBody in interface BodyTagJspExceptionpublic int doAfterBody()
throws JspException
doAfterBody in interface IterationTagJspExceptionpublic int doStartTag()
throws JspException
StripesTagSupportdoStartTag in interface TagdoStartTag in class StripesTagSupportJspExceptionpublic int doEndTag()
throws JspException
StripesTagSupportdoEndTag in interface TagdoEndTag in class StripesTagSupportJspExceptionpublic String getVar()
public void setVar(String var)
var - the name of the attribute that will contain field metadatapublic String getFields()
public void setFields(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(String action)
action - the action path, relative to the root of the web applicationpublic String getAction()
public void setBeanclass(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 Object getBeanclass()
© Copyright 2005-2006, Stripes Development Team.