dataTable, sorting and backing bean

UI Components for JSF
Post Reply
jbrush
Posts: 9
Joined: 22 Sep 2009, 10:15

05 Nov 2009, 13:40

I have a question concerning the sort feature of the dataTable. If the dataTable is sortable (<p:column sortable="true">), is there any way to know the current sort order in the backing bean of the table?

For some functionality, I need to have the model items in the backing bean's collection have the same sort order as displayed in the dataTable. Is there any way to to this? Thanks for any hints.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Nov 2009, 02:42

Hi,

Actually table sorting is revisited in upcoming release, sortable is replaced by sortBy="#{a.b.c}". Also attributes like sortOrder are planned to be available in new release which is coming out on 16th.

I'd suggest taking a look at the new sorting features, probably it'll be enough for your requirements, we can discuss later as well. ;)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 60 guests