Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 35384 invoked from network); 15 Mar 2007 18:00:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 18:00:36 -0000 Received: (qmail 17765 invoked by uid 500); 15 Mar 2007 18:00:43 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 17704 invoked by uid 500); 15 Mar 2007 18:00:42 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 17693 invoked by uid 99); 15 Mar 2007 18:00:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 11:00:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [64.190.72.22] (HELO mail.mikon.com) (64.190.72.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 11:00:29 -0700 Message-ID: <45F989A7.2000809@mindspring.com> Date: Thu, 15 Mar 2007 14:00:07 -0400 From: Paul Spencer MIME-Version: 1.0 To: MyFaces Development Subject: Re: SelectBox example not working 'Validation Error "Doors": Value is not a valid option." References: <45F93F0D.4060609@apache.org> <8f985b960703150859l237a8bc9j46fe5f5e0adc43da@mail.gmail.com> In-Reply-To: <8f985b960703150859l237a8bc9j46fe5f5e0adc43da@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mike, I like the first suggestion, change the door type to long. Would you like to make the changes, or shall I? FYI: I found this while verifying the examples in preparation for a 1.1.5 release. Paul Spencer Mike Kienenberger wrote: > Yes. > > > > > > > > > public void setDoors(int doors) > { > this._doors = doors; > } > > itemValue is a String. Doors expects an int. This probably has > been the most reported issue in the last month. For RI compatiblity > (and adherence to the spec), we can no longer coerce itemValue types > to the backing bean types. > > The easiest fix would be to change the door type to "Long" and then > use "#{2}" as the itemValue. > > Another possiblity is to enhance t:selectItem to perform the > coercision as it's not limited by the spec and JSF RI requirements. > > On 3/15/07, Paul Spencer wrote: >> Any idea why the SelectBox example always fails the door validation? >> http://example.irian.at/example-simple-20070315/selectbox.jsf >> >> Paul Spencer >> >