4 Replies Latest reply on May 14, 2012 7:29 AM by larsd

    RichFaces Skin not working (with Primefaces)

    larsd Newbie

      Hello,

       

      atm I'm developing an app for a comparison between Rich- and PrimeFaces. I know that the css styles of the two frameworks can affect each other so I wanted to choose a skin which is available for both librarys (blueSky).

       

      The problem is that RichFaces skin is not applied to the richfaces components but the primefaces components look as expected. (RichFaces 4.2.1, PrimeFaces 3.2. on Tomcat 7)

       

      web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
          id="WebApp_ID" version="3.0">
          <display-name>JSFWidgetDemoApplication</display-name>
          <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
          </welcome-file-list>
          <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>
          <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
          </welcome-file-list>
          <context-param>
              <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
              <param-value>resources.application</param-value>
          </context-param>
          <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>server</param-value>
          </context-param>
          <context-param>
              <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
              <param-value>true</param-value>
          </context-param>
          <context-param>
              <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
              <param-value>true</param-value>
          </context-param>
          <context-param>
              <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
              <param-value>false</param-value>
          </context-param>
          <context-param>
              <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
              <param-value>true</param-value>
          </context-param>
          <!-- richFaces skin -->
          <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>blueSky</param-value>
          </context-param>
          <!-- primeFaces skin -->
          <context-param>
              <param-name>primefaces.THEME</param-name>
              <param-value>bluesky</param-value>
          </context-param>
          <listener>
              <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
          </listener>
      </web-app>
      

       

       

      Can somebody help?

       

      kind regards.

      Lars