try defaultsort="<%= sortColumn %>"

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Shabada, Gnaneshwer
Sent: Tuesday, October 12, 2004 5:56 PM
To: '[EMAIL PROTECTED]'
Subject: [displaytag-user] Conditional Sorting and Exporting



hello,
Thanks for DisplayTag. I am using this to display my list of results. It
works perfect. I set the first column as default sort. And also set an
option to export the list. As required I had these set in the
<display-table> as below

<display:table name="sessionScope.searchResults" pagesize="5"
defaultsort="1" defaultorder="descending" export="true"

id="register">

Now I have added an extra column for check boxes as the first column and
this should only display when a user had admin access. I was able to do that
but since my defaultSort always is set to 1, when the user is admin, the
checkbox column is sorted by default instead of the next column. Can i make
this conditional base so that I can specify 1 or 2 based on user rights.
Same thing for "export" too. I want to display the export banner only if the
user has admin rights. How do I specify this in display:table tag.

TIA
Gnan

========================================================================
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED]
Toys "R" Us, Inc.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

This message is a PRIVATE communication.
If you are not the intended recipient, please do not read, copy,
or use it, and do not disclose it to others. Please notify the
sender of the delivery error by replying to this message, and then
delete it from your system. Thank you.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to