You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2025/10/26 10:18:23 UTC

(causeway) branch main updated: CAUSEWAY-3916: fixes prev. commit

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 14401d0feb9 CAUSEWAY-3916: fixes prev. commit
14401d0feb9 is described below

commit 14401d0feb94573f4f57d719f32b68e75c1871f3
Author: a.huber <a....@apache.org>
AuthorDate: Sun Oct 26 11:18:18 2025 +0100

    CAUSEWAY-3916: fixes prev. commit
---
 .../org/apache/causeway/commons/internal/html/_Bootstrap.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/commons/src/main/java/org/apache/causeway/commons/internal/html/_Bootstrap.java b/commons/src/main/java/org/apache/causeway/commons/internal/html/_Bootstrap.java
index 363f5b218dc..f3464144e96 100644
--- a/commons/src/main/java/org/apache/causeway/commons/internal/html/_Bootstrap.java
+++ b/commons/src/main/java/org/apache/causeway/commons/internal/html/_Bootstrap.java
@@ -43,7 +43,7 @@
  * @since 4.0
  */
 @UtilityClass
-@ExtensionMethod({_JsoupExt.class, _Bootstrap.Extensions.class})
+@ExtensionMethod({_JsoupExt.class})
 public class _Bootstrap {
 
     public record BootstrapSettings(
@@ -156,7 +156,7 @@ public Page addCssLink(final @Nullable Optional<String> hrefOpt) {
             (hrefOpt!=null
                     ? hrefOpt.filter(StringUtils::hasText)
                     : Optional.<String>empty())
-                .ifPresent(href->head().appendCssLink(href));
+                .ifPresent(href->Extensions.appendCssLink(head(), href));
             return this;
         }
         public Page addScriptLink(final @Nullable String href) {
@@ -486,14 +486,14 @@ public CardHeaderless appendCardHeaderless(final Element container) {
         public Modal appendModal(final Element container, final String title) {
             var modal = Modal.create(container);
             modal.header().appendElement("h3").addClass("modal-title").appendText(title);
-            modal.header().appendButton()
+            appendButton(modal.header())
                 .attr("data-bs-dismiss", "modal")
                 .attr("aria-label", "Close")
                 .addClass("btn-close");
-            modal.footer().appendButton(ButtonVariant.SECONDARY)
+            appendButton(modal.footer(), ButtonVariant.SECONDARY)
                 .attr("data-bs-dismiss", "modal")
                 .appendText("Close");
-            modal.footer().appendButton(ButtonVariant.PRIMARY)
+            appendButton(modal.footer(), ButtonVariant.PRIMARY)
                 .appendText("Save changes");
             return modal;
         }