Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 10866 invoked from network); 7 Apr 2007 08:14:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Apr 2007 08:14:12 -0000 Received: (qmail 76472 invoked by uid 500); 7 Apr 2007 08:14:15 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 75665 invoked by uid 500); 7 Apr 2007 08:14:11 -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 75654 invoked by uid 99); 7 Apr 2007 08:14:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Apr 2007 01:14:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Apr 2007 01:14:04 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Ha63L-0003zO-LO for commons-user@jakarta.apache.org; Sat, 07 Apr 2007 01:13:43 -0700 Message-ID: <9882201.post@talk.nabble.com> Date: Sat, 7 Apr 2007 01:13:43 -0700 (PDT) From: Mohsen Saboorian To: commons-user@jakarta.apache.org Subject: [beanutils] On Converters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mohsens@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've noticed that ConvertUtilsBean.register only accepts destination class for conversion. Are all source values regarded as Strings, and then converted to the destination class? Why is it so? line #1007 of BeanUtilsBean.java: newValue = getConvertUtils().convert(value.toString(), type); Suppose the case that I have a java.sql.Timestamp and want to convert it to java.utils.Date. It first converts Timestamp to String and then I have to parse it again in my custom converter (registered for java.util.Date) .... Parsing a Date string is a rather timely process. I'm using beanutils 1.7. Thanks. -- View this message in context: http://www.nabble.com/-beanutils--On-Converters-tf3540137.html#a9882201 Sent from the Commons - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org