Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 94598 invoked from network); 4 Apr 2003 16:14:41 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Apr 2003 16:14:41 -0000 Received: (qmail 29153 invoked by uid 97); 4 Apr 2003 16:16:33 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 29146 invoked from network); 4 Apr 2003 16:16:33 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 4 Apr 2003 16:16:33 -0000 Received: (qmail 92119 invoked by uid 500); 4 Apr 2003 16:13:58 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 92096 invoked from network); 4 Apr 2003 16:13:57 -0000 Received: from smtp014.mail.yahoo.com (216.136.173.58) by daedalus.apache.org with SMTP; 4 Apr 2003 16:13:57 -0000 Received: from mail.touchdownconsultants.com (HELO yahoo.co.uk) (james?strachan@213.121.165.114 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Apr 2003 16:13:59 -0000 Date: Fri, 4 Apr 2003 17:13:48 +0100 Subject: Re: [beanutils] default converters for File and URL? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: To: "Jakarta Commons Developers List" From: James Strachan In-Reply-To: Message-Id: <6B388834-66B8-11D7-AEB2-000A959D0312@yahoo.co.uk> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Friday, April 4, 2003, at 04:57 PM, Henri Yandell wrote: > > On Fri, 4 Apr 2003, James Strachan wrote: > >> On Friday, April 4, 2003, at 04:04 PM, Joe Germuska wrote: >> >>> But what if I'm using some library that has its own conversion needs, >>> for example, in reading in an XML configuration file? I guess most >>> conversions are pretty universal, volatile, but I can easily imagine >>> conflicting Converters for java.util.Date, for example. > > Looking at Converters, why is there no UtilDateConverter? Or just > DateConverter? > > Also, why does said converter not take a DateFormat in some way to > allow > instance users to be able to allow that to be configurable? > > Possibly the Converter API needs an additional argument-list option? > > So I can say: > > converterBean.convert(java.util.Date.class, "02/02/02", "YY/DD/MM") While we're at it, it could be useful to add a Locale to a ConverterUtilsBean so that converters can be locale-specific. James ------- http://radio.weblogs.com/0112098/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org