myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsulli...@apache.org
Subject svn commit: r1084750 - /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
Date Wed, 23 Mar 2011 21:23:10 GMT
Author: bsullivan
Date: Wed Mar 23 21:23:10 2011
New Revision: 1084750

URL: http://svn.apache.org/viewvc?rev=1084750&view=rev
Log:
TRINIDAD-2060 Make Optimized PPR the default with a public flag to disable it at the web.xml
and application levels

Continue to default to off for safety

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java?rev=1084750&r1=1084749&r2=1084750&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
(original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
Wed Mar 23 21:23:10 2011
@@ -75,7 +75,8 @@ public final class PartialPageUtils
       }
       else
       {
-        optimizedPPREnabled = !"off".equalsIgnoreCase(_getPprOptimization(context));
+        // default optimized ppr to off
+        optimizedPPREnabled = "on".equalsIgnoreCase(_getPprOptimization(context));
         
         // cache the result into the context attributes
         contextAttributes.put(_OPTIMIZED_PPR_ENABLED_PROP, optimizedPPREnabled);
@@ -309,9 +310,9 @@ public final class PartialPageUtils
       // the value hasn't been set, so check the initialization parameter
       pprOptimization = external.getInitParameter(_PPR_OPTIMIZATION_PROP);
       
-      // default to "on"
+      // default to "off"
       if (pprOptimization == null)
-        pprOptimization = "on";
+        pprOptimization = "off";
       
       // cache in the application so that we don't need to fetch this again
       applicationMap.put(_PPR_OPTIMIZATION_PROP, pprOptimization);



Mime
View raw message