This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch CAUSEWAY-3175
in repository https://gitbox.apache.org/repos/asf/causeway-app-helloworld.git

commit 51a5cf3991144348f03d9dbc314e7eeedf7b456d
Author: danhaywood <[email protected]>
AuthorDate: Fri Jul 28 12:52:32 2023 +0100

    removes enableDisable, as not part of repro
---
 .../hello/dom/hwo/HelloWorldObject.layout.xml      |  1 -
 .../dom/hwo/HelloWorldObject_EnableDisable.java    | 29 ----------------------
 2 files changed, 30 deletions(-)

diff --git 
a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.layout.xml 
b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.layout.xml
index 8a3e512..8d5ee66 100644
--- a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.layout.xml
+++ b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.layout.xml
@@ -51,7 +51,6 @@
                                 <cpt:action id = "createChild"/>
                                 <cpt:action id = 
"lookupChildUsingAutoComplete"/>
                                 <cpt:action id = "lookupChildUsingChoices"/>
-                                <cpt:action id = "enableDisable"/>
                             </cpt:collection>
                         </bs3:col>
                     </bs3:row>
diff --git 
a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject_EnableDisable.java
 
b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject_EnableDisable.java
deleted file mode 100644
index fc4cec6..0000000
--- 
a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject_EnableDisable.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package domainapp.modules.hello.dom.hwo;
-
-import java.util.List;
-
-import org.apache.causeway.applib.annotation.Action;
-
-import lombok.RequiredArgsConstructor;
-
-
-/**
- * this works fine.
- * @return
- */
-@Action(choicesFrom = "children")
-@RequiredArgsConstructor
-public class HelloWorldObject_EnableDisable {
-
-       private final HelloWorldObject target;
-
-    /**
-     * @param selection
-     * @param enabled
-     */
-    public HelloWorldObject act(List<HelloWorldChild> selection, boolean 
enabled) {
-        selection.stream().forEach((c)->c.setEnabled(enabled));
-        return target;
-    }
-
-}

Reply via email to