The question is: do you really need this client side validation ?
If YES then override getAjaxCallDecorator of the
AjaxFormComponentUpdatingBehavior and do something like:
onDecorateScript(String script) {
return "if (parseInt(this.value) !== NaN) { " + script + " }";
}
On Thu, Aug 18, 2011 at 12:00 PM, rebecca <[email protected]> wrote:
> Hi Martin,
>
> I checked the plug-in js file and did not find use of the functions you
> mentioned.
> Anyways, even with my poor JS knowledge i understood that there is a clash
> with the plug-in.
>
> Can you recommend of another package that i can use for client side numeric
> restriction on text field.
> Is there a wicket way to do it?
>
> Thanks a lot
> Rebecca
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/onchane-not-working-with-jquery-numeric-plugin-tp3751788p3752095.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]