RE: NULL model on empty string?

2010-06-10 Thread Josh Chappelle
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

Re: NULL model on empty string?

2010-06-10 Thread Anna Simbirtsev
- > 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"

RE: NULL model on empty string?

2010-06-10 Thread Josh Chappelle
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

NULL model on empty string?

2010-06-10 Thread Anna Simbirtsev
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