On 3 Feb 2004, at 13:47, Shapira, Yoav wrote:


Howdy,


i'm really busy at the moment (with betwixt) but one thing i'd really
like to see before any new release is the addition of an i18nable
populate method. it's not such a big job and i will get round to it
(but it might be a while) so it'd be great if someone stepped up to
take this on. post a reply and i'll supply more details.

OK. That seems interesting and I've actually been itching to do some i18n work for a change (I haven't in a long time).

great :)


I see that there's
already an org.apache.commons.beanutils.locale.LocaleBeanUtilsBean class
extending the base BeanUtilsBean. Is this
old/unimplemented/unsupported/something else?

it's crufty and lacking in unit tests but the main issue is that it's lacks an implementation of the crucial populate method.


there are some discussion here http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24941 - this is crucial feature of users of struts who need i18n support.

i've applied bits of the original patch but i think that the later suggestions are better, with LocaleBeanUtilsBean.populate(Object bean, Map properties, Locale locale) seeming more natural to me. the localizable version needs to act like the standard version (which maps properties on the bean) but should use the localized converters.

if you've any questions, please fire away.

- robert


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to