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 77b5661463c1a8fc204ca8ffc62b965a660ca70b Author: Dan Haywood <[email protected]> AuthorDate: Sun May 26 10:14:40 2024 +0100 associates attachment property with its fieldset 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 a5d1712..ec7cb09 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 @@ -163,7 +163,6 @@ public class PetOwner implements Comparable<PetOwner>, CalendarEventable { @PdfJsViewer @Property(optionality = Optionality.OPTIONAL) - @PropertyLayout(fieldSetId = "content", sequence = "1") public Blob getAttachment() { return BlobJpaEmbeddable.toBlob(attachment); } 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 f52e833..357112a 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 @@ -58,7 +58,9 @@ <bs3:col span="6"> <bs3:row> <bs3:col span="12"> - <cpt:fieldSet name="Content" id="content"/> + <cpt:fieldSet name="Content" id="content"> + <cpt:property id="attachment"/> + </cpt:fieldSet> </bs3:col> </bs3:row> <bs3:tabGroup unreferencedCollections="true">
