留言板
Displaying Error Messages_Just View this
Rajesh Babu,修改在14 年前。
Displaying Error Messages_Just View this
Regular Member 帖子: 161 加入日期: 10-2-8 最近的帖子
Errors messages displayed previously are shown on next page load (or) by clicking on back button.
below is my code to display the error messages:
<tr><td colspan="2"><b><form:errors path="unitName" cssStyle="color:red" /></b></td></tr>
<tr><td colspan="2"><b><form:errors path="firstName" cssStyle="color:red"/></b></td></tr>
<tr><td colspan="2"><b><form:errors path="lastName" cssStyle="color:red" /></b></td></tr>
anybody have any solutions or suggestions regarding this?
below is my code to display the error messages:
<tr><td colspan="2"><b><form:errors path="unitName" cssStyle="color:red" /></b></td></tr>
<tr><td colspan="2"><b><form:errors path="firstName" cssStyle="color:red"/></b></td></tr>
<tr><td colspan="2"><b><form:errors path="lastName" cssStyle="color:red" /></b></td></tr>
anybody have any solutions or suggestions regarding this?
Juan Fernández,修改在14 年前。
RE: Displaying Error Messages_Just View this
Liferay Legend 帖子: 1261 加入日期: 08-10-2 最近的帖子
Hi Rajesh:
There's a taglib for this in Liferay.
we use it this way:
Isn't it valid for you?
Regards
Juan Fernández
There's a taglib for this in Liferay.
we use it this way:
<liferay-ui:error exception="<%= EntryTitleException.class %>" message="please-enter-a-valid-title" />
Isn't it valid for you?
Regards
Juan Fernández
Vilmos Papp,修改在3 个月前。
RE: Displaying Error Messages_Just View this
Regular Member 帖子: 131 加入日期: 09-5-4 最近的帖子
How do you know that you should display an error message? Is the validation is at server side or at client side?