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

Michal Petrov (JIRA) issues at jboss.org
Tue Aug 12 06:58:29 EDT 2014


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

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

The rendering in MyFaces goes like this:
# create resource (libraryName + resourceName)
#* ResourceFactoryImpl marks resource as rendered (libraryName + resourceName)
# check if resource is rendered (resource.libraryName + resource.resourceName)
# if not mark as rendered both:
#* libraryName + resourceName
#* and resource.libraryName + resource.resourceName
# render

So step 3 will mark "null" as rendered and then all URLResources will fail the check at step 2. (For reference Mojarra does the checking and marking first, then it creates the resource).

I've added custom values to URLResource, but I wonder if we need to mark the resource as rendered when the renderers do it too.

> 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