Hi Cosma,

It sounds like we use the same approach you do and let the database do the sorting work for us. While not elegant in design it works and is quite managable, allowing custom sorting by column and suporting the MVC. Perhaps using an include and aliasBean with parameters might work altough I have not tried this. I saw a compelling example using facelets for doing exactly the task you are attempting which you might want to check out -- again I have not tried this as facelets seems pretty invasive.

----- Original Message ----
From: Cosma Colanicchia <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Wednesday, May 17, 2006 9:51:53 AM
Subject: Remote sorting with t:dataTable

Hello,

I use the t:dataTable component with a custom-made DataModel. I need sorting, but I want my list back-end to do the work.. is there a way to use the standard sort attributes of t:dataList and make the component "notify" my backing bean of the user actions, instead of actually sort the rows?

I've managed to make the table sortable but using hand-made commandLinks around the column headers and t:updateActionListener components.. not a very good design IMO and a lot of repetitive typing in my jsp pages.

Thank you in advance for any suggestions
Cosma

Reply via email to