ww.radio not validating correctly (may be a bug?)
jackstraw <[email protected]> Tue, 05 Dec 2006 15:18:52 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <17828131.1165353639464.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
I have a simple, two-option radio tag in my form. The selected value of the radio group determines how the form is validated; if the user selected option 1 then certain fields need to be validated, and if option 2 is selected another group of fields needs to be validated.
My problem, the value of the radio group is always 2 after the doPost is called, unless I choose to save, then the actual value is passed down.
Here is the radio tag:
<@ww.radio id="jobType" tabindex="2" cssClass="radio" label="${radioText}" list="jobTypeMap" name="jobType" value="jobType" />
My action has the proper setters and getters; my map is simply "1", "Interval"; "2", "Daily".
When the page is loaded with existing data, the group is populated correctly. However, if "Daily" is selected and then "Interval", the setJobType method is populated with "2", everytime from that point on.
Is this a known bug, or am I missing something very obvious?
Using WebWork 2.2.2.
Thanks
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52213&messageID=105386#105386
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]