Skip to content

Instantly share code, notes, and snippets.

@hartsock
Created September 9, 2010 20:54
Show Gist options
  • Save hartsock/572553 to your computer and use it in GitHub Desktop.
Save hartsock/572553 to your computer and use it in GitHub Desktop.
Extracts the error codes on a page and prints them so you can use them in your messages.properties
<g:each var="error" in="${myInstance.errors}">
<g:each var="codes" in="${error?.fieldErrors?.codes}">
<g:each var="code" in="${codes}">
<div>${code}</div>
</g:each>
</g:each>
</g:each>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment