Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 94114 invoked from network); 12 Apr 2007 16:54:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Apr 2007 16:54:02 -0000 Received: (qmail 23959 invoked by uid 500); 12 Apr 2007 16:54:03 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 23922 invoked by uid 500); 12 Apr 2007 16:54:03 -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 23905 invoked by uid 99); 12 Apr 2007 16:54:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 09:54:02 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [147.67.1.203] (HELO s-dc-exrz04.rcnet.cec.eu.int) (147.67.1.203) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 09:53:52 -0700 Received: from S-DC-EXRB02.net1.cec.eu.int ([158.167.189.153]) by s-dc-exrz04.rcnet.cec.eu.int with Microsoft SMTPSVC(6.0.3790.2499); Thu, 12 Apr 2007 18:53:30 +0200 Received: from S-DC-EXM11.net1.cec.eu.int ([158.167.183.16]) by S-DC-EXRB02.net1.cec.eu.int with Microsoft SMTPSVC(6.0.3790.2499); Thu, 12 Apr 2007 18:53:30 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Cross validation problem Date: Thu, 12 Apr 2007 18:53:30 +0200 Message-ID: <803E7CC272B5144DAF6D1254F99DAA6F1F30D2@S-DC-EXM11.net1.cec.eu.int> In-Reply-To: <8f985b960704120923s1ec90322vd0db1184ad977860@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cross validation problem Thread-Index: Acd9HukjxgCqAAM0QU+4v5e45X6swgAARDFA From: To: X-OriginalArrivalTime: 12 Apr 2007 16:53:30.0735 (UTC) FILETIME=[196E87F0:01C77D23] X-Virus-Checked: Checked by ClamAV on apache.org Hi, Maybe I'm wrong... But I think I can't use it for my problem. I try to explain little more my problem: If user that try to login select "DOMAIN_A" as domain, the validator for = password should validate password rules of domain_A If user that try to login select "DOMAIN_B" as domain, the validator for = password should validate password rules of domain_B --> I should like to have an "validator" that can access value of DOMAIN = and PASSWORD at same time. PS: I have to develop WAI compliant so can't make use of javascript. Thanks for help. Stephane -----Original Message----- From: Mike Kienenberger [mailto:mkienenb@gmail.com]=20 Sent: Thursday, April 12, 2007 6:23 PM To: MyFaces Discussion Subject: Re: Cross validation problem http://myfaces.apache.org/sandbox/validateCompareTo.html Also in comments in the source code. On 4/12/07, Stephane.CLINCKART@ext.ec.europa.eu wrote: > Thanks for hint. > > Where can I find a sample of usage of t:compareToValidator ? > > Thanks. > > PS: It should be better for me to make the vaidation in the = validators... For several reasons to long to explain here. > Thanks for help again. > > -----Original Message----- > From: Mike Kienenberger [mailto:mkienenb@gmail.com] > Sent: Thursday, April 12, 2007 5:59 PM > To: MyFaces Discussion > Subject: Re: Cross validation problem > > You can take a look at the details of how to handle cross-component > validation by reading the source code for the Tomahawk sandbox > t:compareToValidator validator. > > However, this is probably a case where it makes more sense to perform > your business validation in the action. > > On 4/12/07, Stephane.CLINCKART@ext.ec.europa.eu > wrote: > > > > > > > > Hi, > > > > In a login page I have 3 components: > > > > Login > > Password > > Domain > > > > I have a validator for Login & Password > > > > I should like in Validator of password to "knows" the value of the = Domain. > > The value of the domain is not set when I validate the password. > > > > Do I have somethink special to do for defining the setting order? > > > > How to perform a "cross component validation"? > > > > Thanks a lot. > > > > Stephane >