Hi Keith, Hmm... I tried removing the mapping for java.util.Locale like you said and I'm still getting the same "null" even though I see the locales being written out.
Is there a test class you can send me? Thanks, - Tim -----Original Message----- From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 3:16 PM To: [EMAIL PROTECTED] Subject: Re: [castor-user] XML: Un/Marshalling java.util.Locale objects Tim, Locale support is now built in. Just remove your class mapping for Locale and it should work properly. --Keith Tim Mulle' wrote: > Hi Keith, > > I just got the latest CVS version and I still am getting "null" when > trying to read back my locale array. It marshals them just fine. Do > you see anything wrong with my mapping? > > > .. SNIPPET ... > <!-- map the locales array --> > <field name="locales" type="locale" collection="array"> > <bind-xml name="locale" location="locales"/> </field> > > <!-- Class definition for java.util.Locale --> <class > name="java.util.Locale" verify-constructable="false"> > <field name="language" set-method="%1" get-method="getLanguage" > type="string"> > <bind-xml node="attribute"/> > </field> > <field name="country" set-method="%2" get-method="getCountry" > type="string"> > <bind-xml node="attribute"/> > </field> > </class> > .. END SNIPPET ... > > > > > XML Output: > > <?xml version="1.0" encoding="UTF-8"?> <cas-admin> > <locales> > <locale language="en" country="US"/> > <locale language="fr" country="FR"/> > </locales> > </cas-admin> > > Thanks, > - Tim > > > > > > > -----Original Message----- > From: Tim Mulle' [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 04, 2004 6:10 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-user] XML: Un/Marshalling java.util.Locale > objects > > > Cool! Thanks..I'll check it out and see how it works > > -----Original Message----- > From: Keith Visco [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 04, 2004 5:59 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-user] XML: Un/Marshalling java.util.Locale > objects > > > Tim Mulle' wrote: > >>Not to bug you, just wondering if this was fixed.. > > > > Hi Tim, I just checked in the fix to the CVS. > > --Keith > > > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
