andi-huber commented on code in PR #1755:
URL: https://github.com/apache/causeway/pull/1755#discussion_r1239603405


##########
core/metamodel/src/main/java/org/apache/causeway/core/metamodel/postprocessors/param/ChoicesAndDefaultsPostProcessor.java:
##########
@@ -68,6 +70,13 @@ public void postProcessParameter(
             final ObjectAction objectAction,
             final ObjectActionParameter param) {
 
+        // no need to check if this action is always hidden in the UI
+        // (eg if it exists solely to be called via the WrapperFactory service)
+        val hiddenFacet = objectAction.getFacet(HiddenFacet.class);

Review Comment:
   We have convenient utility code for this in `Facets.hiddenWhere(...).`



-- 
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]

Reply via email to