I have two JSF <h:selectOneMenu>
components. One called category another is subcategory.
If I select category, then subcategory changes dynamically. When I click search command button, then it displays a <h:dataTable>
with boolean checkboxes.
The problem is: if none of the checkboxes is selected, then I need to show the error message like "Please select any" and the same error message has to come if there is no data in the data table after pressing search button. Please suggest a solution.