Re: MinimumValidator and Long problem

2010-10-12 Thread Jeremy Thomerson
Since your model doesn't actually know what type of field it is operating on (like PropertyModel does), you need to call setType(Long.class) on your text field. On Tue, Oct 12, 2010 at 1:23 PM, Zeldor pgronkiew...@gmail.com wrote: I have TextField that should take Long value, but on submit it

Re: MinimumValidator and Long problem

2010-10-12 Thread Zeldor
Changing it to : private TextFieldLong hire_worker_1 = new TextFieldLong(hire_worker_1, new ModelLong()); { hire_worker_1.setType(Long.class); } Does not change anything. And is it normal that Eclipse does not let me add anything without enclosing in { }?

Re: MinimumValidator and Long problem

2010-10-12 Thread Jeremy Thomerson
On Tue, Oct 12, 2010 at 5:07 PM, Zeldor pgronkiew...@gmail.com wrote: Changing it to : private TextFieldLong hire_worker_1 = new TextFieldLong(hire_worker_1, new ModelLong()); { hire_worker_1.setType(Long.class); } Does not change anything. And is it

Re: MinimumValidator and Long problem

2010-10-12 Thread Igor Vaynberg
its not a syntax problem. you cant have code outside a method unless its in a static {} block. -igor On Tue, Oct 12, 2010 at 3:25 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Oct 12, 2010 at 5:07 PM, Zeldor pgronkiew...@gmail.com wrote: Changing it to : private

Re: MinimumValidator and Long problem

2010-10-12 Thread Jeremy Thomerson
On Tue, Oct 12, 2010 at 5:36 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: its not a syntax problem. you cant have code outside a method unless its in a static {} block. To me, putting code outside a method *is* a syntax problem, typically caused by inexperience with anonymous inner

Re: MinimumValidator and Long problem

2010-10-12 Thread Zeldor
I have nothing else really, just same more of same stuff, only a Form with Labels, TextFields and submit method. Anyway, deprecated NumberValidator.minimum(0) method works without any problems, are there any disadvantages of using that? On Wed, Oct 13, 2010 at 12:43 AM,