Hi all,
I have h:selectBooleanCheckbox inside rich:dataTable column header.
When I check or uncheck the header checkbox, the setSelectAllCheckbox method gets called with value false.
It works if I use tomohawk selectBooleanCheckbox table instead of rich:dataTable. Is this a bug in rich:dataTable?
Thanks,
hgk
See the code below:
<rich:dataTable value="#{FileServerListPage.discoveryTaskList}" id="discoveryTaskList" var="discoveryTask"
cellspacing="1" cellpadding="4" border="0" width="100%">
<rich:column id="checkBoxColumn" >
<f:facet name="header">
<h:selectBooleanCheckbox id="selectAllNone" value="#{FileServerListPage.selectAllCheckbox}" >
<a4j:support id="rerenderAllCheck" event="onclick"
reRender="remove"
actionListener="#{FileServerListPage.selectAllCheckboxDidChangeAL}"
onsubmit="setCheckboxesByType(this.checked,'')"
ajaxSingle="true"/>
</h:selectBooleanCheckbox>
</f:facet>
This works fine if I use tomahawk dataTable instead of rich:dataTable. Please let me know if there is a workaround for rich:dataTable