You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Nick Westgate <ni...@key-planning.co.jp> on 2007/05/24 06:43:26 UTC

Re: T5: New Validators and server side validation

+1 for this.

I thought you'd missed it, and was going to bring it up on the dev list.
But a week later ... GMail "star" to the rescue? ;-)

Any thoughts from others on this?

Cheers,
Nick.


Howard Lewis Ship wrote:
> I agree:
> - onblur vs. onform submit
> - option to validate via server-round trip (especially for onblur)
> 
> On 5/17/07, kranga <kr...@k2d2.org> wrote:
>>
>> We just introduced client side validation for Tapestry fields using an ajax
>> call back to the server side (with Tapestry 3). So you only write Java code
>> for the validation and the same code gets called from the client side. All
>> parameters for controlling your validation are automatically sent back as
>> part of the ajax call and you can define when the check is triggered (e.g.
>> onBlur) and which one of the "error marker" components tied to the input
>> field will show the errors. Makes the code very clean and the front-end
>> experience is slick (e.g. registration page has the same validator to check
>> if username is taken and this is fired from the client and from the
>> server!). I'd suggest T5 move to such a design.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org