0 Replies Latest reply on Nov 1, 2011 12:35 PM by D. Marantis

    RichFaces 4.0 + GateIn 3.1: problems with css / skins

    D. Marantis Newbie

      hi,

       

      i'am using at the moment

       

      * PortletFaces-Bridge 2.0.1

      * JBoss GateIn 3.1

      * JBoss Richfaces 4.0

      * JBoss AS 5.1

       

      The JSF2 JARs will be served with the portlet.

       

      All works fine, just the css / js files from the <rich> tags will not be loaded correctly. So, the RichFaces components will not be shown correctly (wrong format and no skins).

       

      Can someone help me?

      thx for infos

       

      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>javax.portlet.faces.renderPolicy</param-name>

      <param-value>ALWAYS_DELEGATE</param-value>

      </context-param>

       

      <context-param>

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

      <param-value>client</param-value>

      </context-param>

       

      <context-param>

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

      <param-value>Development</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.richfaces.skin</param-name>

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

      </context-param>

       

      <context-param>

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

      <param-value>enable</param-value>

      </context-param>

       

      <context-param>

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

      <param-value>false</param-value>

      </context-param>

       

      <context-param>

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

      <param-value>ALL</param-value>

      </context-param>

       

      <context-param>

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

      <param-value>ALL</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>com.sun.faces.expressionFactory</param-name>

      <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>

      </context-param>

       

      <context-param> 

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

      <param-value>rfRes</param-value> 

      </context-param> 

       

      <context-param> 

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

      <param-value>false</param-value> 

      </context-param>

       

      <context-param> 

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

      <param-value>false</param-value> 

      </context-param>     

       

      <listener>

      <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

      </listener>

       

      <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>*.xhtml</url-pattern>

      </servlet-mapping>

       

      </web-app>