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 2021/06/28 15:44:10 UTC

[isis] branch ISIS-2778 created (now aa224a8)

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

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


      at aa224a8  ISIS-2778: ensures that target adapter has been injected into prior to resetting properties.

This branch includes the following new commits:

     new aa224a8  ISIS-2778: ensures that target adapter has been injected into prior to resetting properties.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[isis] 01/01: ISIS-2778: ensures that target adapter has been injected into prior to resetting properties.

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit aa224a885882f802caba5c6d00d9d053b474b69a
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jun 28 16:39:42 2021 +0100

    ISIS-2778: ensures that target adapter has been injected into prior to resetting properties.
---
 .../org/apache/isis/viewer/wicket/ui/panels/FormExecutorDefault.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/panels/FormExecutorDefault.java b/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/panels/FormExecutorDefault.java
index 2661171..592d4eb 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/panels/FormExecutorDefault.java
+++ b/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/panels/FormExecutorDefault.java
@@ -176,6 +176,9 @@ implements FormExecutor {
                     targetAdapter = targetEntityModel.getManagedObject();
                 }
                 if(!EntityUtil.isDetachedOrRemoved(targetAdapter)) {
+                    if(targetAdapter != null) {
+                        getCommonContext().injectServicesInto(targetAdapter.getPojo());
+                    }
                     targetEntityModel.resetPropertyModels();
                 }