|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.FieldMetadataTag
public class FieldMetadataTag
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.
Nested Class Summary | |
---|---|
class |
FieldMetadataTag.Var
This is what is placed into the request attribute. |
Field Summary |
---|
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
pageContext, parentTag |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
FieldMetadataTag()
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.sourceforge.stripes.tag.HtmlTagSupport |
---|
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, writeSingletonTag |
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
setBodyContent |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, release, setPageContext, setParent |
Constructor Detail |
---|
public FieldMetadataTag()
Method Detail |
---|
public FormTag getForm()
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
JspException
public int doStartTag() throws JspException
StripesTagSupport
doStartTag
in interface Tag
doStartTag
in class StripesTagSupport
JspException
public int doEndTag() throws JspException
StripesTagSupport
doEndTag
in interface Tag
doEndTag
in class StripesTagSupport
JspException
public 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 class
StripesJspException
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |