Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 64463 invoked from network); 14 Sep 2006 18:56:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 18:56:56 -0000 Received: (qmail 47526 invoked by uid 500); 14 Sep 2006 18:56:51 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 47485 invoked by uid 500); 14 Sep 2006 18:56:51 -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 47474 invoked by uid 99); 14 Sep 2006 18:56:51 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 11:56:51 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=bierbrauen@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=bierbrauen@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.166.183 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([64.233.166.183:4048] helo=py-out-1112.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 25/90-06827-755A9054 for ; Thu, 14 Sep 2006 11:55:30 -0700 Received: by py-out-1112.google.com with SMTP id i75so3425919pye for ; Thu, 14 Sep 2006 11:54:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gO2sZR379S6G4nOZoygCuB5aT4t5Qvxqa5VdOVWuj64Dy88a8k8ElsbqiQ4M4XJUrL2ItzUyj5kmFhIXItJ+/0Cuj5atJ8Jxo9l1EziosX3eYDgGXz5k4krkCehKTUr717Dt3KoDaF3HihePtvqB99npqN1RMRmY+uvr3LHtM+w= Received: by 10.35.78.13 with SMTP id f13mr15981374pyl; Thu, 14 Sep 2006 09:38:49 -0700 (PDT) Received: by 10.35.39.11 with HTTP; Thu, 14 Sep 2006 09:38:49 -0700 (PDT) Message-ID: <311295120609140938y1958311fv9e79151a52101f30@mail.gmail.com> Date: Thu, 14 Sep 2006 18:38:49 +0200 From: "=?ISO-8859-1?Q?Gerald_M=FCllan?=" To: "MyFaces Discussion" , urswagner@bluemail.ch Subject: Re: Re: f:selectItems value property In-Reply-To: <1066212.171171158243637179.JavaMail.webmail@lps6zhh.bluewin.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1066212.171171158243637179.JavaMail.webmail@lps6zhh.bluewin.ch> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N A converter has to be used for the "value" argument of a SelectItem, not for the SelectItem Array itself. Maybe there is no Converter for your given value. cheers, Gerald On 9/14/06, urswagner@bluemail.ch wrote: > > I don't have a converter. Ist is an array of the JSF type > SelectItem. I hope in this case a default converter is implemented. > Isn't it? > > > ----Urspr=FCngliche Nachricht---- > Von: bierbrauen@gmail.com > Datum: 14.09.2006 16:02 > An: "MyFaces Discussion", > > Betreff: Re: f:selectItems value property > > Hi, > > you can try it also with: > > public List getSelectItems() > { > ... > } > > but the problem comes from creating a SelectItem. How do you > assign > value and label? > > It may also be a need to create a Converter for some type of > values > putting into the "value" property. > > regards, > > Gerald > > On 9/14/06, urswagner@bluemail.ch wrote: > > iI f:selectItems the propery value must be set with a bean > property > > of return type SelectItem[]. Is this not correct? > > > > Thanks > > > > I do the following and get an exception > > > > class Sell { > > .. > > SelectItem[] getArticleConditionOptions() > > > > } > > > > > > > > > > > > generates a nexception > > > > Caused by: java.lang.IllegalArgumentException: Value is no > String > > and component _idJsp6:_idJsp13with path: {Component-Path : > [Class: > > javax.faces.component.UIViewRoot,ViewId: /sell.jsp][Class: > javax. > > faces.component.html.HtmlForm,Id: _idJsp6][Class: javax.faces. > > component.html.HtmlSelectOneMenu,Id: _idJsp13]} does not have a > > Converter > > at org.apache.myfaces.shared_impl.renderkit.RendererUtils. > > getConvertedStringValue(RendererUtils.java > > > > > -- > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > > > > --=20 http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces