Re: Validating a Number using a Validator

2011-02-23 Thread Fabrice BUQUET
> you for the time, will look at the NumberValidator.MinimumValidator > implementation. > > Cheers > Niv > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Validating-a-Number-using-a-Validator-tp3320671p3320691.html > Sent

Re: Validating a Number using a Validator

2011-02-23 Thread nivs
: http://apache-wicket.1842946.n4.nabble.com/Validating-a-Number-using-a-Validator-tp3320671p3320691.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Validating a Number using a Validator

2011-02-23 Thread Martin Grigorov
See org.apache.wicket.validation.validator.NumberValidator.MinimumValidator for example. In your custom validator's onValidate() you need to check that validatable.getValue() is an instance of Number. On Wed, Feb 23, 2011 at 10:34 AM, Nivedan Nadaraj wrote: > Hi All, > > Basic question but have n

Validating a Number using a Validator

2011-02-23 Thread Nivedan Nadaraj
Hi All, Basic question but have not got an answer to it. I want to validate a field to accept only numbers and provide a validation message. Is there a NumericValidator I checked NumberValidator but don't see how I can use it..it says its deprecated. TextField yearOfExpiry = new TextField("yearEx