[midPoint-git] [Evolveum/midpoint] b86e90: Mechanism to trigger Ajax reaction upon Ajax actio...

matisovaa noreply at github.com
Mon Mar 23 07:16:00 CET 2026


  Branch: refs/heads/tmp/10994
  Home:   https://github.com/Evolveum/midpoint
  Commit: b86e90f610837dd2b154107ce6c78a73288d18d3
      https://github.com/Evolveum/midpoint/commit/b86e90f610837dd2b154107ce6c78a73288d18d3
  Author: Andrej Zan <andrej.zan at evolveum.com>
  Date:   2026-03-20 (Fri, 20 Mar 2026)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/panel/qname/ResourceObjectFocusTypePanelFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/resource/component/wizard/schemaHandling/objectType/smart/component/SmartSuggestButtonWithConfirmation.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/dialog/ConfirmationOption.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ActivityIndicationInteractionsPair.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/AjaxEventBasedInteractionsLinker.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/BlockingActionButtonWithConfirmationOptionsDialog.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ButtonWithConfirmationOptionsDialog.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ComponentInteractionsPair.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/DropDownChoiceSuggestPanel.java

  Log Message:
  -----------
  Mechanism to trigger Ajax reaction upon Ajax action finishes

**What**

The cryptic title means, that we now have a mechanism which allows an
action, completed by one Ajax request to trigger a reaction using
another "automatic" Ajax request.

This commit also integrates that mechanism to the wizard panel with
focus suggestion button.

**Why**

We needed a way, how to run blocking operation in an arbitrary Ajax
request (without the access to the underlying component), but at the
same time to update a different component text to indicate the activity.
But normally, the component will be updated only when the Ajax request
finishes and returns the response back to the browser. That is of course
too late, because the operation is already done.

To workaround that, this commit introduce a mechanism, in which we can
create an action, which can be run in arbitrary Ajax request, and then
"link" it to a reaction, which will be triggered by another Ajax request
after the one with action returns the response back to the browser.

The important part is, that we switched the order when the blocking
operation is run. Instead of running it in the first Ajax request as
part of the "action", we run it in the second triggered Ajax request as
part of the "reaction". In the "action" we only set the component
text/icon to indicate processing. In reaction, after the blocking
operation is finished, we restore the text/icon of the component.

I think, that mentioned mechanism may be useful in future also in other
places, so I extracted it to few classes, which allows to use it
relatively simply by any set of two components (or better said between
component and any Ajax request).


  Commit: 9eaac0d0e2cbf8d0e3cacde4f9ae0deccaba186b
      https://github.com/Evolveum/midpoint/commit/9eaac0d0e2cbf8d0e3cacde4f9ae0deccaba186b
  Author: Viliam Repan <vilo.repan at evolveum.com>
  Date:   2026-03-21 (Sat, 21 Mar 2026)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ComponentInteractionsPair.java

  Log Message:
  -----------
  Fixed build


  Commit: 2ccd234ff48a1979db7f3c947b92a011630eb660
      https://github.com/Evolveum/midpoint/commit/2ccd234ff48a1979db7f3c947b92a011630eb660
  Author: Viliam Repan <vilo.repan at evolveum.com>
  Date:   2026-03-21 (Sat, 21 Mar 2026)

  Changed paths:
    M pom.xml

  Log Message:
  -----------
  dependencies bump, spring, netty


  Commit: bcd359b18c40dd9fdb4eae941ba8b49c2774dbe9
      https://github.com/Evolveum/midpoint/commit/bcd359b18c40dd9fdb4eae941ba8b49c2774dbe9
  Author: matisovaa <antonia.matisova at gmail.com>
  Date:   2026-03-23 (Mon, 23 Mar 2026)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/panel/qname/ResourceObjectFocusTypePanelFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/resource/component/wizard/schemaHandling/objectType/smart/component/SmartSuggestButtonWithConfirmation.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/dialog/ConfirmationOption.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ActivityIndicationInteractionsPair.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/AjaxEventBasedInteractionsLinker.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/BlockingActionButtonWithConfirmationOptionsDialog.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ButtonWithConfirmationOptionsDialog.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/ComponentInteractionsPair.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/DropDownChoiceSuggestPanel.java
    M pom.xml

  Log Message:
  -----------
  Merge branch 'master' into tmp/10994


Compare: https://github.com/Evolveum/midpoint/compare/bb1984391554...bcd359b18c40

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list