org.loom.tags
Class AbstractDecoratedTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.AbstractDecoratedTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, LoomTag
- Direct Known Subclasses:
- AbstractHtmlTag, MenuTag, TabContainerTag, TabTag
public abstract class AbstractDecoratedTag
- extends AbstractTag
Parent class of any decorated tag
|
Field Summary |
protected java.lang.String |
decorator
The name of the decorator to use. |
| Methods inherited from class org.loom.tags.AbstractTag |
createWriterWrapper, doBody, doBufferedBody, doTagImpl, endTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, initTag, printParentAttributes, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setRequest, setResponse, setScopedAttribute, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decorator
@Attribute
protected java.lang.String decorator
- The name of the decorator to use. The default decorators for any form field
will display the surrounding label.
AbstractDecoratedTag
public AbstractDecoratedTag()
doTag
public final void doTag()
throws javax.servlet.jsp.JspException,
java.io.IOException
- Initializes the Request and PageData properties, and forward the call to the child class
- Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag- Overrides:
doTag in class AbstractTag
- Throws:
javax.servlet.jsp.JspException
java.io.IOException
renderTag
protected boolean renderTag()
- This is an method intended for component extension. If false, the entire tag
execution will be skipped, including decorator invocation
- Returns:
- true to execute the tag, default false.
getDecoratorInstance
public TagDecorator getDecoratorInstance()
- Retrieves the decorator instance.
setDecorator
public void setDecorator(java.lang.String decorator)
getDecorator
public java.lang.String getDecorator()