1 Reply Latest reply on Feb 13, 2011 10:45 AM by rjevans2000

    Richfaces components have no style

    rjevans2000

      Hi,

       

      I have created a basic JSF 2, Richfaces 4.0.0.M5 application which builds and deploys correctly.

       

      However, when I use a rich component on my page, it has no style associated with it (by looking at the showcase demos I'd expect a rich:panel to have a blue title bar for example).

       

      If I use a rich:panel in my page, it just displays with the text I have entered - plain black text on a white background. I am guessing that I have incorrectly configured my web.xml file. Please take a look at it and let me know what I have done wrong:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="

            http://java.sun.com/xml/ns/javaee

            http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

       

          <!-- Activate the JSF 2.0 servlet -->

          <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

       

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.jsf</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.faces</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.xhtml</url-pattern>

          </servlet-mapping>

       

          <welcome-file-list>

              <welcome-file>/login.xhtml</welcome-file>

          </welcome-file-list>

       

          <!--

              This is an optional parameter, but it makes troubleshooting errors

              much easier.

          -->

          <!--    You may want to delete it before final deployment-->

          <context-param>

              <param-name>facelets.DEVELOPMENT</param-name>

              <param-value>true</param-value>

          </context-param>

       

          <!--    Spring Framwork-->

          <context-param>

              <param-name>contextConfigLocation</param-name>

              <param-value>/WEB-INF/applicationContext.xml

                  </param-value>

          </context-param>

       

          <context-param>

              <param-name>org.richfaces.SKIN</param-name>

              <param-value>blueSky</param-value>

          </context-param>

       

          <listener>

              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

          </listener>

          <!-- End of Spring Framwork  -->

       

      </web-app>

       

      Thanks in advance!