at the moment I've got a construct like this:
<div class="line">
<label>Label</label>
<h:inputText id="text-id1" required="true" ... />
</div>
Now when a validation exception is thrown I show them in a
<h:messages ... />
Is it possible to set the error clas开发者_JS百科s to my wrapping div?
<div class="#{facesContext.maximumSeverity == null ? 'line' : 'errorLine'}">
I know this isn't exactly what you asked, but i thought i should include it for completeness.
<h:message errorClass="errorline" infoClass="line"/>
精彩评论