1 Reply Latest reply on Apr 15, 2014 3:56 AM by michpetrov

    javax.faces.PROJECT_STAGE and Obfuscation

    speleomaniac

      Hi,

       

      this blog (http://lukas.fryc.eu/blog/2012/02/optimizing-resource-loading-with.html) says , sort of, when the production setting is used, javascript code is going to be obfuscated.

       

       

      "Packaging phase aggregates several resources into one, while compression do JavaScript/CSScompression and obfuscation *(powered by YUI compressor)."

       

      I set the following parameters but I see no obfuscation. Is this implemented or not?

       

      <context-param>

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

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

          </context-param>

          <context-param>

               <param-name>org.richfaces.resourceMapping.compressedStages</param-name>

          <param-value>All</param-value>

          </context-param>

          <context-param>

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

        <param-value>All</param-value>

          </context-param>

          <context-param>

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

        <param-value>Production</param-value>

          </context-param>