incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Smith" <unobri...@gmail.com>
Subject Re: Default sort of <tr:table/>
Date Wed, 25 Oct 2006 14:20:25 GMT
Try using the setSortCriteria() method of the table.  If you have not done
this already, you will have to create a CoreTable object in your backing
bean and bind it to the component using the binding attribute of the
tr:table on the jsp.  Then after you fill the list, try setting the
setSortCriteria(List criteria).   Each element of List criteria must be of
type SortCriterion.

On 10/25/06, DI Kurt Edegger <edegger@telbiomed.at> wrote:
>
> Hi Brian,
>
> thank you for your fast response. The list is sorted already, but the
> front-end doesn't show the nice little arrow to indicate that the column
> is sorted and sortable.
> The sorting arrows (ascending/descending) will only show up after the
> first click on a table header.
>
> I'd like to have the look and feel consistent, right after the page is
> displayed.
>
> Any ideas?
>
> Regards, Kurt
>
> Brian Smith schrieb:
> > Can't you just sort your list/array when you load it?  If this is
> database
> > data, just sort it in the query.
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message