You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/11/25 20:10:47 UTC

[isis] branch master updated (9f06c05 -> ec621c3)

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

ahuber pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git.


    from 9f06c05  ISIS-2464: fixes potential ObjectAdapterMementoProviderAbstract de-serialization issues
     new 64a6f77  ISIS-2467: bump wicket 8.9.0 -> 8.11.0
     new ec621c3  ISIS-2467: housekeeping

The 2 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.


Summary of changes:
 core/pom.xml                                       |  5 ++--
 .../ObjectAdapterMementoProviderAbstract.java      | 34 ++++++++++------------
 2 files changed, 18 insertions(+), 21 deletions(-)


[isis] 01/02: ISIS-2467: bump wicket 8.9.0 -> 8.11.0

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 64a6f7784ed124daf950b009781b7f51270e237d
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Nov 25 21:10:18 2020 +0100

    ISIS-2467: bump wicket 8.9.0 -> 8.11.0
---
 core/pom.xml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/pom.xml b/core/pom.xml
index a272d55..ed78c8f 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -161,7 +161,6 @@
 		<shiro.version>1.7.0</shiro.version>
 		<simpleslackapi.version>1.2.0</simpleslackapi.version>
 		<slf4j-api.version>1.7.30</slf4j-api.version> <!-- as provided by spring-boot, needed to solve convergence issues -->
-		<spring-framework.version>5.3.1</spring-framework.version>
 		<spring-boot.version>2.4.0</spring-boot.version> <!--  has no effect here, needs to be set in isis-parent/pom.xml -->
 		<summernote.version>0.8.11</summernote.version>
 		<swagger-core.version>1.6.2</swagger-core.version>
@@ -170,14 +169,14 @@
 
 		<vaadin.version>14.3.1</vaadin.version>
 
-		<wicket.version>8.9.0</wicket.version>
+		<wicket.version>8.11.0</wicket.version>
 		<wicket-bootstrap.version>2.0.14</wicket-bootstrap.version> <!-- de.agilecoders.wicket:wicket-bootstrap... -->
 		<wicket-bootstrap-datetimepicker.version>4.17.47</wicket-bootstrap-datetimepicker.version>
 		<wicket-fullcalendar.version>4.2</wicket-fullcalendar.version>
 		<wicket-source.version>7.0.0</wicket-source.version>
 		<wicket-webjars.version>2.0.15</wicket-webjars.version>
 
-		<wicketstuff.version>8.9.0</wicketstuff.version> <!-- org.wicketstuff:wicketstuff-select2 -->
+		<wicketstuff.version>8.11.0</wicketstuff.version> <!-- org.wicketstuff:wicketstuff-select2 -->
 		<wicketstuff-gmap3.version>${wicket.version}</wicketstuff-gmap3.version>
 
 		<xdocreport.version>1.0.6</xdocreport.version>


[isis] 02/02: ISIS-2467: housekeeping

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit ec621c3962b88bdbc0332e247ef46038c3d51794
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Nov 25 21:10:34 2020 +0100

    ISIS-2467: housekeeping
---
 .../ObjectAdapterMementoProviderAbstract.java      | 34 ++++++++++------------
 1 file changed, 16 insertions(+), 18 deletions(-)

diff --git a/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/select2/providers/ObjectAdapterMementoProviderAbstract.java b/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/select2/providers/ObjectAdapterMementoProviderAbstract.java
index 279e790..a351209 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/select2/providers/ObjectAdapterMementoProviderAbstract.java
+++ b/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/select2/providers/ObjectAdapterMementoProviderAbstract.java
@@ -34,8 +34,6 @@ import org.apache.isis.commons.internal.collections._Lists;
 import org.apache.isis.core.metamodel.adapter.oid.RootOid;
 import org.apache.isis.core.metamodel.spec.ManagedObject;
 import org.apache.isis.core.metamodel.spec.ManagedObjects;
-import org.apache.isis.core.metamodel.spec.ObjectSpecId;
-import org.apache.isis.core.metamodel.spec.ObjectSpecification;
 import org.apache.isis.core.runtime.context.IsisAppCommonContext;
 import org.apache.isis.core.runtime.context.memento.ObjectMemento;
 import org.apache.isis.viewer.wicket.model.isis.WicketViewerSettings;
@@ -62,43 +60,43 @@ extends ChoiceProvider<ObjectMemento> {
     }
 
     @Override
-    public String getDisplayValue(final ObjectMemento choice) {
-        if (choice == null) {
+    public String getDisplayValue(final ObjectMemento choiceMemento) {
+        if (choiceMemento == null) {
             return NULL_DISPLAY_TEXT;
         }
-        val objectAdapter = getCommonContext().reconstructObject(choice);
-        if(ManagedObjects.isNullOrUnspecifiedOrEmpty(objectAdapter)) {
-            return "Internal error: broken memento " + choice;
+        val choice = getCommonContext().reconstructObject(choiceMemento);
+        if(ManagedObjects.isNullOrUnspecifiedOrEmpty(choice)) {
+            return "Internal error: broken memento " + choiceMemento;
         }
-        final IConverter<Object> converter = findConverter(objectAdapter);
+        final IConverter<Object> converter = findConverter(choice);
         return converter != null
-                ? converter.convertToString(objectAdapter.getPojo(), getLocale())
-                : objectAdapter.titleString(null);
+                ? converter.convertToString(choice.getPojo(), getLocale())
+                : choice.titleString(null);
     }
 
     protected Locale getLocale() {
         return Session.exists() ? Session.get().getLocale() : Locale.ENGLISH;
     }
 
-    protected IConverter<Object> findConverter(final ManagedObject objectAdapter) {
-        return IsisConverterLocator.findConverter(objectAdapter, getWicketViewerSettings());
+    protected IConverter<Object> findConverter(final ManagedObject choice) {
+        return IsisConverterLocator.findConverter(choice, getWicketViewerSettings());
     }
 
     @Override
-    public String getIdValue(final ObjectMemento choice) {
-        if (choice == null) {
+    public String getIdValue(final ObjectMemento choiceMemento) {
+        if (choiceMemento == null) {
             return NULL_PLACEHOLDER;
         }
-        final ObjectSpecId objectSpecId = choice.getObjectSpecId();
-        final ObjectSpecification spec = getCommonContext().getSpecificationLoader()
+        val objectSpecId = choiceMemento.getObjectSpecId();
+        val spec = getCommonContext().getSpecificationLoader()
                 .lookupBySpecIdElseLoad(objectSpecId);
 
         // support enums that are implementing an interface; only know this late in the day
         // TODO: this is a hack, really should push this deeper so that Encodeable OAMs also prefix themselves with their objectSpecId
         if(spec != null && spec.isEncodeable()) {
-            return objectSpecId.asString() + ":" + choice.asString();
+            return objectSpecId.asString() + ":" + choiceMemento.asString();
         } else {
-            return choice.asString();
+            return choiceMemento.asString();
         }
     }