Hey Robert, So does that mean that the bean reader will set the dates correctly? I am so excited to get this news. Which night build I should try? Let me know.
And could you send me some example as what I need to change so that it will be easy for me. Thanks and Regards, Ujjwala -----Original Message----- From: robert burrell donkin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:50 PM To: Jakarta Commons Users List Subject: Re: Set date issue hi i had a good think about what you said, about the need to retain backwards compatibility and also the needs for advanced users to register custom converters with ConvertUtils, the good news is that i think that i've come up with a way to satisfy everyone :) i haven't had time to fully document the changes i've made (and i have some more related features that i hope to add very soon). but if you'd like to check out and build CVS HEAD (or wait for a new nightly) java.util. Dates should map to their toString() format and back again with the default configuration. (for anyone interested in betwixt development, i've added a pluggable strategy interface whose default implementation delegates to ConvertUtils except for java.util.Date subclasses which are not in java.sql.) - robert On Tuesday, July 29, 2003, at 10:47 PM, Ujjwala Kulkarni wrote: > Hi , > Thanks for replying. > I have a very basic question. All I am doing is to use the betwixt API to > convert and the betwixt is using the ConvertUtils internally . Now how > does that make sense for me to register the date class with the convert > utils. > > The bean writer writes the dates in the standard format that is > date.toString() format. Then should't the bean reader try to create the > date assuming that the format is default because it is created by the > writer. > > I am confused as why I need to register the java.util.Date class and why > the betwixt internally take care of it? > > Let me know, > Thanks > Ujjwala > > -----Original Message----- > From: robert burrell donkin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 2:41 PM > To: Jakarta Commons Users List > Subject: Re: Set date issue > > On Monday, July 28, 2003, at 11:29 PM, Ujjwala Kulkarni wrote: > >> Hi , >> >> Thanks for replying. Let me try that for Date. > > i'm pretty sure that this works with CVS HEAD (i've added some unit tests > to make sure). > >> I also observed that betwixt can not convert the 'int' as the object >> passed to the method is Integer instead of int. I do not see any error >> but the values set in the bean are 0's which are default values . >> >> I supplied a bean to betwixt and converted it to XML. Then used the >> betwixt to read the XML to convert it to bean. I do not see the bean's >> 'int' attributes populated as I supplied in the first place. > > this sounds a little mysterious. there are quite a few tests that use > beans that have int attributes. does the property take an int or an > Integer? > > if you could supply an example that i could use to replicate the problem > in a test case then i'd be glad to take a look. > > - robert > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
