2 Replies Latest reply on Mar 28, 2014 9:32 AM by michpetrov

    Richfaces 4 - skin issue

    cohencyr4

      Hello,

       

      I tried to optimize a skin, so I created "new_skin_name.skin.properties" with the following content:

       

      baseSkin=blueSky

      generalSizeFont=25pt

       

      When I run the application It look likes there is no skin at all.

       

      In web.xml, I put:

       

      <context-param>

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

        <param-value>new_skin_name</param-value>

      </context-param>

       

      The file is reconized because if I put "new_skin_nameXXX" instead of "new_skin_name" i get the error skin not found.

       

      I've done exactly what is specified in "http://docs.jboss.org/richfaces/latest_4_2_X/Developer_Guide/en-US/html/chap-Developer_Guide-Skinning_and_theming.html"

        • 1. Re: Richfaces 4 - skin issue
          bluez974

          Hi,

           

          Make sure you have resourceOptimization  param set to false in the web.xml

           

          <context-param>

            <param-name>org.richfaces.resourceOptimization.enabled</param-name>

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

            </context-param>

           

          There is apparently an issue with this functionnality.

          I had the same issue and this solution solved it.

          1 of 1 people found this helpful
          • 2. Re: Richfaces 4 - skin issue
            michpetrov

            Hi,

             

            If you want to use custom skins and resource optimization you will need to generate the optimized resources. I've written a post about this.

            1 of 1 people found this helpful