No idea, but action errors have a wider scope than field errors
Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/12/3 charles <[email protected]>: > Hello guys. > > Under the validate parameter of s:form tag set to true condition, > when the form is trying to be submitted,first the field errors and error > labels of the form are cleared,but the action errors (rendered by > <s:actionerror /> tag) are not,wherever I think they should be cleared too. > Is that a struts2 bug or the behavior is designed on purpose? > > After a glimpse of the source,the problem seems in the > clearErrorMessagesCSS() method in /struts/css_xhtml/validation.js,which > indeed clears out only the rows with an "errorFor" attribute.But the HTML > rendered by <s:actionerror /> tag as below does not have such an attributes. > > <ul class="errorMessage" id="xxx> > <li><span>an Action error messsage here</span></li> > </ul> > > Best Regards > Charles > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
