template.css_xhtml.controlheader-core.ftl Maven / Gradle / Ivy
<#--
Only show message if errors are available.
This will be done if ActionSupport is used.
-->
<#assign hasFieldErrors = parameters.name?exists && fieldErrors?exists && fieldErrors[parameters.name]?exists/>
<#if parameters.id?exists>id="wwgrp_${parameters.id}"<#rt/>#if> class="wwgrp">
<#if hasFieldErrors>
<#if parameters.id?exists>id="wwerr_${parameters.id}"<#rt/>#if> class="wwerr">
<#list fieldErrors[parameters.name] as error>
<#if parameters.id?exists>
errorFor="${parameters.id}"<#rt/>
#if>
class="errorMessage">
${error?html}