3 Replies Latest reply on Mar 5, 2008 9:07 AM by Louis Weideman

    Skins not working, generated css is XML?

    Bryan Keller Newbie

      I am a RichFaces newbie, and I've followed the instructions on how to setup my webapp to use RichFaces. I am able to use the components, such as the dataTable, but there is no skin being applied to the resulting page. I looked at the source generated, and there is something like the following:



      This appears to be a link to the skin's CSS, but when I follow the link with my browser, it returns back XML, not CSS, starting with this...

      <template xmlns:f="http:/jsf.exadel.com/template" ....

      It contains a bunch of style data, and I imagine this is supposed to be transformed into CSS but it isn't.

      I'm using RichFaces 3.1.1 with JSF RI 1.1.01 in OC4J 10.1.3. Here's the relevant section of my web.xml:

      <!-- RichFaces setup -->

      <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>blueSky</param-value>
      </context-param>

      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>

      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      <!-- JSF setup -->


      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>

      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>