Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-14 Thread Zilvinas Vilutis
That was accurate :) Thank you! Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com On Mon, Dec 13, 2010 at 10:02 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: formcomponent.validate() -igor On Mon, Dec 13, 2010 at 6:56 PM, Zilvinas Vilutis cika...@gmail.com

Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread eugenebalt
Is there a way to invoke a Validator manually in an arbitrary place in the code, or do we have no control over when Wicket runs Validators (it always happens on the form submit)? In my situation, I'd like to invoke a validator manually in the Ajax part of my code. Thanks -- View this message in

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
form.validate() i believe -igor On Mon, Dec 13, 2010 at 6:15 PM, eugenebalt eugeneb...@yahoo.com wrote: Is there a way to invoke a Validator manually in an arbitrary place in the code, or do we have no control over when Wicket runs Validators (it always happens on the form submit)? In my

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread eugenebalt
Thanks Igor. That method is a void. Is it possible to get some kind of a boolean result from form.validate() to indicate success/failure? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invoke-Validators-manually-in-arbitrary-places-e-g-Ajax-tp3085646p3085680.html

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
after you call it call form.haserrors() or form.isvalid() or something similar -igor On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt eugeneb...@yahoo.com wrote: Thanks Igor. That method is a void. Is it possible to get some kind of a boolean result from form.validate() to indicate

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Zilvinas Vilutis
That's probably already popular topic, but I'll ask that question again ( please point me to the existing thread if you're aware of this question ) Is there any way to validate only one form component at a time and return the results to UI ( ajax )? Thank you! Žilvinas Vilutis Mobile:   (+370)

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
formcomponent.validate() -igor On Mon, Dec 13, 2010 at 6:56 PM, Zilvinas Vilutis cika...@gmail.com wrote: That's probably already popular topic, but I'll ask that question again ( please point me to the existing thread if you're aware of this question ) Is there any way to validate only one