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
---
-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
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
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