myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r905408 - /myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
Date Mon, 01 Feb 2010 20:45:35 GMT
Author: lu4242
Date: Mon Feb  1 20:45:35 2010
New Revision: 905408

URL: http://svn.apache.org/viewvc?rev=905408&view=rev
Log:
move org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS to MyfacesConfig

Modified:
    myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java

Modified: myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java?rev=905408&r1=905407&r2=905408&view=diff
==============================================================================
--- myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
(original)
+++ myfaces/shared/trunk_4.0.x/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
Mon Feb  1 20:45:35 2010
@@ -175,6 +175,10 @@
     @JSFWebConfigParam(since="1.2.7")
     private static final String INIT_PARAM_DELEGATE_FACES_SERVLET = "org.apache.myfaces.DELEGATE_FACES_SERVLET";
 
+    @JSFWebConfigParam(since="2.0")
+    public final static String INIT_PARAM_REFRESH_TRANSIENT_BUILD_ON_PSS = "org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS";

+    public final static String INIT_PARAM_REFRESH_TRANSIENT_BUILD_ON_PSS_DEFAULT = "false";
+    
     private boolean _prettyHtml;
     private boolean _detectJavascript;
     private boolean _allowJavascript;
@@ -190,7 +194,8 @@
     private boolean _renderClearJavascriptOnButton;
     private boolean _saveFormSubmitLinkIE;
     private String _delegateFacesServlet;
-
+    private boolean _refreshTransientBuildOnPSS;
+    private boolean _refreshTransientBuildOnPSSAuto;
 
     private static final boolean TOMAHAWK_AVAILABLE;
     private static final boolean MYFACES_IMPL_AVAILABLE;
@@ -286,6 +291,32 @@
                 INIT_PARAM_VIEWSTATE_JAVASCRIPT_DEFAULT));
 
         myfacesConfig.setDelegateFacesServlet(extCtx.getInitParameter(INIT_PARAM_DELEGATE_FACES_SERVLET));
+        
+        String refreshTransientBuildOnPSS = getStringInitParameter(extCtx, INIT_PARAM_REFRESH_TRANSIENT_BUILD_ON_PSS,

+                INIT_PARAM_REFRESH_TRANSIENT_BUILD_ON_PSS_DEFAULT);
+        
+        if (refreshTransientBuildOnPSS == null)
+        {
+            myfacesConfig.setRefreshTransientBuildOnPSS(false);
+            myfacesConfig.setRefreshTransientBuildOnPSSAuto(false);
+        }
+        else if ("auto".equalsIgnoreCase(refreshTransientBuildOnPSS))
+        {
+            myfacesConfig.setRefreshTransientBuildOnPSS(true);
+            myfacesConfig.setRefreshTransientBuildOnPSSAuto(true);
+        }
+        else if (refreshTransientBuildOnPSS.equalsIgnoreCase("true") || 
+                refreshTransientBuildOnPSS.equalsIgnoreCase("on") || 
+                refreshTransientBuildOnPSS.equalsIgnoreCase("yes"))
+        {
+            myfacesConfig.setRefreshTransientBuildOnPSS(true);
+            myfacesConfig.setRefreshTransientBuildOnPSSAuto(false);
+        }
+        else
+        {
+            myfacesConfig.setRefreshTransientBuildOnPSS(false);
+            myfacesConfig.setRefreshTransientBuildOnPSSAuto(false);
+        }
 
         if (TOMAHAWK_AVAILABLE)
         {
@@ -616,4 +647,25 @@
     {
         _delegateFacesServlet = delegateFacesServlet;
     }
+
+    public boolean isRefreshTransientBuildOnPSS()
+    {
+        return _refreshTransientBuildOnPSS;
+    }
+
+    public void setRefreshTransientBuildOnPSS(boolean refreshTransientBuildOnPSS)
+    {
+        this._refreshTransientBuildOnPSS = refreshTransientBuildOnPSS;
+    }
+
+    public boolean isRefreshTransientBuildOnPSSAuto()
+    {
+        return _refreshTransientBuildOnPSSAuto;
+    }
+
+    public void setRefreshTransientBuildOnPSSAuto(
+            boolean refreshTransientBuildOnPSSAuto)
+    {
+        this._refreshTransientBuildOnPSSAuto = refreshTransientBuildOnPSSAuto;
+    }
 }



Mime
View raw message