[richfaces-issues] [JBoss JIRA] (RF-13758) RF 4.5 with MyFaces, CSS not loaded

Michal Petrov (JIRA) issues at jboss.org
Mon Aug 11 12:28:29 EDT 2014


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

Michal Petrov commented on RF-13758:
------------------------------------

The major issue is that resources are being served as {{URLResource}} instead of {{CompiledCSSResource}}, which I assume is the proper one for css/ecss files. (CompiledCSSResource is created if the resource isn't found by the mapping factory which is why I deleted that line).

With URLResource libraryName and resourceName are both null. Mojarra doesn't mind but MyFaces will mark "null" as a rendered resource and so no URLResource will be rendered after the first one. On top of that there is a bug in MyFaces where scripts are being entered into the stylesheet map (which shouldn't matter, except when the resourceName is null), so that makes all scripts render, but no stylesheets.

I guess it will work with just URLResources but currently those are marked as being rendered right after they're created - based on a resourceKey, so it doesn't affect the null values. I'll check if that can be changed.

> RF 4.5 with MyFaces, CSS not loaded
> -----------------------------------
>
>                 Key: RF-13758
>                 URL: https://issues.jboss.org/browse/RF-13758
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.5.0.Alpha3
>            Reporter: Matej Novotny
>            Assignee: Michal Petrov
>            Priority: Critical
>              Labels: myfaces, needs-qe
>             Fix For: 4.5.0.Beta1
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> When you use MyFaces as JSF implementation, RF fail to get CSS files hence the components are displayed as plain text.
> I tried this (among others) with simpleapp which I modified by adding a simple rich:panel. With Mojarra the css for panel was received and panel was displayed correctly. Then I modified pom.xml to use MyFaces. The app can be deployed but the panel is just a plain text and page contains no css for styling.
> This can be reproduced with Metamer/simpleapp/showcase.
> Please see steps to reproduce for reproducers with Metamer and simpleapp.
> Showcase reproducer is more complicated due to RF-13757.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the richfaces-issues mailing list