[ https://issues.apache.org/jira/browse/BEANUTILS-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton updated BEANUTILS-181: -------------------------------------- Fix Version/s: (was: 1.8.0) LATER THAN 1.8.0 > [beanutils] Default converter for LocaleConvertUtilsBean > -------------------------------------------------------- > > Key: BEANUTILS-181 > URL: https://issues.apache.org/jira/browse/BEANUTILS-181 > Project: Commons BeanUtils > Issue Type: Improvement > Components: Locale BeanUtils / Converters > Affects Versions: 1.6.1 > Environment: Operating System: other > Platform: Other > Reporter: Tulbiak > Priority: Minor > Fix For: LATER THAN 1.8.0 > > Attachments: BeanUtilsBean.java, LocaleBeanUtilsBean.java, > LocaleConvertUtilsBean.java > > > When using the LocaleBeanUtils instead of BeanUtils, i got this exception (my > form has a radio button and a checkbox): > org.apache.commons.beanutils.ConversionException: Cannot assign value of type > 'java.lang.String' to property 'fixedEndDate' of type 'java.lang.Boolean' > at > org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:423) > at org.apache.commons.beanutils.PropertyUtilsBean. > setSimpleProperty(PropertyUtilsBean.java:1733) > at org.apache.commons.beanutils.PropertyUtilsBean. > setNestedProperty(PropertyUtilsBean.java:1648) > at org.apache.commons.beanutils.PropertyUtilsBean. > setProperty(PropertyUtilsBean.java:1677) > at org.apache.commons.beanutils.locale.LocaleBeanUtilsBean. > invokeSetter(LocaleBeanUtilsBean.java:826) > at org.apache.commons.beanutils.locale.LocaleBeanUtilsBean. > setProperty(LocaleBeanUtilsBean.java:631) > at org.apache.commons.beanutils.locale.LocaleBeanUtilsBean. > setProperty(LocaleBeanUtilsBean.java:565) > at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean. > java:811) > After some investigations, it seems there is no registration in > LocaleConvertUtilsBean for Boolean (and may be others) and i can't manualy > register the BooleanConverter (not a LocaleConverter). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]