I also tried that solution and it worked for me. But declaring the defaultsort 
in the table tag is not working...

/Simon


-----Ursprungligt meddelande-----
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Savoy, Melinda
Skickat: den 18 februari 2008 15:34
Till: displaytag-user@lists.sourceforge.net
Ämne: Re: [displaytag-user] [displaytag-OpenDiscussion]PleaseHELP-question on 
SORTING

David,

I got it.  

What I did, still NOT adding the defaultsort or defaultorder to my 
display:table tag, I added the defaultorder="descending" to the display:column 
tag.

That is what did it.

THANK YOU SO VERY MUCH!!

Your time is very much appreciated.

Regards.  

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Pilato
Sent: Monday, February 18, 2008 8:28 AM
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] [displaytag-OpenDiscussion]PleaseHELP-question 
on SORTING

Here is part of my code that works properly:
<display:table id="version_aladin" name="evolutions_aladin" sort="list"
requestURI="/accueil/VersionAction.action" class="dataTable"
        
decorator="fr.gouv.finances.douane.delta.front.accueil.decorator.ListeEvolut
ionsWrapper" 
        defaultsort="1" defaultorder="descending" export="true">
        <display:column property="version" sortable="true" title="Version"
/>
        <display:column property="icon" sortable="true" title="Type"
media="html"/>
        <display:column property="type" sortable="true" title="Type"
media="excel pdf csv xml"/>
        <display:column property="audience" sortable="true" title="Public visé" 
/>
        <display:column property="description" sortable="true"
title="Description" class="l" />
</display:table>

You must specify that the column is sortable: sortable="true"
And tell which column you want to sort by default: defaultsort="1"
And then you cans use defaultorder="descending"

David.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) 
Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user




The information contained in this message and any attachments is intended only 
for the use of the individual or entity to which it is addressed, and may 
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from 
disclosure under applicable law.  If you are not the intended recipient, you 
are prohibited from copying, distributing, or using the information.  Please 
contact the sender immediately by return e-mail and delete the original message 
from your system.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to