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

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


The following commit(s) were added to refs/heads/main by this push:
     new ab6216be115 CAUSEWAY-3948: removes hard coded version strings from 
datatable (webjar)
ab6216be115 is described below

commit ab6216be1154426e524c12ddb18e52bec45ba623
Author: andi-huber <[email protected]>
AuthorDate: Thu Jan 8 14:06:51 2026 +0100

    CAUSEWAY-3948: removes hard coded version strings from datatable
    (webjar)
---
 .../ui/pages/common/datatables/DatatablesDotNet.java    | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/datatables/DatatablesDotNet.java
 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/datatables/DatatablesDotNet.java
index ba74d7822a5..21aa714850f 100644
--- 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/datatables/DatatablesDotNet.java
+++ 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/datatables/DatatablesDotNet.java
@@ -18,20 +18,15 @@
  */
 package org.apache.causeway.viewer.wicket.ui.pages.common.datatables;
 
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import lombok.experimental.Accessors;
+import org.apache.causeway.viewer.commons.model.webjar.WebjarEnumerator;
 
-@RequiredArgsConstructor
-enum DatatablesDotNet {
-
-    VERSION("2.3.6");
-
-    @Getter @Accessors(fluent = true)
-    private final String literal;
+final class DatatablesDotNet {
 
     public static String formatWithVersion(final String format) {
-        return String.format(format, VERSION.literal());
+        var version = WebjarEnumerator.lookupElseFail("datatables")
+            .version();
+
+        return String.format(format, version);
     }
 
 }

Reply via email to