4 Replies Latest reply on Jul 8, 2013 7:31 AM by Patrick Da

    resource relocation has no effect (for a CDN)

    Patrick Da Newbie

      Hi,

      i am totally stuck atm and I hope somebody can help me here.

       

      I want to make a resource-relocation for the css and js files delivered via richfaces from my server.

      (like /rfRes/skinning.ecss.xhtml)


      I am using richfaces 4.3.1 with Apache and followed exactly the steps described here.

      http://docs.jboss.org/richfaces/latest_4_3_X/Developer_Guide/en-US/html/chap-Developer_Guide-Advanced_features.html#sect-Developer_Guide-Advanced_features-Resource_mapping

       

      1) in web-xml i added


      <
      context-param>
          <param-name>org.richfaces.resourceMapping.mappingFile</param-name>
          <param-value>META-INF/richfaces/static-custom-mappings.properties</param-value>
      </context-param>

       

       

      2) in my projects-folder I created

      META-INF/richfaces/static-resource-mappings.properties

      and added there:

       

      skinning.css=cdn.mydomain.com/skinning.css

       

      And of course i restart apache.

       

      However this has just no effect.

      What am I doing wrong? Thanks for the very appreciated help.

       

      Best

      Patrick