+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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to