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]
