Re: ww.radio not validating correctly (may be a bug?)

jackstraw <[email protected]> Tue, 05 Dec 2006 17:09:53 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <22024833.1165360224489.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
okay, as a sanity check i simply added this radio group to a form:

<@ww.radio name="test" list="testMap" cssClass="radio" label="Tester" readonly="false" onchange="validate(this)"/>

here are the properties in my action class:

public Map<Integer, String> getTestMap() {
        Map<Integer, String> map = new HashMap<Integer, String>();
        map.put(1, "Test1");
        map.put(2, "Test2");
        return map;
    }
    
    public Integer getTest() {
        return 1;
    }
    
    public void setTest(Integer i) {
        log.debug("Integer is now --- " + i);
    }

Everytime I change the selection, it sets the property to 1, it does not matter what is selected.

Can someone please explain to me how this can happen?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52213&messageID=105411#105411

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]