Have you looked at the new sort table examples in the simple webapp? Checkout the latest source code (or nightly build.) There are some good examples there that demonstrate this.
sean On 5/3/05, Changzhou Wang <[EMAIL PROTECTED]> wrote: > Hi All: > > I am trying to combine a sortable table with a scrollable table. > However the sorting part does not work (though the sortTable example > comes with myfaces 1.0.9 works find), basically, the table is not > sorted even though the head is changed (with arrows) after the click. > > In general, how does the UI component x:commandSortHeader knows what > action to take when the user click on the column? It seems the backing > bean (in SortableList.java) provides a "public void sort(String > column)" method, but I can not figure out where and how > x:commandSortHeader or its parent x:dataTable knows to invoke this > method? The x:dataTable only specifies the sortColumn and sortAscending. > > Thanks, > czw >

