That does the trick. The null Long gives me a blank.

Thanks,
Jon

On 11/21/06, Nebinger, David <[EMAIL PROTECTED] > wrote:

 Have you tried using an Integer object in the backing bean rather than an
int?  I'd guess that a null Integer would be blank, where an int defaults to
0 upon creation...

-----Original Message-----
*From:* Jon Steelman [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, November 21, 2006 5:19 PM
*To:* [email protected]
*Subject:* h:inputText - making blank the default for numbers instead of 0

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?
Thanks,
Jon


Reply via email to