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 TextField<Long> hire_worker_1 = new
>> TextField<Long>("hire_worker_1",
>> new Model<Long>());
>>             {
>>            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 { }?
>>
>
> Seems like you have a syntax error.... perhaps a problem with an anonymous
> inner class.  You can use Pastebin to paste entire file and we can attempt
> to help.
>
>
>> BTW, is there any easy way to convert nulls to 0 when you submit empty
>> TextFields?
>>
>
> Create an IConverter and override getConverter
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to