Re: Wanted: example of AJAX in a client-side validator

2010-06-24 Thread Geoff Callender
I've knocked up a solution, a reusable mixin called AjaxValidate. It's loosely based on Inge's ZoneUpdater and OnEvent (many thanks, Inge). Please post suggestions on how to improve it! Example of usage: ...and in your page or component: Object onAjaxValidateFromFirstName() {

Re: Wanted: example of AJAX in a client-side validator

2010-06-24 Thread Geoff Callender
That's a shame. See what you think of the solution I will post shortly. Similar, or a different tack? On 24/06/2010, at 3:08 AM, Howard Lewis Ship wrote: > I have some examples of fields that check that a user name or email > address is unique, but its too tied into the rest of my apps code to >

Re: Wanted: example of AJAX in a client-side validator

2010-06-23 Thread Howard Lewis Ship
I have some examples of fields that check that a user name or email address is unique, but its too tied into the rest of my apps code to break out easily. On Thu, Jun 17, 2010 at 6:20 PM, Geoff Callender wrote: > Hi all, > > I'd like to add an example or two to JumpStart of AJAX in a client-side

Re: Wanted: example of AJAX in a client-side validator

2010-06-23 Thread Geoff Callender
Maybe it would be simpler to use a mixin, one that calls back to showValidationMessage()? Yes, please post it. On 23/06/2010, at 3:49 AM, Katia Aresti Gonzalez wrote: > I have an example with a mixin ... it's in not very very simple, but i can > simplify the mixin for your example... ^_^ > > >

Re: Wanted: example of AJAX in a client-side validator

2010-06-22 Thread Katia Aresti Gonzalez
I have an example with a mixin ... it's in not very very simple, but i can simplify the mixin for your example... ^_^ 2010/6/20 Geoff Callender > Surely someone has an example of this? > > On 18/06/2010, at 12:51 PM, Geoff Callender wrote: > > > Thanks, Thiago, but it lacks AJAX. I'd like the v

Re: Wanted: example of AJAX in a client-side validator

2010-06-19 Thread Geoff Callender
Surely someone has an example of this? On 18/06/2010, at 12:51 PM, Geoff Callender wrote: > Thanks, Thiago, but it lacks AJAX. I'd like the validator to behave like any > other client-side validator except that it asks the server to help, eg. to > validate that a name has not already been used.

Re: Wanted: example of AJAX in a client-side validator

2010-06-17 Thread Thiago H. de Paula Figueiredo
On Thu, 17 Jun 2010 23:51:40 -0300, Geoff Callender wrote: Thanks, Thiago, but it lacks AJAX. I'd like the validator to behave like any other client-side validator except that it asks the server to help, eg. to validate that a name has not already been used. Yep, I just noticed you wante

Re: Wanted: example of AJAX in a client-side validator

2010-06-17 Thread Geoff Callender
Thanks, Thiago, but it lacks AJAX. I'd like the validator to behave like any other client-side validator except that it asks the server to help, eg. to validate that a name has not already been used. Geoff On 18/06/2010, at 12:24 PM, Thiago H. de Paula Figueiredo wrote: > On Thu, 17 Jun 2010 2

Re: Wanted: example of AJAX in a client-side validator

2010-06-17 Thread Thiago H. de Paula Figueiredo
On Thu, 17 Jun 2010 22:20:45 -0300, Geoff Callender wrote: Hi all, Hi! This is an example of a RGB string validator that I created for my Tapestry courses (basic and advanced): public class RGBValidator extends AbstractValidator { final private static Pattern PATTERN =

Wanted: example of AJAX in a client-side validator

2010-06-17 Thread Geoff Callender
Hi all, I'd like to add an example or two to JumpStart of AJAX in a client-side validator but I don't have any handy. If you have a simple example of this that you'd like to throw into the mix then please post it here or, if you prefer, mail it to me directly. I figure there may be more than on