2 Replies Latest reply on Jan 26, 2015 5:01 AM by strannik

    rich:dataTable sorting bug(also on showcase)

    strannik

      Hi

       

      I've found bug(or inconsistent behavior) in rich:dataTable of Richfaces 4.5.2

      How to reproduce on RichFaces showcase http://showcase.richfaces.org/:

       

      1. Go to rich:dataTable page(Built-in sorting and filtering tab).

      2. Click on 'Vendor' header several times. Sorting works as expected.

      3. Click on 'Model' header several times. Sorting works as expected.

      4. Click on 'Vendor' header several times. Sorting doesn't work immediately or after first click.

       

      Please advice.

        • 1. Re: rich:dataTable sorting bug(also on showcase)
          michpetrov

          Hi,

           

          that's how it works if you're sorting multiple columns.

           

          1. Click "Vendor" - table is sorted by vendor
          2. Click "Model" - table is sorted by vendor and then model
          3. Click "Vendor" - table is sorted by model and then vendor

           

          If model is the primary column then the table is sorted by vendor as well (since one model only belongs to one vendor). Basically if you're sorting by multiple columns every time you want to change the sorting you have to click all the columns again, clicking a column that's already been clicked puts it at the end of the column list, in terms of priority.

          • 2. Re: rich:dataTable sorting bug(also on showcase)
            strannik

            Thank you, Michal

             

            However it's not clear from user prospective.