0 Replies Latest reply on Oct 6, 2011 2:34 PM by gregcharles

    Confusion about rich:extendedDataTable sorting

    gregcharles

      I'm upgrading an application from RF 3.3.1 to 4.0.0, and I'm running into a number of issues with the extendedDataTables. In 3.3.1, I could set the sortMode to single, and the sortable flag on sortable columns to true. Assuming that the contents of the columns were Comparable, I'd get little up and down arrows in the column header and sorting would just work.

       

      In 4.0.0, those arrow glyphs seem to have disappeared, and the Showcase at http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=dataTable&sample=tableSorting&skin=classic shows embedding an a4j:commandLink in the column header, which means defining a managed bean to set the sort mode of each column based on clicking the column header. That gives marginally more control, but at the expense of a lot more work. Is that really the new model, or is there still an easy way to make bog standard table sorting work?