Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 96965 invoked from network); 21 Jul 2009 15:59:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jul 2009 15:59:09 -0000 Received: (qmail 44402 invoked by uid 500); 21 Jul 2009 16:00:13 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 44327 invoked by uid 500); 21 Jul 2009 16:00:13 -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 44317 invoked by uid 99); 21 Jul 2009 16:00:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 16:00:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of weber.volker@googlemail.com designates 209.85.220.228 as permitted sender) Received: from [209.85.220.228] (HELO mail-fx0-f228.google.com) (209.85.220.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 16:00:01 +0000 Received: by fxm28 with SMTP id 28so2156661fxm.12 for ; Tue, 21 Jul 2009 08:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tzr1W74StpDARTcze2ltt93oLwKq6520nSCMbadQeL8=; b=IjefR0u/OCbJEw4CY7IeFSq1fpmRraBk5IXAH5zZ1fD4AJzqigeHFhQP5GLnP3TSKJ 2YMofoVEaq3r62zDpLIqidTWo+23Sbd+P5J8yXLY2FdBtVn8mPTxEH6LQZO3kMH9MPDu 8tu/VBPsMRVVxowyZwgwMH3CSJTjJxGBfk0aw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=PXgadsLBMkYlpXnxiE4xOgcPI799vgsQVDD+z+wjIGXmjfS/Oo1UGYNr5J2W8Ob4uu jH3wtKU7+0n8IQbgHcPIf6g/oU3eR0XCIW9ICKRYH5oMjqBVdOmc6zs7ii7gic8mE0yI 6ZUqbURDTSm/giouX3oBgztCKiPOxIl7YDkp4= MIME-Version: 1.0 Sender: weber.volker@googlemail.com Received: by 10.223.113.9 with SMTP id y9mr2179905fap.19.1248191981015; Tue, 21 Jul 2009 08:59:41 -0700 (PDT) In-Reply-To: <0ABDDCC3988E4BC7952D1E7ACA319C3B@Rafael> References: <0ABDDCC3988E4BC7952D1E7ACA319C3B@Rafael> Date: Tue, 21 Jul 2009 17:59:40 +0200 X-Google-Sender-Auth: c239bbe4f506788b Message-ID: <9a64d7d10907210859p23d6a76dk161a0598d3dc45d1@mail.gmail.com> Subject: Re: : value is not a valid option From: Volker Weber To: MyFaces Discussion Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Rafael, your itemValues are Strings, your bean expect Integer. you can change the getter and setter to accept and return Strings or try itemValue=3D"#{1}", you may need to change from Integer to Number th= an. Regards, Volker 2009/7/21 SANTINI, Rafael : > Hi, > > I can't figure out why the following code results in "value is not a vali= d > option": > > > > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 > > > public class Bean { > > =C2=A0 private Integer opcao; > > =C2=A0 public Integer getOpcao() { > =C2=A0 =C2=A0 =C2=A0 return opcao; > =C2=A0 } > > =C2=A0 public void setOpcao(Integer opcao) { > =C2=A0 =C2=A0 =C2=A0 this.opcao =3D opcao; > =C2=A0 } > > } > > Thanks, > > Rafael Santini > > > > --=20 inexso - information exchange solutions GmbH Bismarckstra=C3=9Fe 13 | 26122 Oldenburg Tel.: +49 441 4082 356 | FAX: +49 441 4082 355 | www.inexso.de