Interface AjaxRequestTarget.IListener

    • Method Detail

      • onBeforeRespond

        default void onBeforeRespond​(Map<String,​Component> map,
                                     AjaxRequestTarget target)
        Triggered before ajax request target begins its response cycle
        Parameters:
        map - modifiable map (markupId -> component) of components already added to the target
        target - the target itself. Could be used to add components or to append/prepend javascript
      • onAfterRespond

        default void onAfterRespond​(Map<String,​Component> map,
                                    AjaxRequestTarget.IJavaScriptResponse response)
        Triggered after ajax request target is done with its response cycle. At this point only additional javascript can be output to the response using the provided AjaxRequestTarget.IJavaScriptResponse object NOTE: During this stage of processing any calls to target that manipulate the response (adding components, javascript) will have no effect
        Parameters:
        map - read-only map:markupId->component of components already added to the target
        response - response object that can be used to output javascript
      • updateAjaxAttributes

        default void updateAjaxAttributes​(AbstractDefaultAjaxBehavior behavior,
                                          AjaxRequestAttributes attributes)
        Triggered for every Ajax behavior. Can be used to configure common settings.
        Parameters:
        behavior - the behavior the attributes are updated for
        attributes - The attributes for the Ajax behavior
        Since:
        7.0.0