Just returning void after recording various errors.., worked fine...

thanks

Nicolás.-


On Tue, Jan 18, 2011 at 4:12 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 18 Jan 2011 16:43:24 -0200, Nicolas Barrera <nbarr...@gmail.com>
> wrote:
>
>  So I thought.., if I can't have a return value and the only way to inform
>> that form is invalid is through raising a ValidationException... then I
>> thought it was not possible to inform many errors in one response...
>> while it's constructor accepts only one String.
>>
>
> This is just for field-level validation.
>
>
>  Where can I find what kind of return type a specific event handler can
>> return..,
>>
>
> In the documentation of the component that triggers it.
>
>
>  for example.. the VALIDATE_FORM event. handler?
>>
>
> It must return void. You register errors by injecting the form and using
> its recordError() methods.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to