RE: NULL model on empty string?
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 TextField("guid", Integer.class)) ? It works if type is String. On Thu, Jun 10, 2010 at 3:03 PM, Josh Chappelle wrote: > 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 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 > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NULL model on empty string?
This would not work for form.add(new TextField("guid", Integer.class)) ? It works if type is String. On Thu, Jun 10, 2010 at 3:03 PM, Josh Chappelle wrote: > 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 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 > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anna Simbirtsev (416) 729-7331
RE: NULL model on empty string?
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 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
NULL model on empty string?
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