• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 896
  • Last Modified:

Using java.util.Map with WebWork <ww:select> tags

Hi,
I've recently started using Opensymphony WebWork, and I'm having some trouble getting it to do what I want.
I have an action, with a getCountries() method, which returns a Map, whose keys are strings and whose values are "NamedItem"s. NamedItem is a class which (suprise) has a getName() method.
I want WebWork to create me a select box with the Hash's keys as the <option value="..."> and the name property as the option body.

I'm using the tag

<ww:select label="'Country'" name="'CountryID'"  list="#countries" listValue="name" />

But this doesn't work, I just get an empty select box (no options)

L'il help here people?
0
mishagale
Asked:
mishagale
  • 2
1 Solution
 
mishagaleAuthor Commented:
I've increased the points value on this question, because it's pretty urgent, and I still haven't got anywhere
0
 
mishagaleAuthor Commented:
I've solved this problem through the webwork mailing list
https://webwork.dev.java.net/servlets/ReadMsg?list=dev&msgNo=8384

Thanks anyway to all the people who tried to help :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now