In JSF 1.2 I would like to have the HTML of <h:messages>
like the following one
<ul id="messages" class="warnmessage">
<li>Unable to link ...</li>
<li>Unable to link ..</li>
</ul>
OR
<ul id="messages" class="errorMessage">
<li>Unable to link ...</li>
<li>Unable to link ..</li>
</ul>
depending on what severity of the message is. What is blocking me is that <h:messages>
cannot render this html with different class assignment on <ul>
level, it can be only assigned on <li>
level. I would like to know if it's possibile to use this mechanism and do something like :
<h:messages styleClass="errormessage" id="errormessages" rendered="#{not empty Bean.errorMessages}"/>
<h:messages styleClass="warnmessage" id="warnmessages" rendered="#{not empty Bean.warnMessages}"/>