RE: Data Table Sorting still not working

2006-01-01 Thread Tom Butler
Thanks Geeta this was very helpful to me in getting my datatable column sort functionality to work. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 11:41 PM To: MyFaces Discussion Subject: RE: Data Table Sorting still not working Mike

RE: Data Table Sorting still not working

2006-01-01 Thread Tom Butler
; } }; Collections.sort(arrlist_providers, comparator); } / -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 11:20 PM To: MyFaces Discussion Subject: Re: Data Table Sorting still not working Hi Tom/Mike

RE: Data Table Sorting still not working

2006-01-01 Thread Simon Kitching
; } }; Collections.sort(arrlist_providers, comparator); } / -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 11:20 PM To: MyFaces Discussion Subject: Re: Data Table Sorting still not working Hi Tom/Mike

RE: Data Table Sorting still not working

2006-01-01 Thread Tom Butler
if I do this. thx -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Sunday, January 01, 2006 6:43 PM To: MyFaces Discussion Subject: RE: Data Table Sorting still not working Hi Tom, I presume we're talking about the public void sort(String col) method defined

Re: Data Table Sorting still not working

2005-12-31 Thread Mike
: Friday, December 30, 2005 6:03 PM To: MyFaces Discussion Subject: Re: Data Table Sorting still not working Hi Tom, The way I understand it is that the sort() method gets called automatically when you define your data table with an entry like this: sortColumn="#{list

Re: Data Table Sorting still not working

2005-12-31 Thread Mike
Hi Simon, This is great info, thanks. You should write a "how to" book on MyFaces (we could use it! s). I seem to have things set upĀ  the way you're describing, so I'm wondering if my faces-config is missing some listener or something since clicking the header doesn't actually fire the

RE: Data Table Sorting still not working

2005-12-30 Thread Tom Butler
Mike are you calling the sort method from within your getUpdates getter method in your bean (Im assuming Updates is your arraylist/datamodel since you have value =#{TD.updates} ? Note Im not sure if this is needed or not you are ahead of where I am with regards to getting this working

Re: Data Table Sorting still not working

2005-12-30 Thread Mike
Hi Tom, The way I understand it is that the sort() method gets called automatically when you define your data table with an entry like this: sortColumn="#{list.sort}" (you have to have, in this case, a sort property with a getter/setter in whatever class the list managed bean points to)

RE: Data Table Sorting still not working

2005-12-30 Thread Tom Butler
. From: Mike [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 6:03 PM To: MyFaces Discussion Subject: Re: Data Table Sorting still not working Hi Tom, The way I understand it is that the sort() method gets called automatically when you define your data table with an entry like

Re: Data Table Sorting still not working

2005-12-30 Thread Simon Kitching
Hi Tom/Mike, The sortColumn attribute on the t:dataTable tag points to a javabean *property* of type String. eg: t:dataTable value=#{mybean.dataToDisplay} sortColumn=#{mybean.sortByColumn} .../ where the managed bean declaration maps name mybean to an instance of MyBean which has:

RE: Data Table Sorting still not working

2005-12-30 Thread gramani
Mike, Tom:FirstMike, maybe it was a typo, but you said you had "Persons". Hope you meant "persons" (lower case).Here's a complete example which works fine for me. I'll try to explain what i understand what needs to be done. But first the code:My backing bean (or the bean that's "behind" the