Re: ww.radio not validating correctly (may be a bug?)
jackstraw <[email protected]> Thu, 07 Dec 2006 09:09:34 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <26023756.1165504223143.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
here is the tag-
<@ww.radio name="test" list="testMap" cssClass="radio" label="Tester" readonly="false" onchange="validate(this)"/>
so, when i say on validate, i really mean onchange. onchange calls the webwork.validate() javascript, which seems pretty straightforward. so maybe that is where it is. here is my validate function:
function validate(element) {
makeElementTouched(element);
var namespace = element.form.attributes['namespace'].nodeValue;
var actionName = element.form.attributes['name'].nodeValue;
webworkValidator.validate(element, namespace, actionName);
}
makeElementTouched is for error handling, otherwise it seems pretty straightforward.
I can tell that the value is being set incorrectly because i have a log statement in my action class setter. the log shows:
Exec[0]: validator.doPost()
I is ++++++++++++++ 1
i know its not much to go on, but its what i have.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52213&messageID=105771#105771
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]