commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: [BeanUtils] Setting useDefault in Converters
Date Mon, 31 Oct 2005 16:32:09 GMT
Register a converter with a default value:

  BigDecimal defaultValue = new BigDecimal("0.00");
  Converter myConverter = new BigDecimalConverter(defaultValue);
  ConvertUtilsBean.register(myConverter, BigDecimal.class);

Niall

----- Original Message ----- 
From: "Julián García" <jgarcia@unionsoluciones.com.co>
Sent: Monday, October 31, 2005 4:01 PM


> Hi,
>
> How can I set useDefault for some of my converters used in my
> BeanUtil.copyProperties method? for instance, for BigDecimalConverter?
>
> Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message