From adffaces-dev-return-1573-apmail-incubator-adffaces-dev-archive=incubator.apache.org@incubator.apache.org Thu Oct 26 20:55:59 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-dev-archive@locus.apache.org Received: (qmail 48510 invoked from network); 26 Oct 2006 20:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 20:55:59 -0000 Received: (qmail 29370 invoked by uid 500); 26 Oct 2006 20:56:10 -0000 Delivered-To: apmail-incubator-adffaces-dev-archive@incubator.apache.org Received: (qmail 29349 invoked by uid 500); 26 Oct 2006 20:56:10 -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 29340 invoked by uid 99); 26 Oct 2006 20:56:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 13:56:10 -0700 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; Thu, 26 Oct 2006 13:55:56 -0700 Received: by ug-out-1314.google.com with SMTP id y2so602027uge for ; Thu, 26 Oct 2006 13:55:32 -0700 (PDT) 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=e9YBRIePCcq0uLYRQ+3IfaJnnT4usX9rG5nUaCaJk5SdjZS1QI65k9yURh0BFeZP6B8/PmCI/33B1k1vEl1CICPSpj3vpNAx9XRRGdY9FYC91E1EyGU3YKal5Dpt4h2UzIrLtxdLs+CETwkZCH7aPa7ctQyZIXyzfwDzQDxycLc= Received: by 10.67.93.6 with SMTP id v6mr3565105ugl; Thu, 26 Oct 2006 13:55:31 -0700 (PDT) Received: by 10.67.99.17 with HTTP; Thu, 26 Oct 2006 13:55:31 -0700 (PDT) Message-ID: <6dac79b90610261355j3be2220aj4232a48b49fd880b@mail.gmail.com> Date: Thu, 26 Oct 2006 13:55:31 -0700 From: "Adam Winer" To: adffaces-dev@incubator.apache.org Subject: Re: new validator: dateRestrictionValidator In-Reply-To: <71235db40610252258u23c8dc2es6dc9204c0210a1e2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_78136_22141381.1161896131586" References: <453FFAAC.5020708@oracle.com> <71235db40610251705h7c03c879y4e97d1a6a9f54417@mail.gmail.com> <453FFE8A.3070003@oracle.com> <5a99335f0610252246xc1ae33fh18608e9b3d0c2f08@mail.gmail.com> <5a99335f0610252247m51b84d18udecbf58a7f735c5e@mail.gmail.com> <71235db40610252258u23c8dc2es6dc9204c0210a1e2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_78136_22141381.1161896131586 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline +1 to the validator. Would definitely hope for client-side validation too! A tricky question from an API standpoint, though: for an inputText, you'd just add this validator. But for inputDate, I think it'd be easier for users if we supported setting the attributes directly on inputDate, and synthesized the validator for them. -- Adam On 10/25/06, Matthias Wessendorf wrote: > > I bet! > > > On 10/25/06, Martin Marinschek wrote: > > P.S.: will it be client-side enabled as well? > > > > regards, > > > > Martin > > > > On 10/26/06, Martin Marinschek wrote: > > > Great idea! > > > > > > regards, > > > > > > Martin > > > > > > On 10/25/06, Gabrielle Crawford wrote: > > > > Thanks Matthias. Okay, this is issue 258 > > > > https://issues.apache.org/jira/browse/ADFFACES-258 > > > > > > > > Thanks, > > > > > > > > Gab > > > > > > > > Matthias Wessendorf wrote: > > > > > > > > > That would be a great improvement to all the inputDate / calendar > > > > > (Tomahawk) components. > > > > > > > > > > I am also fine w/ the name. > > > > > > > > > > Opening an issue in jira does never hurt, when discussing an > enhancement. > > > > > :) > > > > > > > > > > -M > > > > > > > > > > > > > > > On 10/25/06, Gabrielle Crawford > wrote: > > > > > > > > > >> Hi, > > > > >> > > > > >> I'd like to add a new validator. My proposed name is > > > > >> DateRestrictionValidator, other suggestions welcome. This would > support > > > > >> attributes like: > > > > >> > > > > >> invalidMonths - example: dates in April are invalid > > > > >> invalidDaysOfWeek - example: Saturdays and Sundays are invalid > > > > >> invalidDays - example: 12-25-06 and 1-1-07 are invalid > > > > >> > > > > >> The exact api's will be discussed further as the implemenation is > worked > > > > >> out. > > > > >> > > > > >> Does anyone oppose this or can I open an issue? > > > > >> > > > > >> Thanks, > > > > >> > > > > >> Gabrielle > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > http://www.irian.at > > > > > > Your JSF powerhouse - > > > JSF Consulting, Development and > > > Courses in English and German > > > > > > Professional Support for Apache MyFaces > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > -- > Matthias Wessendorf > http://tinyurl.com/fmywh > > further stuff: > blog: http://jroller.com/page/mwessendorf > mail: mwessendorf-at-gmail-dot-com > ------=_Part_78136_22141381.1161896131586--