(Quick Reference)

fieldError

Purpose

Renders an error message for the given bean and field.

Examples

<g:fieldError bean="${book}" field="title" />

Description

Attributes

  • bean (required) - The bean to check for errors

  • field (required) - The field of the bean or model reference to check