Why a List containing a HashMap? Why not just a HashMap? The tags are designed to know how to deal with a Map (in fact, if you look at SelectTest in CVS, there is a test for using Maps).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bryan White Sent: Thursday, October 16, 2003 4:46 PM To: WebWork Subject: [OS-webwork] Strange select tag behavior Hello all, I'm using the ww:select tag in a Velocity template like so: #tag( Select "label=theLabel" "name=theName" "list=theList" ) Where "theList" is a List containing a HashMap (I also tried using a HashMap by itself - same result). The HashMap has been populated like this: map.put("label a", "value a"); map.put("label b", "value b"); So I'm hoping that the HashMap's key will be used as the select option's label, and that the HashMap's value will be used as the select option's value. What I end up with though is this: <option value="label b">label b</option> <option value="label a">label a</option> I've also added to the Select tag "listKey=key" "listValue=value" attributes, with no luck. Any clues as to what I'm doing wrong? Thanks! Bryan White ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork