Marco <[EMAIL PROTECTED]> wrote on 01/10/2006 07:41:34 AM:
> Hi Everybody;
>
> Thanks a lot for last replies :)
>
> I need to know the steps to make a dataTable sortable ?
>
> Thanks a lot
>
As Ronald wrote, look at the examples first - they are pretty good. Also i quote below what Simon wrote when I had trouble seeing what was needed:
The "sortColumn" attribute should point to a backing bean property that
is of type String. That property gets set (ie its setter gets called)
with the columnName value of whatever column the user chose to sort on.
The "sortAscending" attribute should point to a backing bean property
that is of type boolean. That property gets set to true/false when the
user clicks repeatedly on the same column header (ie sorts
asc/desc/asc/desc).
Your worklist.assignments method (ie the one referred to by the table's
"value" attribute) is then required to look at the backing bean's
properties that are the target of sortColumn and sortAscending and
return its list in the order specified by those (String, boolean)
properties.
If you are still having trouble, search this archive. About a week back there was a long thread involving just this problem titled "Getting sorting to work in data table -- header click does not call sort method" and "Data Table Sorting still not working". There is code as well as discussion there you may find useful.
Regards,
Geeta
- Re: Sorting dataTable gramani
- Re: Sorting dataTable Marco
- Re: Sorting dataTable gramani
- Re: Sorting dataTable Marco
- Re: Sorting dataTable gramani
- Re: Sorting dataTable Marco
- Re: Sorting dataTable gramani
- Re: Sorting dataTable Marco
- Re: Sorting dataTable Marco

