You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by resign <se...@yahoo.de> on 2012/06/20 15:41:06 UTC
T.5.2.6 recordError on FormAjaxLoop
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T.5.2.6 recordError on FormAjaxLoop
Posted by Steve Eynon <st...@alienfactory.co.uk>.
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 <se...@yahoo.de> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org