commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-181) [beanutils] Default converter for LocaleConvertUtilsBean
Date Mon, 06 Nov 2006 06:01:41 GMT
     [ http://issues.apache.org/jira/browse/BEANUTILS-181?page=all ]

Niall Pemberton updated BEANUTILS-181:
--------------------------------------

    Bugzilla Id:   (was: 30941)
    Component/s: Locale BeanUtils / Converters

> [beanutils] Default converter for LocaleConvertUtilsBean
> --------------------------------------------------------
>
>                 Key: BEANUTILS-181
>                 URL: http://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
>         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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message