In Grails Spring Security UI Register Flash Messages a question is answered on how to display error messages coming from the Spring Security UI plugin. The discussion shows, that errors can be displayed like this:
<g:hasErrors>
<g:eachError>
<li><g:message error="${it}"/></li>
</g:eachError>
</g:hasErrors>
My Problem is as follows: I dont simply want to display a list of errors, but to display the error with the input field, to which it belongs to.
Example: I dont put at least 6 characters into the input field password. So on the right of the input the error message "Please choose at least 6 characters" would be rendered.
How can I achieve this?
Greetings