title: How to get the value of another component in a custom validator?
body: <p>I use a custom validator. The difficulty is that I just need to check two fields inputText and compare them. The first field must be greater than the second field. If not, then I have to show a message with the error information. So I need to pass in my custom validator the value of first inputText field. To do this I need to read a value of first InputText field in my validator class. How can I get a id of necessary component  in a validator class? Solution using the tag  does not suit me. I need to go to the desired component is directly Maybe this can be done through any methods of the FacesContext?</p>