You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ingo Düppe <ma...@dueppe.com> on 2006/09/09 09:55:54 UTC

h:messages and style classes

Hi,

I wonder why myfaces renders the h:messages different then the jsf ri.
Why doesn't myfaces set the class attribute of the li tag to class="error".
If so it would be possible to use the css list-style-image for different 
severities.

<h:messages id="messages" errorClass="error" infoClass="info" 
fatalClass="fatal" warnClass="warn" globalOnly="true" showSummary="true" 
showDetail="false"/>

<div class="messages">
    <ul id="messages">
       <li>
          <span class="error"> some error text </span>
       </li>
   </ul>
</div>



Regards
Ingo

Re: h:messages and style classes

Posted by Mike Kienenberger <mk...@gmail.com>.
If you're seeing a difference between how JSF 1.1 RI h:messages and
MyFaces h:messages work, then it's a bug.

Please open a JIRA issue and attach an example.   It'd be helpful if
you also posted the generated html for both the RI and MyFaces.

On 9/9/06, Ingo Düppe <ma...@dueppe.com> wrote:
> Hi,
>
> I wonder why myfaces renders the h:messages different then the jsf ri.
> Why doesn't myfaces set the class attribute of the li tag to class="error".
> If so it would be possible to use the css list-style-image for different
> severities.
>
> <h:messages id="messages" errorClass="error" infoClass="info"
> fatalClass="fatal" warnClass="warn" globalOnly="true" showSummary="true"
> showDetail="false"/>
>
> <div class="messages">
>     <ul id="messages">
>        <li>
>           <span class="error"> some error text </span>
>        </li>
>    </ul>
> </div>
>
>
>
> Regards
> Ingo
>