0 Replies Latest reply on Sep 20, 2009 4:26 PM by Peter Irmstadt

    Sort extendedDataTable by Boolean value

    Peter Irmstadt Newbie

      Hi!

      I do have the following column definition inside an extendedDataTable:

      <rich:column id="colSel" label="Choose" width="80px">
      <f:facet name="header">Choose</f:facet>
      <h:selectBooleanCheckbox id="selectToAdd" value="#{articleMap[_art]}" />
      </rich:column>
      


      that renders a checkbox inside each row to select some rows. I want to enable the user to sort by the selection, so I set sortable to true, selfsorted to true and sortBy to the same value as the value of the selectBooleanCheckbox.

      Unfortunately no matter what I tried - sorting was disabled (the sort icon wasn't shown and the sort entry in the context menu is disabled as well) while sorting by the other columns works as expected.

      Do you have any idea what the problem might be?

      Thank you in advance!