Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 18615 invoked from network); 10 Jul 2007 15:09:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 15:09:28 -0000 Received: (qmail 96073 invoked by uid 500); 10 Jul 2007 15:09:29 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 96026 invoked by uid 500); 10 Jul 2007 15:09:29 -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 96015 invoked by uid 99); 10 Jul 2007 15:09:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 08:09:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 08:09:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B00C97141F3 for ; Tue, 10 Jul 2007 08:09:04 -0700 (PDT) Message-ID: <28636830.1184080144718.JavaMail.jira@brutus> Date: Tue, 10 Jul 2007 08:09:04 -0700 (PDT) From: "Andrew Robinson (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-1677) UISelectOne Validation Error: "Value is not a valid option" in MyFaces Core 1.1.5 (Doesn't Occur in 1.1.4) In-Reply-To: <20557765.1184075644745.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511469 ] Andrew Robinson commented on MYFACES-1677: ------------------------------------------ Note, if you can reproduce the error with 1.1.5 compatible code (according to the JSF specification), then please report more information, but I am fairly positive this is not a bug in 1.1.5 > UISelectOne Validation Error: "Value is not a valid option" in MyFaces Core 1.1.5 (Doesn't Occur in 1.1.4) > ---------------------------------------------------------------------------------------------------------- > > Key: MYFACES-1677 > URL: https://issues.apache.org/jira/browse/MYFACES-1677 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 1.1.5 > Environment: Mac 0S X 10.4.10 > Reporter: Ben Hanney > > After recently upgrading to 1.1.5 from 1.1.4 I've noticed the following problem, this simple selectOneMenu > no longer passes validation. The Validation phase always fails with the message "Value is not a valid option". > value="#{UserAccountDataBean.userAccount.country.countryId}" > required="true"> > > > The type of countryId is an Integer and it is initially null. The selectOneMenu is inside a form within a subview. > I tried using a PhaseTracker to see what was going on: > BEFORE APPLY_REQUEST_VALUES(2) > Submitted null Local null Value null > AFTER APPLY_REQUEST_VALUES(2) > Submitted 1 Local null Value null > BEFORE PROCESS_VALIDATIONS(3) > Submitted 1 Local null Value null > AFTER PROCESS_VALIDATIONS(3) > Submitted 1 Local null Value null > BEFORE RENDER_RESPONSE(6) > Submitted 1 Local null Value null > AFTER RENDER_RESPONSE(6) > Submitted 1 Local null Value null > The submitted value 1 is definitely in the Options list so there's no reason validation should fail. Indeed if I change nothing and revert back to 1.1.4 everything is fine. > Cheers, > Ben -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.