1 Reply Latest reply on Jul 21, 2008 10:12 AM by Anton Lisovenko

    Resulting DataModelSelection incorrect after sorting rich:da

    Jacob Orshalick Apprentice

      Has anyone run into an issue with the DataModelSelection being incorrect once sorting has been performed on a rich:dataTable? The DataModelSelection is correct until after a column has been sorted. Once sorting takes place, the last element is always the selection. I am using SWF2 with Rich Faces 3.2.1.GA.

      The same issue has been reported by a Seam user at the link below but the issue does not seem to be limited to Seam.



        • 1. Re: Resulting DataModelSelection incorrect after sorting ric
          Anton Lisovenko Newbie

          The same problem. When using DataModel and after sorting of table, get the wrong selected object. What is interesting, this one works:

          Customer selected = (Customer)context().getExternalContext().getRequestMap().get("selectedCustomer");

          but this doesn't:

          Customer selected = (Customer)dataModel.getRowData();

          The last example returns the record with the wrong id. This is another case, when you try to do everything nice and correctly, but have to make everything manually and toughly...

          This is common in 3.2.0 and 3.2.1