andi-huber commented on a change in pull request #881:
URL: https://github.com/apache/isis/pull/881#discussion_r835719612
##########
File path:
viewers/wicket/model/src/main/java/org/apache/isis/viewer/wicket/model/models/ScalarModel.java
##########
@@ -349,9 +360,15 @@ public final boolean
hasAssociatedActionWithInlineAsIfEdit() {
if(!spec.isValue()) {
return Optional.empty();
}
- return spec.lookupFacet(ValueFacet.class)
- .<ObjectAction>flatMap(valueFacet->
- valueFacet.selectCompositeValueMixinForFeature(getMetaModel()));
+ return getSpecialization().<Optional<ObjectAction>>fold(
+ param->{
+ return Optional.empty(); //XXX add support later
+ },
+ prop->{
+ return spec.lookupFacet(ValueFacet.class)
+ .<ObjectAction>flatMap(valueFacet->
+
valueFacet.selectCompositeValueMixinForFeature(prop.getManagedProperty()));
Review comment:
maybe move that logic directly into the ObjectSpecification - or the
ManagedProperty
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]