Class AjaxThymeleafView
- Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.thymeleaf.spring4.view.AbstractThymeleafView
-
- org.thymeleaf.spring4.view.ThymeleafView
-
- org.thymeleaf.spring4.view.AjaxThymeleafView
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.View
,AjaxEnabledView
- Direct Known Subclasses:
FlowAjaxThymeleafView
@Deprecated public class AjaxThymeleafView extends ThymeleafView implements AjaxEnabledView
Deprecated.Deprecated in 3.0.0. Moved to theorg.thymeleaf.spring4.webflow.view
package. Will be removed from this package in Thymeleaf 3.1.Subclass of
ThymeleafView
adding compatibility with AJAX events in Spring JavaScript (part of Spring WebFlow). This allows this View implementation to be able to return only fragments of the page.These rendering of fragments is used, for example, in Spring WebFlow's <render> instructions (though not only).
This view searches for a comma-separated list of markup selectors in a request parameter called
fragments
.- Since:
- 2.0.11
- Author:
- Daniel Fernández
-
-
Field Summary
-
Fields inherited from class org.thymeleaf.spring4.view.AbstractThymeleafView
DEFAULT_CONTENT_TYPE, DEFAULT_PRODUCE_PARTIAL_OUTPUT_WHILE_PROCESSING
-
-
Constructor Summary
Constructors Constructor Description AjaxThymeleafView()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.js.ajax.AjaxHandler
getAjaxHandler()
Deprecated.Return the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not.protected Set<String>
getRenderFragments(Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Deprecated.void
render(Map<String,?> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Deprecated.void
setAjaxHandler(org.springframework.js.ajax.AjaxHandler ajaxHandler)
Deprecated.Sets the AJAX handler (from Spring Javascript) used to determine whether a request is an AJAX request or not.-
Methods inherited from class org.thymeleaf.spring4.view.ThymeleafView
getMarkupSelector, renderFragment, setMarkupSelector
-
Methods inherited from class org.thymeleaf.spring4.view.AbstractThymeleafView
addRequestContextAsVariable, addStaticVariable, getBeanName, getCharacterEncoding, getContentType, getForceContentType, getLocale, getProducePartialOutputWhileProcessing, getStaticVariables, getTemplateEngine, getTemplateName, isContentTypeSet, isForceContentTypeSet, isProducePartialOutputWhileProcessingSet, setBeanName, setCharacterEncoding, setContentType, setForceContentType, setLocale, setProducePartialOutputWhileProcessing, setStaticVariables, setTemplateEngine, setTemplateName
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
-
-
-
-
Method Detail
-
getAjaxHandler
public org.springframework.js.ajax.AjaxHandler getAjaxHandler()
Deprecated.Description copied from interface:AjaxEnabledView
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 thatAjaxEnabledView.setAjaxHandler(AjaxHandler)
can be called by the resolver when resolving the view, setting the default AJAX handler being used.- Specified by:
getAjaxHandler
in interfaceAjaxEnabledView
- Returns:
- the AJAX handler.
-
setAjaxHandler
public void setAjaxHandler(org.springframework.js.ajax.AjaxHandler ajaxHandler)
Deprecated.Description copied from interface:AjaxEnabledView
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.- Specified by:
setAjaxHandler
in interfaceAjaxEnabledView
- Parameters:
ajaxHandler
- the AJAX handler.
-
render
public void render(Map<String,?> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Deprecated.- Specified by:
render
in interfaceorg.springframework.web.servlet.View
- Overrides:
render
in classThymeleafView
- Throws:
Exception
-
-