summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/gui/AbstractGuiFormBuilderConfiguration.java11
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/gui/IGuiBuilderConfiguration.java12
-rw-r--r--eaaf_modules/eaaf_module_pvp2_core/src/test/java/at/gv/egiz/eaaf/modules/pvp2/test/binding/PostBindingTest.java5
3 files changed, 28 insertions, 0 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/gui/AbstractGuiFormBuilderConfiguration.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/gui/AbstractGuiFormBuilderConfiguration.java
index b0718f85..f8e64c1a 100644
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/gui/AbstractGuiFormBuilderConfiguration.java
+++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/gui/AbstractGuiFormBuilderConfiguration.java
@@ -31,6 +31,7 @@ import org.slf4j.LoggerFactory;
import at.gv.egiz.eaaf.core.api.gui.GroupDefinition;
import at.gv.egiz.eaaf.core.api.gui.GroupDefinition.Type;
import at.gv.egiz.eaaf.core.api.gui.IGuiBuilderConfiguration;
+import lombok.Setter;
/**
* Abstract Configuration implementation for GUI Builders.
@@ -63,6 +64,9 @@ public abstract class AbstractGuiFormBuilderConfiguration implements IGuiBuilder
private String authUrl = null;
private String viewName = null;
private String formSubmitEndpoint = null;
+
+ @Setter
+ private boolean writeAsynch = true;
private final Map<String, Object> params = new HashMap<>();
@@ -137,6 +141,13 @@ public abstract class AbstractGuiFormBuilderConfiguration implements IGuiBuilder
}
+
+ @Override
+ public final boolean isWriteAsynch() {
+ return this.writeAsynch;
+
+ }
+
/**
* Define the parameters, which should be evaluated in the template. <br>
* <b>IMPORTANT:</b> external HTML escapetion is required, because it is NOT
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/gui/IGuiBuilderConfiguration.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/gui/IGuiBuilderConfiguration.java
index 55197b52..28e0278c 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/gui/IGuiBuilderConfiguration.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/gui/IGuiBuilderConfiguration.java
@@ -51,4 +51,16 @@ public interface IGuiBuilderConfiguration {
* @return ContentType, or null if default ContentType should be used.
*/
String getDefaultContentType();
+
+
+ /**
+ * Indicate GUI-Builder to render the GUI asynchronous if it's support by builder implementation.
+ *
+ * <p><b>Default:</b> <code>true</code></p>
+ *
+ * @return <code>true</code> to indicate that asynchronous rendering is perverted
+ */
+ boolean isWriteAsynch();
+
+
}
diff --git a/eaaf_modules/eaaf_module_pvp2_core/src/test/java/at/gv/egiz/eaaf/modules/pvp2/test/binding/PostBindingTest.java b/eaaf_modules/eaaf_module_pvp2_core/src/test/java/at/gv/egiz/eaaf/modules/pvp2/test/binding/PostBindingTest.java
index 3288df14..7d700b43 100644
--- a/eaaf_modules/eaaf_module_pvp2_core/src/test/java/at/gv/egiz/eaaf/modules/pvp2/test/binding/PostBindingTest.java
+++ b/eaaf_modules/eaaf_module_pvp2_core/src/test/java/at/gv/egiz/eaaf/modules/pvp2/test/binding/PostBindingTest.java
@@ -700,6 +700,11 @@ public class PostBindingTest {
return null;
}
+
+ @Override
+ public boolean isWriteAsynch() {
+ return false;
+ }
};
}