Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 71165 invoked from network); 6 Jul 2004 00:09:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Jul 2004 00:09:33 -0000 Received: (qmail 71826 invoked by uid 500); 6 Jul 2004 00:09:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71789 invoked by uid 500); 6 Jul 2004 00:09:27 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 71767 invoked by uid 99); 6 Jul 2004 00:09:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [216.6.48.60] (HELO ags01.agsoftware.dnsalias.com) (216.6.48.60) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 05 Jul 2004 17:09:26 -0700 Received: from ags01.agsoftware.dnsalias.com (localhost.localdomain [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.10/8.12.10) with ESMTP id i6609054004405 for ; Mon, 5 Jul 2004 18:09:00 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.10/8.12.10/Submit) id i6608xg4004403; Mon, 5 Jul 2004 18:08:59 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to cchavez@agsoftware.dnsalias.com using -f Received: from 10.0.0.1 (SquirrelMail authenticated user cchavez); by ags01.agsoftware.dnsalias.com with HTTP; Mon, 5 Jul 2004 18:08:59 -0600 (CST) Message-ID: <43877.10.0.0.1.1089072539.squirrel@10.0.0.1> In-Reply-To: <20040705153032.552.qmail@web52207.mail.yahoo.com> References: <20040705153032.552.qmail@web52207.mail.yahoo.com> Date: Mon, 5 Jul 2004 18:08:59 -0600 (CST) Subject: Re: [cforms] Form-level custom validator From: Carlos =?iso-8859-1?Q?Ch=E1vez?= To: users@cocoon.apache.org Reply-To: cchavez@agsoftware.dnsalias.com User-Agent: SquirrelMail/1.4.3a-0.f1.1 X-Mailer: SquirrelMail/1.4.3a-0.f1.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Alex Romayev Escribio :-) > Hi, > > I'd like to create a validator for my login form. It > needs to check that email/password combination is > valid and if not, display "Invalid email/password > combination" message. > > Question. Since the message applies to two widgets, I > assume I would need to create a custom validator and > add it to form itself. However, Form widget does not > implement ValidationErrorAware, so I would assume, I > would not be able to set a message on the form itself. > Is this correct? Is there a way of achieving what I > need? Hi Alex, I have something similar. I have three widget: 1. current_passwd (Current Password) 2. new_passwd (New Password) 3. repeat_passwd (Retype new Password) Then, if the current password is not equal to the password in the database then a set the validation error for the widget current_passwd. if the new password are not equal to the retype password then i set the validation error for the widget repeat_passwd. that is the option what a see. I hope help you. Cheers Carlos Ch�vez. > > Thanks, > -Alex > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > -- Carlos Ch�vez --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org