I have a page with delete button. I would like to show a custom warning dialog when delete button is clicked. I cannot use onClick confirmDelete() js method as I need to customize the warning message based on some business logic.
In the controller I thought of writing an action for delete, but not sure how to show javascript warning dialog from there.