From adffaces-dev-return-1638-apmail-incubator-adffaces-dev-archive=incubator.apache.org@incubator.apache.org Tue Oct 31 03:09:15 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-dev-archive@locus.apache.org Received: (qmail 15080 invoked from network); 31 Oct 2006 03:08:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 03:08:43 -0000 Received: (qmail 1548 invoked by uid 500); 31 Oct 2006 03:08:54 -0000 Delivered-To: apmail-incubator-adffaces-dev-archive@incubator.apache.org Received: (qmail 1534 invoked by uid 500); 31 Oct 2006 03:08:54 -0000 Mailing-List: contact adffaces-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-dev@incubator.apache.org Delivered-To: mailing list adffaces-dev@incubator.apache.org Received: (qmail 1525 invoked by uid 99); 31 Oct 2006 03:08:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 19:08:54 -0800 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awiner@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 19:08:42 -0800 Received: by ug-out-1314.google.com with SMTP id y2so1631396uge for ; Mon, 30 Oct 2006 19:08:20 -0800 (PST) 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:references; b=f+z9laot2dMkSBGllxgFoIXNYDMG2mQiDzolzW8VIf2X/JSVfPHFUWM68TL66tJczQvqBIZsCUCKpOjTFSeZun/7/fWfTebYR7wwdL/5PWcmHQkQ1DzMGJRxQk55KCKr6Sj0+VKoRESkZJqAqlZVB0XdvMprney7Y0tm65BymQ0= Received: by 10.66.221.19 with SMTP id t19mr5379791ugg; Mon, 30 Oct 2006 19:08:20 -0800 (PST) Received: by 10.67.99.17 with HTTP; Mon, 30 Oct 2006 19:08:19 -0800 (PST) Message-ID: <6dac79b90610301908s30413d1bm2522442140ddce35@mail.gmail.com> Date: Mon, 30 Oct 2006 19:08:20 -0800 From: "Adam Winer" To: adffaces-dev@incubator.apache.org Subject: Re: Bug with read-only, required fields. In-Reply-To: <4546BD30.70403@oracle.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_597_11443480.1162264100107" References: <254acf980610301820i225e5d0bl773f6cbb9ee48555@mail.gmail.com> <4546BD30.70403@oracle.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_597_11443480.1162264100107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yeah, I'm with Gab here - you should never hit validation at all. -- Adam On 10/30/06, Gabrielle Crawford wrote: > > Really? I thought the renderer checks "wasSubmitted" which checks for > readOnly and disabled. SubmittedValue should then be set to null, and in > UIXEditableValue's validate if submittedValue is null validate is > bypassed: > > Object submittedValue = getSubmittedValue(); > if (submittedValue == null) > return; > > Thanks, > > Gab > > Simon Lessard wrote: > > > Hello all, > > > > I just found out that if you use an inputText with readOnly and > > required set > > to true, validation will always fail, even if there's data in the > > underlying > > bean. Anyone heard about this before? > > > > > > Regards, > > > > ~ Simon > > > > ------=_Part_597_11443480.1162264100107--