Server-side DataTable Sorting in RichFaces?

I ended up doing it manually. I adding a support tag to the header text tag, like so.

I ended up doing it manually. I adding a support tag to the header text tag, like so. To get the ascending/descending arrows, I added a css class.

There is a fairly elegant solution to this solution here: livedemo.exadel.com/richfaces-demo/richf... This demo avoids using the tag.

Have a look at the "sortBy" property of "rich:columns", maybe that's what you're looking for. Richfaces Reference.

I cannot get this attribute to work consistently. Anyway he said server side sorting. Isn't rich:columns with sortBy client side sorting?

– april26 Aug 18 '09 at 17:07.

The solution provided by Sblundy is a good one. But there has to be a proper way of doing it. Server-side sorting and grouping(in case of ExtendedDatatable) is a must have feature for libraries like richfaces.

I am unable to find any help so far and I really cant believe that I am the only one trying to do server side stuff.

The functionality of sortBy is limited to client-side although it does hit the server to get the list sorted. Is there any way of overridding the server-side sort function?

Your datamodel needs to implement "Modifiable" interface. The datatable will call it's modify() method to do serverside sorting and filtering.

I had the same problem. Client-side sorting/filtering was not acceptable. Moreover, when I clicked on a column to start sorting by that column my DataScroller stopped working.In my case I was using extendedDataTable, ExtendedDataModel.

User ikren is right. Everything started working, row paging using datascroller too. Client stopped sorting and filtering by itself.

It started using model's modify method, so I could pass filters to my data provider. Ikren thank you very much!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send