Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 67554 invoked from network); 27 Apr 2006 16:54:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2006 16:54:43 -0000 Received: (qmail 62063 invoked by uid 500); 27 Apr 2006 16:54:29 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 62017 invoked by uid 500); 27 Apr 2006 16:54:29 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 62006 invoked by uid 99); 27 Apr 2006 16:54:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 09:54:29 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mwessendorf@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO uproxy.gmail.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 09:54:26 -0700 Received: by uproxy.gmail.com with SMTP id j3so1525650ugf for ; Thu, 27 Apr 2006 09:54:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e+SEF9JrH5blobAScri0H/Ue7gbC6IJJ87VOusLXurUg//MrF7JZ5tqOv4/XGe3LqOy/lPTPV1rmFnkynKt9Hx+2ie/oqFSaI0SdlgS1j3QnF5lB3m4PhwEOloRn3J88BGDIFMGMai3Ue/Yc3CR1M6Ci8VNybU9DCNem2n/NuWo= Received: by 10.78.31.18 with SMTP id e18mr404459hue; Thu, 27 Apr 2006 09:54:05 -0700 (PDT) Received: by 10.78.43.13 with HTTP; Thu, 27 Apr 2006 09:54:05 -0700 (PDT) Message-ID: <71235db40604270954y58537283j428e69e38bc48270@mail.gmail.com> Date: Thu, 27 Apr 2006 18:54:05 +0200 From: "Matthias Wessendorf" Sender: mwessendorf@gmail.com To: "MyFaces Discussion" Subject: Re: General Converter Question In-Reply-To: <8f985b960604270940o7876abacmeebeb7f4c2bd052f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8f985b960604270940o7876abacmeebeb7f4c2bd052f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Frank- perhaps [1] is useful to you -Matthias [1] http://myfaces.apache.org/sandbox/apidocs/org/apache/myfaces/custom/con= vertboolean/BooleanConverter.html On 4/27/06, Mike Kienenberger wrote: > Yes, this should work. I have the same issue, but I generally deal > with it by converting the String type to a boolean type at the > database layer level. > > But there's no reason you can't create a converter. You'll need to > manually assign it each place it is used, but that's probably what you > want to do anyway in this case. > > > On 4/27/06, Frank Russo wrote: > > > > Is it possible to bind a h:selectBooleanCheckbox component to a String > > field? The string field is coming out of the db as a Y or N value. This= is > > existing code used in a lot of places, and I can't change it. It should= have > > been stored in the object as a boolean or Boolean, but I can't change t= hat > > now. > > > > Any ideas on how to do this? I've read about using converter's, but the= y > > don't seem to apply here, unless I have to write my own. I'd rather use= a > > standard one if I can. > > > > Thanks... > > > > > > > > Frank Russo > > Senior Developer > > FX Alliance, LLC > > 900 Third Avenue, 3rd Floor > > New York, NY 10022 > > 646.268.9949 > > > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com