[richfaces-issues] [JBoss JIRA] Created: (RF-10646) Css in composite components not found with MyFaces

Pavol Pitonak (JIRA) jira-events at lists.jboss.org
Tue Mar 1 09:58:05 EST 2011


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
         Environment: RichFaces 4.0.0-SNAPSHOT SVN r.21968
MyFaces 2.0.5-SNAPSHOT (and all older versions)
Tomcat 6.0.29
all browsers
            Reporter: Pavol Pitonak


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list