The LinkedHashMap would do the trick! Thanks. I did think about the custom comparator class - the problem I had with using a custom Comparator for FIFO is that it requires a modification to the tag implementation. There is a need to label each key when inserting into the Map. The select tag uses the Maps's key as the option's display value. Consequently, one would need to parse out the label in the tag implementation.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:07 PM To: [EMAIL PROTECTED] Subject: RE: FIFO ordering of input:select tag options While it doesn't preserve FIFO, a TreeMap with a custom Comparator has been useful to me. Maybe you could modify the Comparator to meet your conditions? Also, JDK1.4 provides the LinkedHashMap class which does what you need, if you are willing to use 1.4. -----Original Message----- From: Rajiv Kewalramani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 1:54 PM To: Tag Libraries Users List Subject: FIFO ordering of input:select tag options I have a need to impose First In First Out ordering of select options. I ended up modifying the select tag, replacing the Map representing the options with a pair of Collections. Is there an easier/better way to do this using the existing <input:select> tag? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ********************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ********************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
