://www.wickettraining.com?by-user=t>
>
>
> ----------
> View message @
> http://apache-wicket.1842946.n4.nabble.com/MinimumValidator-and-Long-problem-tp2992468p2992859.html
> To unsubscribe from MinimumValidator and Long problem, click
>
On Tue, Oct 12, 2010 at 5:36 PM, Igor Vaynberg wrote:
> 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 classes, leading to not eno
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
wrote:
> On Tue, Oct 12, 2010 at 5:07 PM, Zeldor wrote:
>
>>
>> Changing it to :
>>
>> private TextField hire_worker_1 = new
>> TextField("hire_
On Tue, Oct 12, 2010 at 5:07 PM, Zeldor wrote:
>
> Changing it to :
>
> private TextField hire_worker_1 = new
> TextField("hire_worker_1",
> new Model());
> {
>hire_worker_1.setType(Long.class);
>}
>
> Does not change anything. And is it normal that Eclipse doe
> ...
> > add(hire_worker_1.add(new MinimumValidator(0))
> >.setType(Long.class));
> > ...
> > }
> >
> > @Override
> >public void onSubmit() {
> >long hiring_worker_1 =
> > hire_worker_1.getModelObject(
d onSubmit() {
>long hiring_worker_1 =
> hire_worker_1.getModelObject();
>...
> }
>};
>add(workForm);
>}
>
> Eclipse does like "new MinimumValidator(0)", so what's the solution
> for my prob
ong hiring_worker_1 = hire_worker_1.getModelObject();
...
}
};
add(workForm);
}
Eclipse does like "new MinimumValidator(0)", so what's the solution
for my problem?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/MinimumValidator-and-Long-problem-tp29924