This is an automated email from the ASF dual-hosted git repository. ahuber pushed a commit to branch 3957-tablerow.action.backport in repository https://gitbox.apache.org/repos/asf/causeway.git
commit 041fd6057970f6141a996edcf8e775a44e30e9bd Author: andi-huber <[email protected]> AuthorDate: Fri Jan 23 10:48:18 2026 +0100 CAUSEWAY-3957: [v2] backports support for disabling Column Action Feature in CausewayConfiguration --- .../org/apache/causeway/core/config/CausewayConfiguration.java | 10 ++++++++++ .../collectioncontents/ajaxtable/columns/ActionColumn.java | 6 ++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java b/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java index b94a2e308c5..810afd2fdae 100644 --- a/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java +++ b/core/config/src/main/java/org/apache/causeway/core/config/CausewayConfiguration.java @@ -2925,6 +2925,16 @@ public static class Authentication { @Data public static class Wicket { + /** + * Whether actions, that have explicit <code>hidden = Where</code> semantics + * to enable them in tables, + * should be gathered into an action column. + * That is, collections of domain objects are presented in the UI as tables, + * where corresponding domain object actions are gathered into an additional + * (typically trailing) column (labeled 'action-column'). + */ + private boolean actionColumnEnabled = true; + /** * Specifies the subclass of * <code>org.apache.causeway.viewer.wicket.viewer.wicketapp.CausewayWicketApplication</code> that is used to diff --git a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/columns/ActionColumn.java b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/columns/ActionColumn.java index 4da3ab14949..6862e5cba1c 100644 --- a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/columns/ActionColumn.java +++ b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/columns/ActionColumn.java @@ -46,10 +46,8 @@ public static Optional<ActionColumn> create( final @NonNull Identifier featureId, final @NonNull ObjectSpecification elementType, final @NonNull Variant collectionVariant) { - //BACKPORT skipped - //var wktConfig = elementType.getMetaModelContext().getConfiguration().getViewer().getWicket(); - //if(!wktConfig.isActionColumnEnabled()) return Optional.empty(); - //---- + var wktConfig = elementType.getMetaModelContext().getConfiguration().getViewer().getWicket(); + if(!wktConfig.isActionColumnEnabled()) return Optional.empty(); var actions = elementType.streamActionsForColumnRendering(featureId) .collect(Can.toCan());
