You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by eugenebalt <eu...@yahoo.com> on 2010/12/13 17:15:23 UTC
Invoke Validators manually, in arbitrary places (e.g. Ajax)
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 context: http://apache-wicket.1842946.n4.nabble.com/Invoke-Validators-manually-in-arbitrary-places-e-g-Ajax-tp3085646p3085646.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)
Posted by Zilvinas Vilutis <ci...@gmail.com>.
That was accurate :)
Thank you!
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cikasfm@gmail.com
On Mon, Dec 13, 2010 at 10:02 AM, Igor Vaynberg <ig...@gmail.com> wrote:
> formcomponent.validate()
>
> -igor
>
> On Mon, Dec 13, 2010 at 6:56 PM, Zilvinas Vilutis <ci...@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 form component at a time and
>> return the results to UI ( ajax )?
>>
>> Thank you!
>>
>> Žilvinas Vilutis
>>
>> Mobile: (+370) 652 38353
>> E-mail: cikasfm@gmail.com
>>
>>
>>
>> On Mon, Dec 13, 2010 at 9:36 AM, Igor Vaynberg <ig...@gmail.com> wrote:
>>> after you call it call form.haserrors() or form.isvalid() or something similar
>>>
>>> -igor
>>>
>>> On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt <eu...@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 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
>>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)
Posted by Igor Vaynberg <ig...@gmail.com>.
formcomponent.validate()
-igor
On Mon, Dec 13, 2010 at 6:56 PM, Zilvinas Vilutis <ci...@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 form component at a time and
> return the results to UI ( ajax )?
>
> Thank you!
>
> Žilvinas Vilutis
>
> Mobile: (+370) 652 38353
> E-mail: cikasfm@gmail.com
>
>
>
> On Mon, Dec 13, 2010 at 9:36 AM, Igor Vaynberg <ig...@gmail.com> wrote:
>> after you call it call form.haserrors() or form.isvalid() or something similar
>>
>> -igor
>>
>> On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt <eu...@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 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
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)
Posted by Zilvinas Vilutis <ci...@gmail.com>.
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) 652 38353
E-mail: cikasfm@gmail.com
On Mon, Dec 13, 2010 at 9:36 AM, Igor Vaynberg <ig...@gmail.com> wrote:
> after you call it call form.haserrors() or form.isvalid() or something similar
>
> -igor
>
> On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt <eu...@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 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
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)
Posted by Igor Vaynberg <ig...@gmail.com>.
after you call it call form.haserrors() or form.isvalid() or something similar
-igor
On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt <eu...@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 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
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)
Posted by eugenebalt <eu...@yahoo.com>.
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
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)
Posted by Igor Vaynberg <ig...@gmail.com>.
form.validate() i believe
-igor
On Mon, Dec 13, 2010 at 6:15 PM, eugenebalt <eu...@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 situation, I'd like to invoke a validator manually in the Ajax part of
> my code. Thanks
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invoke-Validators-manually-in-arbitrary-places-e-g-Ajax-tp3085646p3085646.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org