commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomáš Procházka <t.procha...@centrum.cz>
Subject [BeanUtils] default value for BigDecimalConverter
Date Sun, 02 Sep 2007 19:07:15 GMT
Hi.

I have question related ConvertUtilsBeans class.

Why all Converters has defined default value, only BigDecimalConverter and BigIntegerConverter
not?  When I need populate any bean with BigDecimal it's fail on this if value is "". For
example forms in Strus framework. When I have Integer field and user send empty string BeanBindings
convert it to 0, but when I jave BigDecimal field get only:

org.apache.commons.beanutils.ConversionException


-- 
Tomas Prochazka


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


Mime
View raw message