Last updated by admin 4 years ago
?? - eachError
?? Description
Loops through each error of the specified bean or model. If no arguments are specified it will go through all model attributes and check for errors. ??????????????????????????????????????????????????????????????????????? Parameters
- bean (optional) - ???????????????The name of the bean to check for errors
- model (optional) - ???????????????Map???????The name of model, an map instance, to check for errors
- field (optional) - ??????????????????????????The field within the bean or model to check for errors for
? Examples
Loop through each error in the "book" bean: "book"????????????????<g:eachError bean="${book}"> <li>${it}</li> </g:eachError>
<g:eachError bean="${book}" field="title"> <li>${it}</li> </g:eachError>
<g:eachError bean="[book1:book1,book2:book2]" field="title"> <li>${it}</li> </g:eachError>



