This would not work for
form.add(new TextField<Integer>("guid", Integer.class)) ?It works if type is String. On Thu, Jun 10, 2010 at 3:03 PM, Josh Chappelle <[email protected]>wrote: > Call setConvertEmptyInputStringToNull(false) on your TextField. > > Josh > > -----Original Message----- > From: Anna Simbirtsev [mailto:[email protected]] > Sent: Thursday, June 10, 2010 1:49 PM > To: [email protected] > Subject: NULL model on empty string? > > Hi, > > I use CompoundPropertyModel for all the fields on the page. > > form.add(new TextField<String>("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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Anna Simbirtsev (416) 729-7331
