commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30941] New: - Default converter for LocaleConvertUtilsBean
Date Mon, 30 Aug 2004 14:18:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30941>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30941

Default converter for LocaleConvertUtilsBean

           Summary: Default converter for LocaleConvertUtilsBean
           Product: Commons
           Version: 1.0 Alpha
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: tulbiak@wanadoo.fr


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).

---------------------------------------------------------------------
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