I'm not sure. You will just have to try it and see.
Josh
-Original Message-
From: Anna Simbirtsev [mailto:asimbirt...@gmail.com]
Sent: Thursday, June 10, 2010 2:12 PM
To: users@wicket.apache.org
Subject: Re: NULL model on empty string?
This would not work for
form.add(new Text
-
> From: Anna Simbirtsev [mailto:asimbirt...@gmail.com]
> Sent: Thursday, June 10, 2010 1:49 PM
> To: users@wicket.apache.org
> Subject: NULL model on empty string?
>
> Hi,
>
> I use CompoundPropertyModel for all the fields on the page.
>
> form.add(new TextField("url"
Call setConvertEmptyInputStringToNull(false) on your TextField.
Josh
-Original Message-
From: Anna Simbirtsev [mailto:asimbirt...@gmail.com]
Sent: Thursday, June 10, 2010 1:49 PM
To: users@wicket.apache.org
Subject: NULL model on empty string?
Hi,
I use CompoundPropertyModel for all
Hi,
I use CompoundPropertyModel for all the fields on the page.
form.add(new TextField("url"));
If the value entered by user is empty, then the model get updated with null
value? How can I get getUrl() function to return "" instead of null.
Thanks