Hi,
I'm creating a text field to host an integer, namely the year that a house was
built:
TextField yearBuilt = new TextField( "yearBuilt"
).setRequired( true );
And I'm using a CompoundPropertyModel that maps "yearBuilt" to an underlying
bean property. My problem is that the default value for
Steven Haines schrieb:
Hi,
I'm creating a text field to host an integer, namely the year that a house was
built:
TextField yearBuilt = new TextField( "yearBuilt"
).setRequired( true );
And I'm using a CompoundPropertyModel that maps "yearBuilt" to an underlying bean property. My problem is th
Change your property to Integer and not int? That way, it can be null
(which would show up as empty on the text field).
On Mon, Mar 22, 2010 at 11:09 AM, Steven Haines wrote:
> Hi,
>
> I'm creating a text field to host an integer, namely the year that a house
> was built:
> TextField yearBuilt
And add RangeValidator.
//Swanthe
On 2010-03-22 17:00, James Carman wrote:
Change your property to Integer and not int? That way, it can be null
(which would show up as empty on the text field).
On Mon, Mar 22, 2010 at 11:09 AM, Steven Haines wrote:
Hi,
I'm creating a text field to hos