Now I need to know the condition cond1 and cond2 whether it can be given for different inputTexts. So i do not need to have different classes for different text boxes. How do I identify which text box is being called in the validate method since I have the same Id for both. Can this requirement be done like this or is there any other way ? Please help
Thanks & Regards,
posted 6 years ago
I personally haven't tried this with plain JSF. You might want to give it a try:
1. Provide ids to your inputText tags (assuming this is not a constraint for you)
2. In your validator check the component.getId() value against the id's of tags in step 1.