]
Jiří Štefek edited comment on RF-10646 at 10/14/13 7:28 AM:
------------------------------------------------------------
Attached another reproducer which contains commented dependencies of RF, updated versions
of MyFaces and RF and contains two outputs each using different style from stylesheet
imports (with and without the slash in the 'library').
was (Author: jstefek):
attached actual reproducer with commented RF dependencies
Css in composite components not found with MyFaces
--------------------------------------------------
Key: RF-10646
URL:
https://issues.jboss.org/browse/RF-10646
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: base functionality
Affects Versions: 4.0.0.CR1, 4.2.2.Final
Environment: RichFaces 4.0.0-SNAPSHOT SVN r.21968
MyFaces 2.0.5-SNAPSHOT (and all older versions)
Tomcat 6.0.29
all browsers
RichFaces 4.2.2.Final
Metamer 4.2.2.Final
Apache MyFaces JSF-2.1 Core Impl 2.1.5
Apache Tomcat 7.0.26
all browsers
Reporter: Pavol Pitonak
Assignee: Brian Leathem
Attachments: cc.zip, compositecomponent.war, RF-10646.zip
MyFaces cannot load the stylesheet for the following page with a composite component (the
text is black instead of fuchsia). When RichFaces is removed from project, everything
works fine (see attached project for Tomcat).
Mar 1, 2011 3:49:48 PM org.richfaces.resource.ResourceFactoryImpl logResourceProblem
WARNING: Resource text.ecss?db=eAHL6rC8BQAEkAIG&ln=my%252fcss was not found
{code:title=index.xhtml|borderStyle=solid}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:my="http://java.sun.com/jsf/composite/my" >
<h:head/>
<h:body>
<my:colorText text="Hello World!"/>
</h:body>
</html>
{code}
{code:title=resources/my/colorText.xhtml|borderStyle=solid}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite" >
<h:body>
<composite:interface>
<composite:attribute name="text"
type="java.lang.String" required="true" />
</composite:interface>
<composite:implementation>
<h:outputStylesheet library="my/css"
name="text.ecss"/>
<h:outputText id="text" value="#{cc.attrs.text}"
styleClass="color-text" />
<br/><br/>
</composite:implementation>
</h:body>
</html>
{code}
{code:title=resources/my/css/text.ecss|borderStyle=solid}
.color-text {
color: fuchsia;
text-weight: bold;
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: