Re: T.5.2.6 recordError on FormAjaxLoop

2012-06-20 Thread Steve Eynon
I don't think it is. The default implementation of the
ValidationTracker records errors against individual fields, of which
in the loop there is only one. (Caveat: I've not looked at the
FormAjaxLoop specifically.)

In a standard loop, this implementation helps - you may be able to
adjust for a FormAjaxLoop
http://tapestry.1045711.n5.nabble.com/Validating-forms-inside-a-loop-td2426980.html

Steve.

On 20 June 2012 21:41, resign  wrote:
> hi,
> is it possible to record an error to single field of FormAjaxLoop?
> The requirement is:
>  i want to make a form with several email fields.
>  Field one contains good data
>  Field two contains bad data.
>  So i have to mark field two as wrong.
>
> At the moment i validate the data in "onAfterSubmit", on error case i call
> Form.recordError(String).
>
> How can i make it on more elegance way?
>
> greetings
> resign
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T-5-2-6-recordError-on-FormAjaxLoop-tp5713991.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T.5.2.6 recordError on FormAjaxLoop

2012-06-20 Thread resign
hi,
is it possible to record an error to single field of FormAjaxLoop?
The requirement is:
 i want to make a form with several email fields.
 Field one contains good data
 Field two contains bad data.
 So i have to mark field two as wrong.

At the moment i validate the data in "onAfterSubmit", on error case i call
Form.recordError(String).

How can i make it on more elegance way?

greetings
resign

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T-5-2-6-recordError-on-FormAjaxLoop-tp5713991.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org