Hello,
 
I don't know so much about dataTable but I call the sort method explicitely
when I return the data list.
 
maybe someone more experienced can comment
 
Hope it help you

patrick

Qiang Yu <[EMAIL PROTECTED]> a écrit :
Hello all,
I am having some difficulties with t:DataTable and
t:commandSortHeader: they do not sort my data. I have a bean named
"expList" saved in the session, and I have programmed a sort method
following the MyFaces examples. But I found whenever I click the
command sort header, the "sort" function is simply not called.

My steps to uses the sortable table are:
1. define a List data member called list in my expList class/object
2. define a sort function to sort the list based on sort solumn and
ascending attribute
3. populate the expList and save it in the session;

My JSP is like the following:


value="#{expList.list}"
sortColumn="#{expList.sort}"
sortAscending="#{expList.ascending}"
preserveDataModel="true"
preserveSort="true">


immediate="false">







immediate="false">








Any problems with my understanding of t:Datatable and t:commandSortHead?
Thanks!

Qiang


Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !

Reply via email to