RE: html:select and sorting

2007-01-05 Thread Bolutiwi, Olu
Thanks much appreciated -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: 04 January 2007 19:47 To: Struts Users Mailing List Subject: Re: html:select and sorting On 1/4/07, Bolutiwi, Olu <[EMAIL PROTECTED]> wrote: > > Hi all, I have the same iss

Re: html:select and sorting

2007-01-04 Thread Ranjan Kumar Baisak
Puneet Lakhina wrote: On 1/4/07, Bolutiwi, Olu <[EMAIL PROTECTED]> wrote: Hi all, I have the same issue. I am selecting a list of town names and ids from the database (sorted by town name) and adding them to a TreeMap or HashMap. TreeMap sorts by key (in this case its my ids from the databas

Re: html:select and sorting

2007-01-04 Thread Puneet Lakhina
On 1/4/07, Bolutiwi, Olu <[EMAIL PROTECTED]> wrote: Hi all, I have the same issue. I am selecting a list of town names and ids from the database (sorted by town name) and adding them to a TreeMap or HashMap. TreeMap sorts by key (in this case its my ids from the database) and HashMap messes u

RE: html:select and sorting

2007-01-04 Thread Dave Newton
From: Bolutiwi, Olu [mailto:[EMAIL PROTECTED] > I am selecting a list of town names and ids from the database (sorted > by town name) and adding them to a TreeMap or HashMap. TreeMap sorts > by key (in this case its my ids from the database) and HashMap messes > up the sort order. > > How can

RE: html:select and sorting

2007-01-04 Thread Manos Batsis
Quoting "Bolutiwi, Olu" <[EMAIL PROTECTED]>: > How can I use a collection that supports key & value, keep it sorted > and > use it in my html:select without messing up the sort order. You can make your keys comparable [1] or put your results in a collection that does not try to re-sort them. [1

RE: html:select and sorting

2007-01-04 Thread Bolutiwi, Olu
Hi all, I have the same issue. I am selecting a list of town names and ids from the database (sorted by town name) and adding them to a TreeMap or HashMap. TreeMap sorts by key (in this case its my ids from the database) and HashMap messes up the sort order. How can I use a collection that supp

Re: html:select and sorting

2007-01-04 Thread Ranjan Kumar Baisak
Dave Newton wrote: From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] Is there any way to sort all the elements while using html:select? Sure; sort the collection before you use it in html:select. Dave - To unsubscr

RE: html:select and sorting

2007-01-04 Thread Dave Newton
From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] > Is there any way to sort all the elements while using html:select? Sure; sort the collection before you use it in html:select. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED