You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2019/07/08 13:07:07 UTC

[isis] 17/18: ISIS-2148: remove duplicate 'create' menu item in Hello World's menu

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

danhaywood pushed a commit to branch ISIS-2062-antora
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 4f0a366fe8e7d0ac371ea7e0ed524ddee7d65283
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jul 8 14:05:55 2019 +0100

    ISIS-2148: remove duplicate 'create' menu item in Hello World's menu
---
 .../src/main/java/domainapp/dom/impl/HelloWorldObjects.java    | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/examples/apps/helloworld/src/main/java/domainapp/dom/impl/HelloWorldObjects.java b/examples/apps/helloworld/src/main/java/domainapp/dom/impl/HelloWorldObjects.java
index 0456403..beb75c2 100644
--- a/examples/apps/helloworld/src/main/java/domainapp/dom/impl/HelloWorldObjects.java
+++ b/examples/apps/helloworld/src/main/java/domainapp/dom/impl/HelloWorldObjects.java
@@ -41,17 +41,15 @@ import domainapp.dom.types.Name;
 public class HelloWorldObjects {
 
     @Action(semantics = SemanticsOf.NON_IDEMPOTENT)
-    public HelloWorldObject createHelloWorld() {
-        return repositoryService.persist(new HelloWorldObject("Hello World!"));
-    }
-	
-	
-    @Action(semantics = SemanticsOf.NON_IDEMPOTENT)
     @ActionLayout(promptStyle = PromptStyle.DIALOG_MODAL)
     public HelloWorldObject create(
             @Name final String name) {
         return repositoryService.persist(new HelloWorldObject(name));
     }
+    public String default0Create() {
+        return "Hello World!";
+    }
+
 
     @Action(semantics = SemanticsOf.SAFE)
     @ActionLayout(promptStyle = PromptStyle.DIALOG_SIDEBAR)