dataTable sort not working all the time

UI Components for JSF
Post Reply
sebastianovide
Posts: 90
Joined: 19 Dec 2010, 17:08

08 Feb 2011, 12:28

Hi All,

I've just copied the example datatableComples from the showcase http://www.primefaces.org/showcase/ui/d ... omplex.jsf and the sorting is not working as expected.

If I click on the sort arrow it wont sort the table... but If I enter something in the filter of any column and then delete it (the filter text box) then the sort starts working correclty !!!! very odd

any ideas ?

(I'm using 2.2)

thanks !

OneCent
Posts: 38
Joined: 10 Sep 2010, 16:25
Contact:

08 Feb 2011, 14:58

We do store the records in a List in the backing bean. We fill the list once and then just use it. This seams to help for the sort.
Mojarra 2.0.4 / Glassfish v3.1 / Primefaces 2.2.1 / Netbeans 7 / OS X

sebastianovide
Posts: 90
Joined: 19 Dec 2010, 17:08

08 Feb 2011, 16:32

It display the data correctly and sorting start to work only after that I have entered something in the filter text box and then deleted it..... it works also if I enter space (" ") in a filter text box.... :?: :?: :?:

sebastianovide
Posts: 90
Joined: 19 Dec 2010, 17:08

09 Feb 2011, 12:28

yes exactly...
now, as in the showcase it is working fine, that means that there is a way.... but cannot find it documented anywhere...

by the way I'm using the latest stable (2.2)

sebastianovide
Posts: 90
Joined: 19 Dec 2010, 17:08

17 Feb 2011, 17:20

I've updated to 2.2.1 and the problem is still there... there is another way to "make" it work: click on the filter box and press any key... yes any, even Esc.. after that it starts to work...

should I rise a ticket ?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests