Two little notes:

1) immediate="false" should be the default setting for t:commandSortHeader.

2) Is it needed to manually invert sort ordering? Having specified
sortAscending="#{...}" in your dataTable, it should be done
automatically.. (at least it works for me)

About the big problem.. you may try to understand how it decides which
column name to pass inverting columns order, changing the value of
both the columnName attributes, ???... (use your fantasy :)

Cosma

2006/5/18, Airstorm <[EMAIL PROTECTED]>:

It calls getSort() about 3 times, setSort(String abc) once, getUsers() once
and getUsers() calls doSort()

The thing is, it always calls setSort with the same string. If sortColumn
was initialized to "username" then it only ever calls setSort with
"username" as parameter... even when I click on the commandSortheader for
the password column.

I do agree with one thing... it certainly looks like it should work. Right
now, it doesn't matter if any of the other methods on that bean work
correctly or not. If it never calls setSort with a good column name, then
the other methods implemented on that bean have no chance of functioning
properly.
--
View this message in context: 
http://www.nabble.com/Sortable-DataTable-in-Tomahawk...-t1643510.html#a4452301
Sent from the MyFaces - Users forum at Nabble.com.


Reply via email to