deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject [2/3] git commit: DELTASPIKE-505 ClientWindowRenderMode#LAZY as default mode
Date Mon, 20 Jan 2014 09:06:04 GMT
DELTASPIKE-505 ClientWindowRenderMode#LAZY as default mode


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/bb54ac14
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/bb54ac14
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/bb54ac14

Branch: refs/heads/master
Commit: bb54ac14eda2816a11869eb86edac7740fe0623f
Parents: ce7c9f9
Author: gpetracek <gpetracek@apache.org>
Authored: Mon Jan 20 10:02:11 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Mon Jan 20 10:02:11 2014 +0100

----------------------------------------------------------------------
 .../jsf/spi/scope/window/DefaultClientWindowConfig.java | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/bb54ac14/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
b/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
index 9978b77..a13011e 100644
--- a/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
+++ b/deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/scope/window/DefaultClientWindowConfig.java
@@ -119,12 +119,10 @@ public class DefaultClientWindowConfig implements ClientWindowConfig,
Serializab
     }
 
     /**
-     * By default we use {@link ClientWindowRenderMode#CLIENTWINDOW} unless
-     * we detect a bot.
+     * By default we use {@link ClientWindowRenderMode#LAZY} unless
+     * we detect a bot. Use {@link org.apache.deltaspike.jsf.api.config.JsfModuleConfig#getDefaultWindowMode()}
+     * to change this default behavior. Alternative:
      * Override this method to exclude other requests from getting accessed.
-     *
-     * @param facesContext
-     * @return
      */
     @Override
     public ClientWindowRenderMode getClientWindowRenderMode(FacesContext facesContext)
@@ -133,7 +131,7 @@ public class DefaultClientWindowConfig implements ClientWindowConfig,
Serializab
         {
             if (this.defaultClientWindowRenderMode != null)
             {
-                return this.defaultClientWindowRenderMode;
+                return this.defaultClientWindowRenderMode; //currently mainly needed for
'DELEGATED'
             }
             return ClientWindowRenderMode.NONE;
         }
@@ -154,7 +152,7 @@ public class DefaultClientWindowConfig implements ClientWindowConfig,
Serializab
         {
             return this.defaultClientWindowRenderMode;
         }
-        return ClientWindowRenderMode.CLIENTWINDOW;
+        return ClientWindowRenderMode.LAZY;
     }
 
     @Override


Mime
View raw message