Created
September 9, 2010 20:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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