Hi Russell

Exactly, its a bit intrusive... one option (although not ideal in some cases) 
is to use your own validate handler:

//My custom validator
void onValidateFromMyFormField(String value) throws ValidationException {
    if (value == null)          
        throw new ValidationException("Please provide a value for X.");
}

Which gets invoked on just before the submit, instead of blur. If you have the 
energy create some component wrappers / mixins to handle Validation, (and share 
please)... someday I plan to get around to that.

Cheers,
Peter

----- Original Message -----
From: "scott russell" <scottam...@hotmail.com>
To: users@tapestry.apache.org
Sent: Thursday, 22 January, 2009 02:44:21 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Disabling onBlur field validation








Hi all,

I have just started with Tapestry 5 (having previously used versions 3 and 4), 
and have found that while I like the new client-side validation bubbles, they 
are very distracting and annoying when they appear for every focus change 
between form fields. 

So my question is - does anyone know a way to turn them off for onBlur events 
only, but retain them for form submit events? It's quite unlikely customers 
will tolerate these error messages appearing every time they click between 
fields, but I would prefer to not turn off client-side validation completely, 
which looks like the only alternative at the moment.

cheers,
Scott Russell

_________________________________________________________________
Messenger's gift to you! Download free emoticons today!
http://livelife.ninemsn.com.au/article.aspx?id=669758 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to