Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 81698 invoked from network); 12 Jan 2007 05:01:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 05:01:55 -0000 Received: (qmail 93334 invoked by uid 500); 12 Jan 2007 05:01:57 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 93294 invoked by uid 500); 12 Jan 2007 05:01:56 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 93283 invoked by uid 99); 12 Jan 2007 05:01:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 21:01:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [63.146.169.141] (HELO svsmtp2.on24.com) (63.146.169.141) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 21:01:45 -0800 Received: from HQEXCH01.on24.com (exchange01.on24.com [172.18.0.77]) by svsmtp2.on24.com (Postfix) with SMTP id 0C06554E74 for ; Thu, 11 Jan 2007 21:01:25 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: How to control conversion of primitives->String in BeanUtils.describe() ?? Date: Thu, 11 Jan 2007 21:01:24 -0800 Message-ID: <56C855C3509EDE49BADFEE0CD61FAA03022D8239@HQEXCH01.on24.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to control conversion of primitives->String in BeanUtils.describe() ?? thread-index: Acc2BrVlvADtGphXR3y7nQ48KIIy6A== From: "Timothy Bessie" To: X-Virus-Checked: Checked by ClamAV on apache.org Does anyone out there know how to control the conversion of primitives to Strings in calls made to BeanUtils.describe()? I have registered converters to the String class, as follows: ConvertUtils.register(toStringConverter, String.class); LocaleConvertUtils.register(toStringConverter, String.class, Locale.US); LocaleConvertUtils.register(toStringConverter, String.class, Locale.ENGLISH); but they don't seem to ever get called. Conversion to other classes gets called (for example, I've registered a converter to the Date class, which does get called). Am I missing something here? I have read through the documentation, looked at the source, done a ton of Googling and looking in the mailing list archives, and I can't find anything to help me with this. Is there, then, no way to control the conversion of primitives to Strings, or am I going about it the wrong way? - Tim Bessie --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org