DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12470>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12470 Cancel does not work correctly when using dynamic validation Summary: Cancel does not work correctly when using dynamic validation Product: Struts Version: 1.1 Beta 2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Validator Framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The problem is dynamic validation occurs even if the user hits the cancel button. The registration.jsp in the Struts Example is a good example. The JavascriptValidatorTag generates a bCancel var in the dynamic case to allow bypassing the validation processing when the user hits the cancel button, but the bCancel is never set to true. I am not familar enough with Javascript to determine the intended solution. I modified my version JavascriptValidatorTag to generate a cancel function that sets the bCancel to true. sb.append("<!-- Begin \n"); sb.append("\n var bCancel = false; \n\n"); // add a cancel function that can be used to set bCancel to true // when the cancel button is selected sb.append(" function cancel" + name + "()\n"); sb.append(" {\n"); sb.append(" bCancel = true;\n"); sb.append(" }\n"); I then modified my cancel tag in the registration.jsp to add the onclick attribute. For example <html:cancel onclick="cancelRegistrationForm();"> This solution seems to be a temporary solution. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>