[
https://jira.jboss.org/jira/browse/JBIDE-3287?page=com.atlassian.jira.plu...
]
Denis Maliarevich commented on JBIDE-3287:
------------------------------------------
Rich messages' f:facet are rendered inside div element, and then it's put into
marker's span element. It's wrong position of the div inside span. Thus some css
styles can be applied incorrectly (background-color in particular). The same behaviour
with "table" and "list" layout.
<f:facet name="fatalMarker">
<h:outputText value="Fatal" />
</f:facet>
renders to
<TD CLASS="fatalClass">
<SPAN CLASS="rich-messages-marker markerFatal">
<DIV>
<SPAN CLASS="vpe-text">
Fatal
</SPAN>
</DIV>
</SPAN>
<SPAN CLASS="rich-messages-label fatalLabel">
Fatal message
</SPAN>
</TD>
The only difficulty is that facet creates its div container. In the rest template encodes
exactly the same as rich:messages.
rich:messages bugs
------------------
Key: JBIDE-3287
URL:
https://jira.jboss.org/jira/browse/JBIDE-3287
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor Templates
Affects Versions: 3.0.0.beta1
Reporter: Yura Zhishko
Assignee: Denis Maliarevich
Fix For: 3.1.0
Attachments: screenshot-1.jpg, screenshot-2.jpg, xh.zip
1) Incorrect behavior of labelClass attribute (screenshot-1):
STEP 1. Use attached file
STEP 2. Find rich:messages component
STEP 3. Set labelClass attribute with the name value of non-existing class
RESULT: Styles of *Class attributes are not overriding by styles from *LableClass
attributes, but they have to do it
2) Text-align isn't applyed correctly (screenshot-1), because we use representation
of the component as a table with two collumns (for markers, and for labels), something
like that:
<TABLE>
<TR>
<TD>
<DIV>
<SPAN>
Warning
</SPAN>
</DIV>
</TD>
<TD>
Warning message
</TD>
</TR>
......
</TABLE>
But mozilla browser build only one collumn, something like that:
<TABLE>
<TR>
<TD>
<SPAN>Warning</SPAN>
<SPAN>Warning message</SPAN>
</TD>
<TR>
......
</TABLE>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira