I'd really like it if the set(String name, Object value) method on the WrapDynaBean would convert Strings to primitive types automatically. Without this conversion its possible to get a strange exception saying that a "write property does not exist", when really the issue is that a String was passed into a numeric/boolean property by accident.
Now I could implement this behaviour by implementing a derivation of WrapDynaBean, say called ConvertingWrapDynaBean (bit of a mouthful). Though I'd far more prefer the default behaviour of WrapDynaBean to be able to do primitive type conversions. Afterall the great strength of using dyna beans is they can be used generically and work nicely in servlet / XML style environments where things are mostly text. Its a fairly trivial change; rather than calling PropertyUtils.setSimpleProperty(bean, propertyName, value) we can call the (now public) BeanUtils.setProperty(bean, propertyName, value) which does type conversions. I've already got a patch for this which I'll commit if folks agree. Does this sound reasonable? James _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
