Hi Stephane,
 
One way to do this is to set a hidden field as the *last* component on
your page.  
 
<h:inputHidden id="loginCheck" validator="#{backingBean.validateLogin}"
value="needed">
Note : you need to have some value for the field, hence 'value="needed"'
 
When you run your validation on this component all the others have been
set.
 
backingBean is your backing bean with a validateLogin() method.
 
Regards,
 
Fintan

        -----Original Message-----
        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
        Sent: 12 April 2007 16:56
        To: [EMAIL PROTECTED]
        Subject: Cross validation problem
        
        

        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 


* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not 
necessarily
represent those of ESB.
If you have received this email in error please notify the sender.

Although ESB scans e-mail and attachments for viruses, it does not guarantee
that either are virus-free and accepts no liability for any damage sustained
as a result of viruses.

* ** *** ** * ** *** ** * ** *** ** *

Reply via email to