RE: Setting null on Integer property via BeanUtils.setProperty

2009-12-09 Thread Syed Muhammad Humayun
t: Re: Setting null on Integer property via BeanUtils.setProperty On Wed, Dec 9, 2009 at 11:22 AM, Syed Muhammad Humayun wrote: > Niall, > > Thanx for the help. I did following as a work around: > > PropertyUtils.getWriteMethod(PropertyUtils.getPropertyDescriptor(this, > property

RE: Setting null on Integer property via BeanUtils.setProperty

2009-12-09 Thread Syed Muhammad Humayun
--- -Original Message- From: Niall Pemberton [mailto:niall.pember...@gmail.com] Sent: Wednesday, December 09, 2009 4:18 PM To: Commons Users List Subject: Re: Setting null on Integer property via BeanUtils.setProperty On Wed, Dec 9, 2009 at 10:06 AM, Syed Muhammad Humayun wrote: > Hi, > > How ca

Setting null on Integer property via BeanUtils.setProperty

2009-12-09 Thread Syed Muhammad Humayun
Hi, How can I set a 'null' on Integer property (or any other wrappers like Double, Long, Character etc) via BeanUtils.setProperty? If its not possible this way than is there any other way using apache commons ? Regards, --- S M Humayun Software Archite

Unknown property 'property1'?

2009-11-12 Thread Syed Muhammad Humayun
Hi, I defined a bean: public class MyBean { private String property1; public String getProperty1 () { return this.property1; } public void setProperty1 (String property1) { this.property1 = property1; } } And, when I call following on 'MyBean'; ... MyBean mybean = new My