You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by wo...@pta.de on 2008/01/28 09:51:52 UTC
[Trinidad] display sort state of a pre-sorted table
Hi,
Is there a way to setup the arrow symbols shown when a user sorts a table's
column
before any user interaction i.e. to show an initial sorting state e.g. a
descending sort order
symbol on a column when the table is sorted descendingly according to that
column?
Thanks,Wolfgang.
PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschäftsführer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer
**********************************************************************
http://www.pta.de
Mit 1544 Erfahrungsberichten aus 39 Jahren erfolgreicher Projektarbeit!
**********************************************************************
Re: [Trinidad] display sort state of a pre-sorted table
Posted by Stephen Friedrich <tr...@eekboom.com>.
It's so frustrating when all that google turns up are unanswered forum
posts...
Short answer: Programmatically set the sort criteria on the table model.
For example in the getter that returns the model:
SortableModel model = new SortableModel(queuedTags);
List<SortCriterion> sortCriteria = new ArrayList<SortCriterion>();
sortCriteria.add(new SortCriterion("part.partSet.partSetCreated", false));
model.setSortCriteria(sortCriteria);
return model;
wolfgang.toepfer@pta.de wrote:
>
>
>
> Hi,
>
> Is there a way to setup the arrow symbols shown when a user sorts a table's
> column
> before any user interaction i.e. to show an initial sorting state e.g. a
> descending sort order
> symbol on a column when the table is sorted descendingly according to that
> column?
>
> Thanks,Wolfgang.
>
> PTA Programmier-Technische Arbeiten GmbH
> Seckenheimer Str. 65-67, 68165 Mannheim
> Amtsgericht Mannheim, HRB 1139
> USt-IdNr.: DE 143 839 368
> Geschäftsführer:
> Dipl.-Ing. Peter Fischer
> Dr. Harald W. Busch
> Dipl.-Kfm. Knut Fischer
>
> **********************************************************************
> http://www.pta.de
> Mit 1544 Erfahrungsberichten aus 39 Jahren erfolgreicher Projektarbeit!
> **********************************************************************
>