org.loom.tags.decorator
Interface TagDecorator<T extends LoomTag>

All Known Subinterfaces:
TabDecorator
All Known Implementing Classes:
AbstractFormInputDecorator, AbstractLoomDecorator, AbstractMenuDecorator, DefaultTabDecorator, InlineMenuDecorator, InputRadioDecorator, LinkOnlyDecorator, NestedMenuDecorator, PrintHiddenFieldDecorator, ReadOnlyDecorator

public interface TagDecorator<T extends LoomTag>

Decorates a tag, adding content before and after its render. Implementing classes MUST BE THREAD SAFE. The simple rule of thumb is that you better do not use any attributes in your decorators.


Method Summary
 void afterDoTag(T tag)
           
 boolean beforeDoTag(T tag)
           
 

Method Detail

beforeDoTag

boolean beforeDoTag(T tag)
                    throws java.io.IOException,
                           javax.servlet.jsp.JspException
Returns:
true to execute the tag afterwards, false to skip the tag. If false, the afterDoTag method will not be triggered.
Throws:
java.io.IOException
javax.servlet.jsp.JspException

afterDoTag

void afterDoTag(T tag)
                throws java.io.IOException,
                       javax.servlet.jsp.JspException
Throws:
java.io.IOException
javax.servlet.jsp.JspException