--- On Fri, 9/12/08, Kawczynski, David wrote: > I'm using struts 2.1.2, and the xhtml theme to render a > form. When client-side validaiton fails, an error message > is placed above the bad input fields. > Subsequent submission attempts result in new error messages > being ADDED to the UI, but the old messages are never removed.
The label code is made of fairly brittle DOM manipulation; is there anything in your form that might mess with the DOM (IIRC there was an issue with hidden fields at one point; not sure if that was resolved or not)? The code that does all that lives in validation.js, although it's not served from the template directory. If you want to customize yours you need to change the form-validate.ftl template to use the location of your copy of validation.js. (I'm writing a small blurb about this in case my client-side validation changes don't meet with strenuous objections, but the technique is valid even if it doesn't make it in to the mainline release; I'll follow up when that's done.) Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]