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

Reply via email to