5 Replies Latest reply on Apr 2, 2008 9:30 AM by Dimitri Duszynski

    No skin in simple RichFaces Test

    Dimitri Duszynski Newbie

      Hello,

      I'm new user of RichFaces and all the components are useful and have a good look.
      So, i'm using Tomcat 6.0 and my application uses JSF 1.2 and RichFaces 3.2.0.
      I have followed the developer guide to install it in my application and when I deploy it I have no exceptions. But the problem is that the blueSky skin is not rendered. For the example I try a simple combobox like in the demo page.
      I don't know how I can fix that ??

      Here is my web.xml :

      <?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">
       <context-param>
       <param-name>org.richfaces.SKIN</param-name>
       <param-value>blueSky</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.CONFIG_FILES</param-name>
       <param-value>/WEB-INF/faces-config.xml</param-value>
       </context-param>
       <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>false</param-value>
       </context-param>
       <context-param>
       <param-name>com.sun.faces.validateXml</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
      
       <filter>
       <display-name>RichFaces Filter</display-name>
       <filter-name>richfaces</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>richfaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
      
      
       <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>*.faces</url-pattern>
       </servlet-mapping>
       <servlet-mapping>
       <servlet-name>XmlHttpProxy</servlet-name>
       <url-pattern>/xhp</url-pattern>
       </servlet-mapping>
       <session-config>
       <session-timeout>
       30
       </session-timeout>
       </session-config>
       <welcome-file-list>
       <welcome-file>forwardToJSF.jsp</welcome-file>
       </welcome-file-list>
       </web-app>
      


      My JSP file :
      <%@page contentType="text/html"%>
      <%@page pageEncoding="UTF-8"%>
      
      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
      <%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
      
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
      
      <%--
       This file is an entry point for JavaServer Faces application.
      --%>
      
      <html>
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>JSP Page</title>
       </head>
       <body>
       <f:view>
       <h:form>
       <h1><h:outputText value="JavaServer Faces" /></h1>
      
       <div>
       <rich:comboBox defaultLabel="Enter value">
       <f:selectItem itemValue="bike"/>
       <f:selectItem itemValue="car"/>
       <f:selectItem itemValue="plane"/>
       <f:selectItem itemValue="train"/>
       <f:selectItem itemValue="boat"/>
       </rich:comboBox>
       </div>
       </h:form>
       </f:view>
       </body>
      </html>
      


      Thanks,

      Greetings,

      DUSZYNSKI Dimitri