net.sourceforge.stripes.tag
Interface TagErrorRenderer

All Known Implementing Classes:
DefaultTagErrorRenderer

public interface TagErrorRenderer

Implementations of this interface are used to apply formatting to form input fields when there are associated errors. TagErrorRenderers can modify attributes of the tags output html before and/or after the tag renders itself.

If the renderer modifies attributes of the form input tag, it is also responsible for re-setting those values to their prior values in the doAfterEndTag() method. If this is not done correctly and the tag is pooled by the container the results on the page may be pretty unexpected!

Author:
Greg Hinkle

Method Summary
 void doAfterEndTag()
          Executed after the end of rendering of the input tag, including its body and end tag.
 void doBeforeStartTag()
          Executed before the start of rendering of the input tag.
 void init(InputTagSupport tag)
          Initialize this renderer for a specific tag instance
 

Method Detail

init

void init(InputTagSupport tag)
Initialize this renderer for a specific tag instance

Parameters:
tag - The InputTagSuppport subclass that will be modified

doBeforeStartTag

void doBeforeStartTag()
Executed before the start of rendering of the input tag. The input tag attributes can be modified here to be written out with other html attributes.


doAfterEndTag

void doAfterEndTag()
Executed after the end of rendering of the input tag, including its body and end tag.



? Copyright 2005-2006, Stripes Development Team.