myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <simon.kitch...@rhe.co.nz>
Subject Re: h:inputText - making blank the default for numbers instead of 0
Date Tue, 21 Nov 2006 22:21:32 GMT
Jon Steelman wrote:
> When an h:inputText field is value associated to an int/long in the 
> backing bean, what is the sensible way to make it default to blank on 
> the initial non-postback value instead of showing 0 by default?
I haven't done this myself, but expect you would attach a custom 
converter to your component:
  http://www-128.ibm.com/developerworks/java/library/j-jsf3/

Regards,

Simon

Mime
View raw message