I think you need to do this yourself, using the builtin AJAX facilities, rather than using any of the builtin validation facilities.

Say you were looking to make sure a username was unique on signup. Place an actionlink beside the field ("check availability"). The actionlink would need context (the username). The actionlink can update a zone containing the text field, and which also has some hidden divs containing the validation messages (just as a field with regular validation would be decorated). Display/hide the validation message div based on a flag set by the actionlink handler (which would obviously check the db for username uniqueness).

That would be my first try (there are some pieces in there which might not work the way I'm thinking) - you could also do it with a mixin (see the AutoComplete component).

HTH,

J


On 27-Mar-08, at 7:27 AM, Zheng, Xiahong wrote:

Anyone?

-----Original Message-----
From: Zheng, Xiahong
Sent: Wednesday, March 26, 2008 3:09 PM
To: 'Tapestry users'
Subject: [T5] Ajax validation

If this topic has been discussed, please point me to the right place. It seems that, by default, tapestry 5 only does client side validation when
you tab out of the input field. Server side validation happens on the
form submit only. How can I enable server side validation on a field by
field basis, i.e., via ajax onblur event?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to