Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 39087 invoked from network); 13 Dec 2005 19:47:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Dec 2005 19:47:23 -0000 Received: (qmail 98130 invoked by uid 500); 13 Dec 2005 19:47:18 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 98086 invoked by uid 500); 13 Dec 2005 19:47:18 -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 98075 invoked by uid 99); 13 Dec 2005 19:47:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 11:47:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mkienenb@gmail.com designates 64.233.182.193 as permitted sender) Received: from [64.233.182.193] (HELO nproxy.gmail.com) (64.233.182.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 11:47:16 -0800 Received: by nproxy.gmail.com with SMTP id o60so605332nfa for ; Tue, 13 Dec 2005 11:46:55 -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:content-transfer-encoding:content-disposition:references; b=j5g4FcbJiVLTHnFB78/TRY0UdM+SJzl5hjRl2TcV4G4GAcCA4FSHhaJHEwwcPQSqEGAEQ9wYl9He01NlbbhAAP7vc997ELZWyTITHRZz/lPhJFZPUTdUfUAGKTGHjr3IoEIQhsycrHfn8OXSdY/PbOG8sxU3XqC/fx3nBq8V7Nw= Received: by 10.49.5.15 with SMTP id h15mr970376nfi; Tue, 13 Dec 2005 11:46:55 -0800 (PST) Received: by 10.48.211.15 with HTTP; Tue, 13 Dec 2005 11:46:54 -0800 (PST) Message-ID: <8f985b960512131146i80ad37fg973b4af4ffd92b6d@mail.gmail.com> Date: Tue, 13 Dec 2005 14:46:55 -0500 From: Mike Kienenberger To: MyFaces Discussion Subject: Re: Wrong validator methods invoked in Nightly 20051130 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8f985b960512120746y297beef5v7b0360033de9053a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No, the behavior isn't configurable. If there's no value specified, no validators are run. The only "check" is the required attribute. =20 However, you can put an EL expression in your required attribute to make it optional in some cases. Your other choice is to take a look at http://wiki.apache.org/myfaces/OptionalValidationFramework for some other ideas, but I don't think it'll directly help you. It is possible to use a subset of the framework to check all required(like)Validators, but I don't see how that's better than using an EL expression in your case. Note that the framework doesn't currently work with vanilla MyFaces 1.1. You'd need to use facelets + JSF 1.1 or upgrade to JSF 1.2 in order to use the tag. On 12/13/05, Matthias Kahlau wrote: > > Validation is only called if the component's submitted value is > > non-null. Perhaps this is the issue you're seeing? > > > > Is this behavior manipulable, because it's very problematic for my use > context. I wanted to write a validator method which performs a "required" > validation, because the value entered is optional in some cases. Isn't it > possible to achive that with a validator method? > > Is there an alternative for the "required" validation? I can't use the > "required" attribute of the input tag, because I can't dynamically set th= at > value, which would demand too much submits of the page. > > > Regards, > > Matthias > > > > -----Urspr=FCngliche Nachricht----- > > Von: users-return-13583-mkahlau=3Dweb.de@myfaces.apache.org > > [mailto:users-return-13583-mkahlau=3Dweb.de@myfaces.apache.org]Im Auftr= ag > > von Mike Kienenberger > > Gesendet: Montag, 12. Dezember 2005 16:47 > > An: MyFaces Discussion > > Betreff: Re: Wrong validator methods invoked in Nightly 20051130 > > > > > > Validation is only called if the component's submitted value is > > non-null. Perhaps this is the issue you're seeing? > > > > On 12/9/05, Matthias Kahlau wrote: > > > Hi! > > > > > > > > > I use the "validator" attribute of inputCalendar, inputText and > > > inputFileUpload. But as I can see in the logging output, JSF > > calls only one > > > of the four validator methods in the process validations phase, > > but not the > > > same one each time. The other methods are never called. What's > > going wrong? > > > > > > > > > Regards, > > > Matthias > > > > > > > >