Can anyone tell me if I can create links for column headers atleast....

Hello Everyone,

I came across display tag recently and we decided to use it for one
of our pages and it has worked well so far. I am running into a
small problem and would appreciate any help from all you guys.

I have implemented basic sorting, but my page needs multiple sort.
So for eg, if I have Columns A, B, C and D.  If the user clicks on
colums A, I need to sort by Col A and then Col D. If the user clicks
on Col B, I need to sort by Col B and then Col D. I hope you get the
idea.

Now, from what I have seen, unless I am mistaken, Display tag can't
do multiple sorts. Am I correct? So I decided to implement my own
special comparator, However when I removed the sort attribute from
the displaytag, the column headers are no more links.
What I need, to even implement my own comparator, is for the columns
to be links, and couple of request params to be passed, when that
header is clicked. I mean the column header only, I do not want
column data to be links. For eg when someone clicks on col A header,
I want to be able to pass some thing like
http://userPage.jsp?columnHeader=A&sortOrder=asc

Please let me know if anyone has any ideas.




------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to