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

Posted on 2005-04-26
Last Modified: 2012-08-14
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?
Question by:mishagale
    LVL 2

    Author Comment

    I've increased the points value on this question, because it's pretty urgent, and I still haven't got anywhere
    LVL 2

    Accepted Solution

    I've solved this problem through the webwork mailing list

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

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    The viewer will learn how to dynamically set the form action using jQuery.
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now