This is an automated email from the ASF dual-hosted git repository. danhaywood pushed a commit to branch v2 in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 3aeaff3b8cd352adc5d9bfe7e36c76f459213be5 Author: Dan Haywood <[email protected]> AuthorDate: Sun May 26 10:12:56 2024 +0100 associates 'updateName' action with 'name' property using .layout.xml --- .../main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java | 1 - .../java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java index 5ffbb6d..e43cfa1 100644 --- a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java +++ b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java @@ -204,7 +204,6 @@ public class PetOwner implements Comparable<PetOwner>, CalendarEventable { @Action(semantics = IDEMPOTENT, commandPublishing = Publishing.ENABLED, executionPublishing = Publishing.ENABLED) @ActionLayout( - associateWith = "name", // promptStyle = PromptStyle.INLINE, describedAs = "Updates the name of this object, certain characters (" + Name.PROHIBITED_CHARACTERS + ") are not allowed.") public PetOwner updateName( diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml index 078ce63..bc0ce53 100644 --- a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml +++ b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.layout.xml @@ -18,7 +18,9 @@ <bs3:row> <bs3:col span="12"> <cpt:fieldSet name="Identity" id="identity"> - <cpt:property id="name"/> + <cpt:property id="name"> + <cpt:action id="updateName"/> + </cpt:property> <cpt:property id="knownAs"/> </cpt:fieldSet> </bs3:col>
