org.apache.tapestry.form
Interface FormComponentContributor

All Known Subinterfaces:
Translator, Validator
All Known Implementing Classes:
AbstractFormComponentContributor, AbstractTranslator, AbstractValidatorWrapper, BaseValidator, BeanValidatorWrapper, BigDecimalTranslator, DateTranslator, Email, FormatTranslator, Identity, Max, MaxDate, MaxLength, Min, MinDate, MinLength, NumberTranslator, Pattern, Required, StringTranslator

public interface FormComponentContributor

Interface for objects that contribute client-side events back to a form.

Since:
4.0
Author:
Paul Ferraro

Method Summary
 void renderContribution(IMarkupWriter writer, IRequestCycle cycle, FormComponentContributorContext context, IFormComponent field)
          Invoked by a form component after it finishes rendering its tag (but before the tag is closed) to allow this object to contribute to the component's rendering process.
 

Method Detail

renderContribution

void renderContribution(IMarkupWriter writer,
                        IRequestCycle cycle,
                        FormComponentContributorContext context,
                        IFormComponent field)
Invoked by a form component after it finishes rendering its tag (but before the tag is closed) to allow this object to contribute to the component's rendering process. Typically used by Validators and Translators to add javascript methods to the form's submit event handler.

Parameters:
writer - allows contributor to write additional attributes into the component's tag
cycle - for accessing request information
context - utilities for genering messages and client-side validation
field - the field for which contributions are being rendered


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.