2 Replies Latest reply on Jan 27, 2012 10:44 AM by simono71

    Rich Faces CSS file not loading

    simono71

      I am new to Java and also to Rich Faces. I am using the Netbeans 7.1 IDE and I am having trouble getting Rich Faces to work properly.

       

      I have created a new Netbeans 7.1 web project, using JSF 2.0, and including Rich Faces components (I created a new library with the following in it: cssparser-0.96, sac-1.3, guava-11.0.1, richfaces-core-api-4.1.0, richfaces-core-impl-4.1.0, richfaces-components-api-4.1.0 and richfaces-components-ui-4.1.0.

       

      When I compile and run the application (the simple dialog popup panel from the demo page), everything works fine and compiles ok, but the css files are not being found. The command button appears as a normal button and on clicking the dialog box appears as just simple text etc. The jquery and other javascript is being found, but the css files are not located. They are generating like this when I view source

       

      href="/richFaces/faces/rfRes/skinning.ecss?db=eAETa33aAQAEPQIJ"

       

      If I try to follow the link I get a 404 error.

       

      I have searched for help on this issue and have not found anyting. The doc's imply I should not need to configure anything for the CSS to work. I tried changing the default skin using the xml config file, and that made no difference.

       

      Any help greatly appreciated.

        • 1. Re: Rich Faces CSS file not loading
          lfryc

          Hi Simon,

           

          problem is probably in Servlet mapping, what servlet container / app server you are using?

          Does it support Servlets 3.0 API?

           

          Have you defined Servlet mappings for FacesServlet in web.xml?

          • 2. Re: Rich Faces CSS file not loading
            simono71

            I guess I forgot to mention, I am using Glassfish 3.1.1 so I don't see a problem there. I have had no problems getitng the Prime Faces that are built into Netbeans working, or running regular JSF pages.

             

            As I say, the only thing that doesn't work is the CSS, the functionality of the page appears to work, clicking on the button causes the popup to display and I get no compilation or runtime errors, except for page not found on the CSS