Struts select lists sorted by "value"
Gene <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm needing to get my select lists sorted by the option instead of the option value. No matter what order I create the map (or sorted map), it gets rendered sorted by value attribute. I had this fixed at one time, dug into the keel-client code, and I think I replaced one of the ArrayList types to a SortedArrayList. Something to that nature, it worked, but after getting a refresh from cvs, its gone. I don't mind fixing again and checking in, but I'm afraid of the cast exceptions it may cause( it caused me one or two i think ). Anybody have a better solution? Suggestion? it would be nice if the html:optionsCollection or html:select had an attribute to set to sort by. right now, searching for javascript to sort the array for a quick fix. TIA gene http://keelframework.org/documentation.shtml Keelgroup mailing list [email protected] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com