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
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:
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,
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
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
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
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
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
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]
9 matches
Mail list logo