java.lang.Object
org.apache.wicket.ajax.AjaxUtils
Some AJAX related utility functions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
executeIfAjax
(org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> ajaxAction) Runs action if current request is of type "AJAX".static void
executeIfAjaxOrWebSockets
(org.danekja.java.util.function.serializable.SerializableConsumer<IPartialPageRequestHandler> ajaxAction) Runs action if current request is of type "AJAX" or a Websockets request.
-
Constructor Details
-
AjaxUtils
public AjaxUtils()
-
-
Method Details
-
executeIfAjax
public static void executeIfAjax(org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> ajaxAction) Runs action if current request is of type "AJAX". Otherwise, nothing is done.- Parameters:
ajaxAction
- The action to run aSerializableConsumer
-
executeIfAjaxOrWebSockets
public static void executeIfAjaxOrWebSockets(org.danekja.java.util.function.serializable.SerializableConsumer<IPartialPageRequestHandler> ajaxAction) Runs action if current request is of type "AJAX" or a Websockets request. Otherwise, nothing is done.- Parameters:
ajaxAction
- The action to run aSerializableConsumer
-