1 Reply Latest reply on Jul 11, 2008 10:39 AM by hgk

    selectBooleanCheckbox value is always false

    hgk

      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>