You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/07/02 13:54:24 UTC
[isis] branch master updated: ISIS-2386: adds another demo to
reproduce the 3-state issue
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 8f332d3 ISIS-2386: adds another demo to reproduce the 3-state issue
8f332d3 is described below
commit 8f332d3890aff41214b482b4be327aade309b43d
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Jul 2 15:54:11 2020 +0200
ISIS-2386: adds another demo to reproduce the 3-state issue
---
.../java/demoapp/dom/types/wrapper/WrapperDemo.java | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/WrapperDemo.java b/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/WrapperDemo.java
index 157e9c2..5d9cb5f 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/WrapperDemo.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/WrapperDemo.java
@@ -112,7 +112,23 @@ public class WrapperDemo implements HasAsciiDocDescription {
public boolean default1BooleanParams() {
return true;
}
-
+
+ //FIXME[ISIS-2387] contrary to the above, second parameter works; however, first parameter is
+ // initialized to null but not rendered as 3-state
+ // either we fix rendering or we initialize with FALSE when null
+ @Action
+ @ActionLayout(promptStyle = PromptStyle.DIALOG_MODAL)
+ public WrapperDemo booleanBoxedParams(
+ Boolean boxed0,
+ Boolean boxed1) {
+ return this;
+ }
+ @Model
+ public Boolean default1BooleanBoxedParams() {
+ return true;
+ }
+
+
// -- SHORT