posted 14 years ago
i have a XYZ form with two radio buttons. when we click first radio button some of the fileds will be displayed and those are mandatory fields which we have to enter.
when i select second radio button some other field will be displayed on the same page, and in this we have some fields as mandatory.
I am using Action-validation.xml method to do validations.
When i submit the XYZ form, it will go to the same action class and it will validate with the same action-validation for both radio button clicks.
Now when i click on first radio button(there are no second radio button related fileds displayed),
it is giving problem with validation, because i mentioned the second radio button fileds also mandatory in the validation.xml
Could you sujjest me any solution to come out from this?