Repository: deltaspike
Updated Branches:
  refs/heads/master b62fad9d4 -> 3eae53c2d


[DELTASPIKE-DOC] - DELTASPIKE-758 - Document max active windows per session


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

Branch: refs/heads/master
Commit: 3eae53c2de1547f7d8443760ca841c61cdcc233b
Parents: b62fad9
Author: Rafael Benevides <[email protected]>
Authored: Wed Oct 29 18:10:03 2014 -0200
Committer: Rafael Benevides <[email protected]>
Committed: Wed Oct 29 18:10:03 2014 -0200

----------------------------------------------------------------------
 documentation/src/main/asciidoc/jsf.adoc        | 24 +++++++++++++++++++-
 .../src/main/template/document.html.erb         |  1 -
 2 files changed, 23 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/3eae53c2/documentation/src/main/asciidoc/jsf.adoc
----------------------------------------------------------------------
diff --git a/documentation/src/main/asciidoc/jsf.adoc 
b/documentation/src/main/asciidoc/jsf.adoc
index 41e647d..e4044ac 100644
--- a/documentation/src/main/asciidoc/jsf.adoc
+++ b/documentation/src/main/asciidoc/jsf.adoc
@@ -205,6 +205,27 @@ of the windowId to all links of all child components:
 <h:link value="Link with windowId" outcome="target.xhtml"/>
 -------------------------------------------------------------------
 
+==== Number of active windows
+
+By default, DeltaSpike allows `1024` active windows per session. Anyway, this 
number is reduced inside this JSF module to `64` for JSF applications. Once 
that the limit number of active windows is reached, DeltaSpike will drop the 
oldest active window.
+
+You can change the default value by setting the property 
`deltaspike.scope.window.max-count` using  
<<configuration.adoc#_configsources_provided_by_default, DeltaSpike 
configuration mechanism>>.
+
+You can also provide this value via:
+
+[source,java]
+-----------------------------------------------------------------------------------
+@Specializes
+public class MyClientWindowConfig extends DefaultClientWindowConfig
+{
+
+    @Override
+    public int getMaxWindowContextCount()
+    {
+        // return the max active windows per session
+    }
+}
+-----------------------------------------------------------------------------------
 
 ==== Switch Mode
 
@@ -283,7 +304,8 @@ public class PreferencesBean implements Serializable
 }
 ----------------------------------------------------
 
-=== @ViewAccessScoped (since 0.6)
+
+=== @ViewAccessScoped
 
 In case of conversations you have to un-scope beans manually (or they
 will be terminated automatically after a timeout). However, sometimes

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/3eae53c2/documentation/src/main/template/document.html.erb
----------------------------------------------------------------------
diff --git a/documentation/src/main/template/document.html.erb 
b/documentation/src/main/template/document.html.erb
index 3b04a60..8b340ea 100644
--- a/documentation/src/main/template/document.html.erb
+++ b/documentation/src/main/template/document.html.erb
@@ -1,7 +1,6 @@
 <%#encoding:UTF-8%><!DOCTYPE html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <meta name="description" content="deltaspike-generate-pages">

Reply via email to