Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 71309 invoked from network); 16 Feb 2009 21:28:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 21:28:08 -0000 Received: (qmail 75461 invoked by uid 500); 16 Feb 2009 21:28:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 75438 invoked by uid 500); 16 Feb 2009 21:28:06 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 75429 invoked by uid 99); 16 Feb 2009 21:28:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 13:28:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 21:27:58 +0000 Received: by fg-out-1718.google.com with SMTP id l26so311576fgb.27 for ; Mon, 16 Feb 2009 13:27:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=h+aQrO4fHj3VJDkRtaxUiTIXUW6v5bxCccnE7xTSWjY=; b=pyWJvtuFCmYEOj7mSCkODgRaHB9LeD3MkuzRYzuyNjficKz6jCcJXIB6FslpAacRF4 AR8+xSiFwfumK0+SRqoYXjpf/gRr3F5l0D70UQTRiz94f1VHr35cmblbZHYmszDYsrti ESMaqzE0lPT4QoomlW3sQIuR6UPy4ljC6rIDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=RoLuMlxRc5GsOONZz2xTFkBuCsgbsFFG69owuSyuFlu6PUO5N7HE2AsyNHCv4EPUjl JRP1IT0VTh+RVqp/zbhrUdV51+wtjSiJHqNGdiEe87wOzLSiRmgCN5YFJLkU3xdCl6oM INYt2DgBdvk/vQ+lmWgCItKZvtvDS4H3IhTMI= Received: by 10.86.80.17 with SMTP id d17mr1678692fgb.48.1234819656806; Mon, 16 Feb 2009 13:27:36 -0800 (PST) Received: from coltrane-009027039030.raleigh.ibm.com (bi01p1.nc.us.ibm.com [129.33.49.251]) by mx.google.com with ESMTPS id l12sm151154fgb.51.2009.02.16.13.27.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Feb 2009 13:27:36 -0800 (PST) Message-Id: <4E8B011C-E877-491D-BCEF-D279519CA034@gmail.com> From: Kevan Miller To: user@geronimo.apache.org In-Reply-To: <22044582.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Validators of h:inputText not getting invoked value is "" Date: Mon, 16 Feb 2009 16:27:33 -0500 References: <22044582.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 16, 2009, at 2:56 PM, babus_18 wrote: > > Hi, > > I am using jsf api and impl 1.2._12. > > I have the following facelet mark up: > > required="false"> > > > > The "stateValidator" is configured as follows in faces-config > > > stateValidator > > adc.validators.MultiFieldLengthValidator class> > > > The validator is getting invoked with no issues when the value of > the field > is anything other than "". But when the value is "", the validator > does not > get invoked. > > I am wondering if I am doing something wrong. Please advise on > potential > solutions. Babu, I'm no subject matter expert (and from your version number, I'm not sure you're actually using "Geronimo"), but believe that you are describing the expected behavior when "required="false". If required is false, validators are not executed for a null or empty string. --kevan