when I click the submit button atleast one check box should be selected. Can anyone help me how to define in validation XML,
how to do it with requiredif and validatewhen conditions, in my jsp page we have 10 checkboxes.
Please let me know if you have any solution for this. it should be server side validation
You can do this by making the property name for each checkbox the same or by using the html:multibox tag. Then you can simply use the "required" validation to verify that at least one checkbox was checked.
Searching the web should provide *numerous* examples; it's a simple matter of checking the form properties in question and adding an error if the proper conditions aren't met. IIRC this can be combined with XML validation by calling super.validate() as well.