Re: FIFO ordering of input:select tag options

2002-04-14 Thread Subbarayan Ramanathan
itions? > > 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 >

Re: FIFO ordering of input:select tag options

2002-04-10 Thread David M. Karr
> "Rajiv" == Rajiv Kewalramani <[EMAIL PROTECTED]> writes: Rajiv> I have a need to impose First In First Out ordering of select options. I Rajiv> ended up modifying the select tag, replacing the Map representing the Rajiv> options with a pair of Collections. Rajiv> Is ther

RE: FIFO ordering of input:select tag options

2002-04-10 Thread Rajiv Kewalramani
O 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 wil

RE: FIFO ordering of input:select tag options

2002-04-10 Thread EBaron
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 th

FIFO ordering of input:select tag options

2002-04-10 Thread Rajiv Kewalramani
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 tag? -- To unsubscribe, e-mail:

Re: input:select

2001-07-30 Thread Shawn Bayern
On Mon, 30 Jul 2001, Florian Brunner wrote: > I'm currently using the jakarta taglib input in my JSP. With > input:select you have to specify the options as a Map. But I want the > list to display the values in the same order I added them to the Map! > How can I do that? Can I

input:select

2001-07-30 Thread Florian Brunner
Hi, I'm currently using the jakarta taglib input in my JSP. With input:select you have to specify the options as a Map. But I want the list to display the values in the same order I added them to the Map! How can I do that? Can I use TreeMap? But then how to configure the Comparator? Thank