You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ta...@apache.org on 2015/09/14 21:07:05 UTC
deltaspike git commit: DELTASPIKE-979 Document new ClientWindowConfig
modes
Repository: deltaspike
Updated Branches:
refs/heads/master 72cac006d -> 6d89d1dc8
DELTASPIKE-979 Document new ClientWindowConfig modes
Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/6d89d1dc
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/6d89d1dc
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/6d89d1dc
Branch: refs/heads/master
Commit: 6d89d1dc84086554b6fc7ba65a0f73911a0828e3
Parents: 72cac00
Author: Thomas Andraschko <ta...@apache.org>
Authored: Mon Sep 14 21:06:52 2015 +0200
Committer: Thomas Andraschko <ta...@apache.org>
Committed: Mon Sep 14 21:06:52 2015 +0200
----------------------------------------------------------------------
documentation/src/main/asciidoc/jsf.adoc | 37 ++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltaspike/blob/6d89d1dc/documentation/src/main/asciidoc/jsf.adoc
----------------------------------------------------------------------
diff --git a/documentation/src/main/asciidoc/jsf.adoc b/documentation/src/main/asciidoc/jsf.adoc
index b998c89..f977b80 100644
--- a/documentation/src/main/asciidoc/jsf.adoc
+++ b/documentation/src/main/asciidoc/jsf.adoc
@@ -161,6 +161,29 @@ directly.
===== Configuration
+====== Reduce windowhandler.html flickering
+
+Per default we only overwrite the onclick events of all links on the current page to make a 'screenshot' between requests.
+We also provide a mechanism to store the 'screenshot' on ajax requests (e.g. Post-Redirect-Get via p:remoteCommand or other components) or on every button onclick:
+
+[source,java]
+-------------------------------------------------------------------
+@Specializes
+public class MyClientWindowConfig extends DefaultClientWindowConfig
+{
+ @Override
+ public boolean isClientWindowStoreWindowTreeEnabledOnAjaxRequest()
+ {
+ return true;
+ }
+
+ @Override
+ public boolean isClientWindowStoreWindowTreeEnabledOnButtonClick()
+ {
+ return true;
+ }
+}
+
====== Change windowhandler.html
To customize the look and feel of the windowhandler.html, you can simply
@@ -188,7 +211,19 @@ if you would like to always show your custom html instead the 'screenshot', you
public class MyClientWindowConfig extends DefaultClientWindowConfig
{
@Override
- public String isClientWindowStoreWindowTreeEnabled()
+ public boolean isClientWindowStoreWindowTreeEnabledOnLinkClick()
+ {
+ return false;
+ }
+
+ @Override
+ public boolean isClientWindowStoreWindowTreeEnabledOnAjaxRequest()
+ {
+ return false;
+ }
+
+ @Override
+ public boolean isClientWindowStoreWindowTreeEnabledOnButtonClick()
{
return false;
}