const mixinafFormBean::ErrorSkin


Implement to define a renderer for form errors.

To use your skin, define it as a service of type ErrorSkin:

static Void defineServices(ServiceDefinitions defs) {
    defs.add(ErrorSkin#, MyErrorSkin#)

The default error skin renders the following HTML:

<div class='formBean-errors'>
    <div class='formBean-banner'>#BANNER</div>
        <li> Error 1 </li>
        <li> Error 2 </li>

To change the banner message, set a message with the key errors.<>.banner or errors.banner.



abstract Str render(FormBean formBean)

Renders form bean errors to HTML.