开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜