myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cosma Colanicchia" <>
Subject Re: Remote sorting with t:dataTable
Date Wed, 17 May 2006 14:23:15 GMT
Hi Julian,

in fact I dont want really to know if sorting happens on the database, I
have a pre-existent interface for my list (which supports paging, sorting,
filters, ecc) and I'm trying to build a light DataModel wrapper, so I simply
want to delegate as much work as I can to my already implemented and tested
classes :-)

Have you found any solution for sorting? At the moment, I'm focusing on
vanilla JSF and myFaces, without looking too much at Shale, facelets, ecc.


2006/5/17, Julian Ray <>:
> 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 <>
> To: MyFaces Discussion <>
> 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

View raw message