Re: html:optioncollection

2005-09-19 Thread Praveen Kumar
Hi
 
I think your question's answer will be   
use these tags 
 
refer  tag lib
 
Regards
Kumar

Marc Ende <[EMAIL PROTECTED]> wrote:
Hi,

I'm using the only with collections. Now I need
to order the contents. It's possible to assign anything else
(orderable/sortable) than collections
to this tag? 

marc

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: html:optioncollection

2005-09-19 Thread Wendy Smoak

From: "Marc Ende" <[EMAIL PROTECTED]>


I'm using the  only with collections. Now I
need
to order the contents. It's possible to assign anything else
(orderable/sortable) than collections to this tag?


What are you using now, and what do you need it to do?

This works with a TreeMap to keep things in alphabetical order:

 


I'm also using LRUMap from Commons Collections to display a list with a
fixed size from least-to-most recently used, though those are just links,
not .

There's probably a collection that will do what you want, either in the JDK
or in Commons.  And if it's a List, you can write a Comparator and call
Collections.sort(List,Comparator) before you place it in scope for the
 tag.

--
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:optioncollection

2005-09-19 Thread Marc Ende
Hi,
 
I'm using the  only with collections. Now I need
to order the contents. It's possible to assign anything else
(orderable/sortable) than collections
to this tag? 
 
marc