3 Replies Latest reply on Apr 2, 2012 5:57 AM by iabughosh

    Richfaces 4.2.0 skin not applied

    carabou

      Hello,

       

      I'm currently working with Richfaces 4.2.0 and trying to apply my own skin.

      First, I tried to apply blueSkin skin but the skin applied i always the  DEFAULT one.

       

      Here is my web.xml file :

       

       

      <?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/j2ee" xmlns:javaee="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/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"

                version="2.4">

       

       

                <display-name>JSF Application</display-name>

                <description>Exemple JSF</description>

                <listener>

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

                </listener>

                <listener>

                          <listener-class>

                                    org.springframework.web.context.request.RequestContextListener</listener-class>

                </listener>

       

                <context-param>

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

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

                </context-param>

       

       

                <context-param>

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

                               <param-value>wine</param-value>

                </context-param>

       

                <context-param>

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

                               <param-value>classpath:/applicationContext_TBD_TOMCAT.xml</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>javax.faces.DEFAULT_SUFFIX</param-name>

                               <param-value>.xhtml</param-value>

                </context-param>

                <context-param>

                               <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

                               <param-value>com.sun.facelets.FaceletViewHandler</param-value>

                </context-param>

                <context-param>

                               <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

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

                </context-param>

                <context-param>

                               <param-name>javax.faces.PROJECT_STAGE</param-name>

                               <param-value>Development</param-value>

                </context-param>

                <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>

      </web-app>

       

       

       

       

      and here is one of my xhtml file :

       

       

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

       

       

      <h:html xmlns="http://www.w3.org/1999/xhtml"

                xmlns:ui="http://java.sun.com/jsf/facelets"

                xmlns:h="http://java.sun.com/jsf/html"

                xmlns:f="http://java.sun.com/jsf/core"

                xmlns:a4j="http://richfaces.org/a4j"

                xmlns:rich="http://richfaces.org/rich"

                xmlns:c="http://java.sun.com/jsp/jstl/core">

       

       

      <h:head>

                <title>Page de test BDD et ajax</title>

      </h:head>

       

       

      <h:body>

                <f:view>

                          <h:panelGroup styleClass="fieldLabel">

                                    Ceci est du texte !

                          </h:panelGroup>

                          <h:form>

       

                                    <rich:dataTable id="tableOiseaux1" styleClass="tableOiseaux"

                                              value="#{oiseauxBean.listeOiseaux}" var="oiseau"

                                              rowClasses="odd,even" cellspacing="0" cellpadding="0" border="0">

       

                                              <rich:column styleClass="titreColonne">

                                                        <f:facet name="header">

                                                                  <h:outputText value="Nom" />

                                                        </f:facet>

                                                        <h:outputText value="#{oiseau.nom}" />

                                              </rich:column>

                                              <rich:column styleClass="titreColonne">

                                                        <f:facet name="header">

                                                                  <h:outputText value="Couleur" />

                                                        </f:facet>

                                                        <h:outputText value="#{oiseau.couleurPrincipale}" />

                                              </rich:column>

                                              <rich:column styleClass="titreColonne">

                                                        <f:facet name="header">

                                                                  <h:outputText value="Description" />

                                                        </f:facet>

                                                        <h:outputText value="#{oiseau.description}" />

                                              </rich:column>

                                              <rich:column styleClass="titreColonne">

                                                        <f:facet name="header">

                                                                  <h:outputText value="Modifier" />

                                                        </f:facet>

                                                        <h:commandLink value="Details/Modifier"

                                                                  action="#{oiseauxBean.detail}" />

                                              </rich:column>

                                    </rich:dataTable>

       

                                    <h:commandButton value="Refresh liste oiseaux 1">

                                              <f:ajax render="tableOiseaux1" />

                                    </h:commandButton>

       

                                    <h:outputText styleClass="fieldLabel" value="Zip:" />

                                    <h:inputText label="Zip" id="zip" required="true"

                                              value="#{helloBean.name}">

                                              <f:validateLength minimum="4" maximum="9" />

                                    </h:inputText>

                                    <rich:messages title="pouet" />

                                    <a4j:commandButton action="validation" value="Valider formulaire" />

                          </h:form>

                </f:view>

      </h:body>

      </h:html>

       

       

      There's no error in eclipse console

       

      have you any idea why the skin is not applied ?

       

      Thanks for your repply