You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/30 16:18:10 UTC

DO NOT REPLY [Bug 30941] New: - Default converter for LocaleConvertUtilsBean

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