Sorry if this has been asked before - the list archive is down right now so I can't search.

I need to be able to specify the default sort column by name rather than by index. It seems very limiting that only column number is supported, since that makes it difficult to have the default sort column be dynamic or specified by the user.
Is there some way to do it that I am missing? Or are there any tricks/techniques for being table to have a request parameter or request/session data control what is used for the value of the defaultsort attribute? the only thing I could come up with is defining (via scriptlet code) a Map of column name to column index and have more code in the JSP that uses a request param to look up the appropriate index based on an incoming name.
Needless to say, that is quite a hack and a lot of code to do something that it seems the tag already has the information to do.

Any ideas?

Thanks in advance,
Eric

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to