Skip to Content
0
Former Member
Oct 10, 2005 at 11:31 PM

Integer value for form input

203 Views

I hope this is a simple question. I have a java bean that I have created a WD model from and one of the attributes is of type "integer." I would like to use this value in the form, but whenever I bind the object to a fresh java bean it puts a '0' in the form because that is the 'null' value for an integer. Is there a simple way to make the web dynpro not populate 0 in the integer bound field? If I remove the 0 and try to submit the form blank, it gives an exception saying "Value contains non-numeric characters."

Ideas appreciated.

Thanks,

Dustin

P.S. I'd like not to create a "string" representation of the integer if at all possible because I do not want to change the bean...