myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Stephane.CLINCK...@ext.ec.europa.eu>
Subject RE: Cross validation problem
Date Thu, 12 Apr 2007 16:53:30 GMT
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] 
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
<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
> <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
>

Mime
View raw message