13 Replies Latest reply on Nov 16, 2007 2:38 AM by Dmitry Demyankov

    Making a table sortable.

    Charles Brands Newbie

      The rich:datatable component has no sortable columns. I need a table with sortable columns so I wondered if I can make a sortable column in the following way.

      <rich:dataTable>
       <rich:column sortable="true">
       <h:outputText value="columnA></h:outputText>
       </rich:column>
       <rich:column>
       <h:outputText value="columnB></h:outputText>
       </rich:column>
      </rich:dataTable>
      

      Wil something like this work and if columnA gets sorted does columnB change accordingly?
      Thanks