> Couldn't you use a variable of type java.lang.Integer instead of an int? That > way, the default value for the property would be null, and not 0. That's exactly what I did. Sorry if I missed to make it clear. I used an Integer in my modified example, that defaults to <null> (ie. non-existant) in the corresponding SubscriptionForm and Subscription classes. I suspect that the problem is caused from BeanProperties.convert<Type>, that converts a null Integer to new Integer(0) behind the scenes. I have not finally understand when this method get's called (maybe somewhere from copyProperties?) -- Matthias (mailto:[EMAIL PROTECTED])
- Problem with optional form fields Matthias Kerkhoff
- Re: Problem with optional form fields Jean-Baptiste Nizet
- Re: Problem with optional form fields Matthias Kerkhoff
- Re: Problem with optional form fields Martin Cooper
- Re: Problem with optional form fields Jean-Baptiste Nizet
- Re[2]: Problem with optional form fields Matthias Kerkhoff
- Re[2]: Problem with optional form fields Matthias Kerkhoff
- Re: Problem with optional form fields Craig R. McClanahan
- Re: Problem with optional form fields Pierre Métras
- Re[2]: Problem with optional form fields Matthias Kerkhoff
- Re: Problem with optional form fields Craig R. McClanahan
- Re[2]: Problem with optional form fields Matthias Kerkhoff
- Re: Problem with optional form fields Craig R. McClanahan