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
l It keeps the keys in the order in which they were inserted in the map that should keep you database ordering intact. hope it helps Cheers -Original Message- From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] Sent: 04 January 2007 15:30 To: Struts Users Mailing List Subject: html:

Re: html:select and sorting

2007-01-04 Thread Puneet Lakhina
the order in which they were inserted in the map that should keep you database ordering intact. hope it helps Cheers -Original Message- From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] Sent: 04 January 2007 15:30 To: Struts Users Mailing List Subject: html:select and sorting Hi,

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
supports key & value, keep it sorted and use it in my html:select without messing up the sort order. Cheers -Original Message- From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] Sent: 04 January 2007 15:30 To: Struts Users Mailing List Subject: html:select and sorting Hi, Is there

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

html:select and sorting

2007-01-04 Thread Ranjan Kumar Baisak
Hi, Is there any way to sort all the elements while using html:select? -R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]