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 21238] New: - ConvertUtilsBean should use defaultValue for all converters
Date Tue, 01 Jul 2003 17:36:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21238>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21238

ConvertUtilsBean should use defaultValue for all converters

           Summary: ConvertUtilsBean should use defaultValue for all
                    converters
           Product: Commons
           Version: 1.0 Alpha
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: Gin.Chen@NielsenMedia.com


Consider a java.sql.Timestamp that is nullable in the database.
An EJB would return it as null whereas a DynaForm might convert that into a 
String null. To save that back to the EJB as a null String using 
BeanUtils.copyProperties will end up calling ConvertUtilsBean which gets a 
SQLTimestampConverter using the default constructor (no default value).
This will cause a ConversionException "No value specified" and, therefore, not 
allow null values to be saved back to the EJB.

This will effect all converters that do not use a defaultValue.

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