开发者

A <form:errors> block that only shows non-field errors?

开发者 https://www.devze.com 2023-03-23 08:02 出处:网络
Is it possible to configure a <form:errors/> element that only shows non field errors? I\'ve tried the following, but of course it lists all errors both field and non-field.

Is it possible to configure a <form:errors/> element that only shows non field errors?

I've tried the following, but of course it lists all errors both field and non-field.

<resource:hasBindErrors name="dualEntryForm">
    <div class="errorText">Please correct the following errors:</div&开发者_如何学Gogt;
    <div class="errorText"><form:errors path="*" cssClass="errorBox" /></div>
</resource:hasBindErrors>

Is there a path expression that doesn't show the field errors?


Have you tried omitting form:errors path attribute at all?

<resource:hasBindErrors name="dualEntryForm">
    <div class="errorText">Please correct the following errors:</div>
    <div class="errorText"><form:errors cssClass="errorBox" /></div>
</resource:hasBindErrors>
0

精彩评论

暂无评论...
验证码 换一张
取 消