public interface AjaxEnabledView
extends org.springframework.web.servlet.View
Interface defining getter and setter methods for an ajaxHandler property in Views, so that they can be used in Spring AJAX environments.
Modifier and Type | Method and Description |
---|---|
org.springframework.js.ajax.AjaxHandler |
getAjaxHandler()
Return the AJAX handler (from Spring Javascript) used
to determine whether a request is an AJAX request or not.
|
void |
setAjaxHandler(org.springframework.js.ajax.AjaxHandler ajaxHandler)
Sets the AJAX handler (from Spring Javascript) used
to determine whether a request is an AJAX request or not.
|
org.springframework.js.ajax.AjaxHandler getAjaxHandler()
Return the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not.
Views implementing this interface should be used with an instance of
AjaxThymeleafViewResolver
or any of its subclasses,
so that setAjaxHandler(AjaxHandler)
can be called by
the resolver when resolving the view, setting the default
AJAX handler being used.
void setAjaxHandler(org.springframework.js.ajax.AjaxHandler ajaxHandler)
Sets the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not.
Views implementing this interface should be used with an instance of
AjaxThymeleafViewResolver
or any of its subclasses,
so that this method can be called by
the resolver when resolving the view, setting the default
AJAX handler being used.
ajaxHandler
- the AJAX handler.Copyright © 2017 The THYMELEAF team. All rights reserved.