You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Changzhou Wang <ch...@gmail.com> on 2005/05/04 03:15:05 UTC
sort table (extension)
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
Re: sort table (extension)
Posted by Sean Schofield <se...@gmail.com>.
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 <ch...@gmail.com> 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
>