(Quick Reference)

ui:fieldErrors

Purpose

Specifies custom markup for the errors part of a ui:field rendering.

Example

<ui:field bean="${form}" name="${beastNumber}">
	<ui:fieldErrors>
		<g:if test="${form.beastNumber != 666}">
			This is the wrong number for the beast!
		</g:if>
	</ui:fieldErrors>
</ui:field>

Attributes

None. The body is used as the label content for the outer field tag.