org.loom.tags
Class AbstractDecoratedTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.loom.tags.AbstractTag
          extended by 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.
 
Fields inherited from class org.loom.tags.AbstractTag
expressionLanguageProxy, loomServletRequestFactory, out, repository, request, response
 
Constructor Summary
AbstractDecoratedTag()
           
 
Method Summary
 void doTag()
          Initializes the Request and PageData properties, and forward the call to the child class
 java.lang.String getDecorator()
           
 TagDecorator getDecoratorInstance()
          Retrieves the decorator instance.
protected  boolean renderTag()
          This is an method intended for component extension.
 void setDecorator(java.lang.String decorator)
           
 
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
 

Field Detail

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.

Constructor Detail

AbstractDecoratedTag

public AbstractDecoratedTag()
Method Detail

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()