RE: TreeMap vs html:optionsCollection

2003-09-15 Thread Lars Bergström
e javadoc isn't quit right, right? Best regards Lasse -Original Message- From: Jason Lea Sent: må 2003-09-15 23:04 To: Struts Users Mailing List Cc: Subject: Re: TreeMap vs html:optionsCollection I hav

Re: TreeMap vs html:optionsCollection

2003-09-15 Thread Jason Lea
I haven't used maps with so I don't know if I can give you a definite answer on this. The optionsCollection tag is expecting a collection of objects that it can call .getLabel() and .getValue() on (by default but it can be changed with parameters). To get a list of objects from a map you nor

TreeMap vs html:optionsCollection

2003-09-15 Thread Lars Bergström
Dear Struts users, I am trying to get my html:optionsCollection to work with a TreeMap. I don't know if this is possible but on the Struts API page for the class OptionsCollectionTag I read the following: "The collection may be an array of objects, a Collection, an Enumeration, an Iterator, or a