deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject svn commit: r1565437 - /deltaspike/site/trunk/content/jsf.mdtext
Date Thu, 06 Feb 2014 21:10:52 GMT
Author: tandraschko
Date: Thu Feb  6 21:10:51 2014
New Revision: 1565437

URL: http://svn.apache.org/r1565437
Log:
Added skeleton for window handling 

Modified:
    deltaspike/site/trunk/content/jsf.mdtext

Modified: deltaspike/site/trunk/content/jsf.mdtext
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/jsf.mdtext?rev=1565437&r1=1565436&r2=1565437&view=diff
==============================================================================
--- deltaspike/site/trunk/content/jsf.mdtext (original)
+++ deltaspike/site/trunk/content/jsf.mdtext Thu Feb  6 21:10:51 2014
@@ -19,6 +19,70 @@ Notice:    Licensed to the Apache Softwa
 [TOC]
 
 ***
+# Multi-Window Handling
+
+## Intro
+
+## Available modes
+
+### CLIENTWINDOW
+
+### LAZY
+
+### NONE
+
+### DELEGATED
+
+### CUSTOM
+
+## Configuration
+
+### ds:windowId
+
+The component `ds:windowId` (`xmlns:ds="http://deltaspike.apache.org/jsf"`) is required to
enable the full control of the DeltaSpike window handling.
+It will import and render the required script parts for both `LAZY` and `CLIENTWINDOW` mode.
+The best way, to apply it for all views, is to add this component to all of your templates.
+
+### Switch Mode
+
+To switch the mode, you can just provide a DefaultClientWindowConfig or ClientWindowConfig:
+
+    :::java
+    @Specializes
+    public class MyClientWindowConfig extends DefaultClientWindowConfig
+    {
+        @Override
+        public ClientWindowRenderMode getClientWindowRenderMode(FacesContext facesContext)
+        {
+            //...
+        }
+    }
+
+### Provide a custom ClientWindow
+
+If you would like to provide an custom ClientWindow implementation, you can just do it e.g.
via CDI alternatives:
+
+    :::java
+    @ApplicationScoped
+    public class MyClientWindow implements ClientWindow
+    {
+        //...
+    }
+
+Don't forget to set the ClientWindowRenderMode to 'CUSTOM' via the ClientWindowConfig:
+
+    :::java
+    @Specializes
+    public class MyClientWindowConfig extends DefaultClientWindowConfig
+    {
+        @Override
+        public ClientWindowRenderMode getClientWindowRenderMode(FacesContext facesContext)
+        {
+            return ClientWindowRenderMode.LAZY;
+        }
+    }
+
+## Based Scopes
 
 # Type-safe View-Configs
 



Mime
View raw message