This is the code of a list of checkboxes:
<div class="span8">
<h:panelGrid id="columnGrid" width="450">
<rich:orderingList id="columnlist" value="#{EquipReportBean.settings}" listWidth="400" listHeight="250" var="item">
<s:convertEntity />
<rich:column>
<h:selectBooleanCheckbox value="#{item.show_column}" id="showColumn"/>
</rich:column>
<rich:column>
<h:outputText value="#{item.column_id.name}" id="columnName"></h:outputText>
</rich:column>
</rich:orderingList>
</h:panelGrid>
</div>
I ve already found a lot of about JavaScript in the internet about checking/uncheckin all. But the problem here it's that I don't have all the checkboxes IDs to check through code. How can I do the function to check or uncheck all of them using another checkbox. Thank you!