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

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Wed Oct 16 02:19:36 EDT 2013


    [ https://issues.jboss.org/browse/RF-10646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12814448#comment-12814448 ] 

Jiří Štefek edited comment on RF-10646 at 10/16/13 2:19 AM:
------------------------------------------------------------

Yes, I confirm that. It is not a bug in RF.

Can be easily verified by the reproducer [RF-10646.zip|https://issues.jboss.org/secure/attachment/12365175/RF-10646.zip], which contains only Myfaces dependencies (no RF).

Warning from tomcat log:
{code}
org.apache.myfaces.renderkit.html.HtmlStylesheetRenderer encodeEnd
WARNING: Resource referenced by resourceName text2.ecss and libraryName my/css not found in call to ResourceHandler.createResource. It will be silenty ignored.
{code}

Works fine with Mojarra.
                
      was (Author: jstefek):
    Yes, I confirm that. 
Can be easily verified by the reproducer [RF-10646.zip|https://issues.jboss.org/secure/attachment/12365175/RF-10646.zip], which contains only Myfaces dependencies.

Warning from tomcat log:
{code}
org.apache.myfaces.renderkit.html.HtmlStylesheetRenderer encodeEnd
WARNING: Resource referenced by resourceName text2.ecss and libraryName my/css not found in call to ResourceHandler.createResource. It will be silenty ignored.
{code}

Works fine with Mojarra.
                  
> 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, 4.3.4
>         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: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list