i have a little problem with the code below. We have to use booleancheckboxes and we have 12 of them as you can see it in the code. I would like to make a validator so the user has to select one of them atleast but it is not so easy because all of the checkboxes are individual and i also can't give them ID-s because of loop. What would be the proper way to validate it, or how is it even possible.
<rich:dataGrid id="checkboxes" value="#{MonitorBean.signalingOptions}" var="Signal" columns="3" elements="12" first="0">
<f:facet name="header">
<h:outputText value="Signaling options"></h:outputText>
</f:facet>
<rich:panel bodyClass="pbody">
<h:panelGrid columns="2">
<h:selectBooleanCheckbox value="#{Signal.toMonitor}" required="true" disabled="enabled">
<!--<f:validator validatorId="util.CheckboxValidator" />-->
<h:message for="checkboxes" styleClass="errors"/>
</h:selectBooleanCheckbox>
<h:outputText value="#{Signal.signalName}"></h:outputText>
</h:panelGrid>
</rich:panel>
</rich:dataGrid>
Thanks for the help!