Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13758

RF 4.5 with MyFaces, CSS not loaded

    Details

    • Sprint:
      4.5.0.Beta1 - Bug Fix Sprint, 4.5.0.Beta1 - Upgrade Sprint
    • Steps to Reproduce:
      Hide

      Reproducer with Metamer

      • This one is actually easiest
      • Go to richfaces-qa-metamer and run build.sh
        • This will among other create a metamer-tomcat7-myfaces.war in /target
      • Start Tomcat and deploy above mentioned war
      • Visit any Metamer page to see that the components are not displayed and css files not present
        • even the main page will do the trick - there should be a panel

      Reproducer with simpleapp:

      • Generate archetype for 4.5.0.Alpha3
      • To index.html add a rich:panel, I copied one from showcase

        <rich:panel header="Panel with default Look-n-feel">
                            RichFaces is a component library for JSF and an advanced framework for
                            easily integrating AJAX capabilities into business applications.
                            <ul>
                                <li>100+ AJAX enabled components in two libraries</li>
                                <li>a4j: page centric AJAX controls</li>
                                <li>rich: self contained, ready to use components</li>
                                <li>Whole set of JSF benefits while working with AJAX</li>
                                <li>Skinnability mechanism</li>
                                <li>Component Development Kit (CDK)</li>
                                <li>Dynamic resources handling</li>
                                <li>Testing facilities for components, actions, listeners, and pages</li>
                                <li>Broad cross-browser support</li>
                                <li>Large and active community</li>
                            </ul>
                        </rich:panel>
        

      • Modify pom.xml to use MyFaces
        • Delete all javax.faces dependencies
        • Add myfaces dependencies
        • Switch RF version to SNAPSHOT as there was a commit resolving problem with ajax requests when using MyFaces
      • Build application with mvn clean package
      • Deploy to Tomcat and go to main page
        • Rich Panel is not displayed correctly and there is no packed.css resource loaded on page (see browser console)
      Show
      Reproducer with Metamer This one is actually easiest Go to richfaces-qa-metamer and run build.sh This will among other create a metamer-tomcat7-myfaces.war in /target Start Tomcat and deploy above mentioned war Visit any Metamer page to see that the components are not displayed and css files not present even the main page will do the trick - there should be a panel Reproducer with simpleapp: Generate archetype for 4.5.0.Alpha3 To index.html add a rich:panel, I copied one from showcase <rich:panel header="Panel with default Look-n-feel"> RichFaces is a component library for JSF and an advanced framework for easily integrating AJAX capabilities into business applications. <ul> <li>100+ AJAX enabled components in two libraries</li> <li>a4j: page centric AJAX controls</li> <li>rich: self contained, ready to use components</li> <li>Whole set of JSF benefits while working with AJAX</li> <li>Skinnability mechanism</li> <li>Component Development Kit (CDK)</li> <li>Dynamic resources handling</li> <li>Testing facilities for components, actions, listeners, and pages</li> <li>Broad cross-browser support</li> <li>Large and active community</li> </ul> </rich:panel> Modify pom.xml to use MyFaces Delete all javax.faces dependencies Add myfaces dependencies Switch RF version to SNAPSHOT as there was a commit resolving problem with ajax requests when using MyFaces Build application with mvn clean package Deploy to Tomcat and go to main page Rich Panel is not displayed correctly and there is no packed.css resource loaded on page (see browser console)

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michpetrov Michal Petrov
                  Reporter:
                  manovotn Matej Novotny
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 4 hours
                    4h
                    Remaining:
                    Remaining Estimate - 4 hours
                    4h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified