(Quick Reference)
renderErrors
This tag renders the top validation messages and can be used to display both client-side and server-side validation messages.
It has the following attributes:
- render=true|false: If
renderErrorsOnTop="true"
for <jqvalui:renderValidationScript />
, you need to set this to true to render validation messages.
- style: Same as the style attribute of any HTML element, allows you to specify inline styles.
Sample
Server-side validation messages:
<g:hasErrors bean="${personInstance}">
<jqvalui:renderErrors render="true" style="margin-bottom:10px">
<g:renderErrors bean="${personInstance}" as="list" />
</jqvalui:renderErrors>
</g:hasErrors>
Client-side validation messages:
<jqvalui:renderErrors render="true" style="margin-bottom:10px"/>