org.apache.tapestry.form
Interface ValidatableFieldSupport

All Known Implementing Classes:
ValidatableFieldSupportImpl

public interface ValidatableFieldSupport

Implements the logic used by RequiredFields for required field checking on rewind and generating client-side logic during render.

Since:
4.0
Author:
Paul Ferraro

Method Summary
 void bind(ValidatableField component, IMarkupWriter writer, IRequestCycle cycle, java.lang.String value)
          Called during rewind of the specified component.
 void render(ValidatableField component, IMarkupWriter writer, IRequestCycle cycle)
          Called during render of the specified component.
 void renderContributions(ValidatableField component, IMarkupWriter writer, IRequestCycle cycle)
          Called during render of the specified component.
 

Method Detail

render

void render(ValidatableField component,
            IMarkupWriter writer,
            IRequestCycle cycle)
Called during render of the specified component. Determines form element value used to render element.


renderContributions

void renderContributions(ValidatableField component,
                         IMarkupWriter writer,
                         IRequestCycle cycle)
Called during render of the specified component. Renders any contributions from translator and validators.


bind

void bind(ValidatableField component,
          IMarkupWriter writer,
          IRequestCycle cycle,
          java.lang.String value)
Called during rewind of the specified component. Specified value is translated via the component's translator then validated using the component's validators.

Throws:
ValidatorException - if translation or validation fails