Skip to content

Conversation

@solomax
Copy link
Contributor

@solomax solomax commented Oct 1, 2025

…d; bootstrap-confirmation.js code clean-up; Examples are updated

…are fixed; bootstrap-confirmation.js code clean-up; Examples are updated
target.add(feedback);
}
};
/*confirmationButton.add(new AjaxEventBehavior("confirmed.bs.confirmation") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @martin-g,

I probably found an issue in Wicket

for whatever reason this behavior is NOT working if being set before ConfirmationBehavior)

and works as expected if being set after ....

I was unable to find the reason and would appreciate any help with it :)))

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @solomax !
Sorry! I don't have the time to help you with this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is a Wicket problem. If I see this correctly, AjaxEventBehavior and the ConfirmationBehavior both register a listener for "confirmed.bs.confirmation", so it is probably an issue boiling down to the order in which the event listeners are executed in the browser. I didn't check what exactly the listeners do though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction: bootstrap-confimration.js doesn't listen for the event but trigger it. Still, are you sure it's not a client-side JS issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reckart I wasn't able to find the root cause :((( tried to debug but with no luck :((

I'm also not sure it is wicket problem, but I can see no JS conflict, would appreciate if you can take a look :))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this potential issue is not affecting anyone else, maybe we can merge and release while I'll try to further investigate it in my spare time, WDYT? :))

@martin-g
Copy link
Owner

martin-g commented Oct 3, 2025

@solomax Should I merge as-is for this release ?

@solomax
Copy link
Contributor Author

solomax commented Oct 3, 2025

@martin-g yes, please :)

@martin-g martin-g merged commit 1b2e7ae into martin-g:wicket-10.x-bootstrap-5.x Oct 3, 2025
2 checks passed
@solomax solomax deleted the bootstrap-confirmation-client-events branch October 3, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants