use Integer if you want support for nulls

-igor

On Thu, Jun 18, 2009 at 7:48 AM, Bas Vroling<[email protected]> wrote:
> It is an unitialized int (private int residueNumber;)
>
> On 18 Jun, at 16:46, Per Lundholm wrote:
>
>> What is the initial value of "residueNumber"?
>>
>> /Per
>>
>> On Thu, Jun 18, 2009 at 3:35 PM, Bas Vroling<[email protected]> wrote:
>>>
>>> I have a form with a textfield bound to an object containing interger
>>> values:
>>>
>>> TextField<Integer> residueNumber = new TextField<Integer>(
>>>                               "residueNumber", new
>>> PropertyModel<Integer>(pso,
>>>                                               "residueNumber"));
>>>
>>> when this field is rendered it shows "0" as the 'empty' value, whereas
>>> string members are rendered real empty. It look strange this way, is
>>> there a
>>> way to display an empty field for an int?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to