[
https://issues.apache.org/jira/browse/MYFACES-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713985#action_12713985
]
Frank-Michael Jaeschke commented on MYFACES-2139:
-------------------------------------------------
I think the fix is not complete yet.
Rendering styleClass and style attributes to the component is missing.
According to sun jsf 1.1 tld doc
(http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/index.html),
for example we have
errorClass - CSS style class to apply to any message with a severity class of
"ERROR"
fatalClass - CSS style class to apply to any message with a severity class of
"FATAL" and so on.
A single message is rendered to
<li class="errorClass">message</li>
this is perfect now.
But tld contains also
styleClass - Space-separated list of CSS style class(es) to be applied when
this element is rendered. This value must be passed through as the "class"
attribute on generated markup.
So I would assume
<h:messages styleClass="styleClass" errorClass="errorClass"/>
would be rendered to
<ul class="styleClass">
<li class="errorClass">message</li>
</ul>
> h:messages don't use styleClass attribute when rendering
> --------------------------------------------------------
>
> Key: MYFACES-2139
> URL: https://issues.apache.org/jira/browse/MYFACES-2139
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 1.1.6, 1.2.6
> Reporter: Frank-Michael Jaeschke
> Assignee: Leonardo Uribe
> Fix For: 1.1.7-SNAPSHOT, 1.2.7-SNAPSHOT
>
> Attachments: HtmlRendererBase.patch
>
>
> MyFaces breaks compatibility with Sun RI as the styleClass attribute is not
> rendered for h:messages.
> The styleClass attribute should be applied to the <ul> element (or the
> <table> element if in table layout).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.