public class AjaxFreeMarkerView
extends org.springframework.web.servlet.view.freemarker.FreeMarkerView
On an Ajax request, a "fragments" parameter will be extracted from the request in order to determine which attributes to render from the current view.
Constructor and Description |
---|
AjaxFreeMarkerView() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected String[] |
getRenderFragments(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
isAjaxRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
renderMergedTemplateModel(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setViewResolver(org.springframework.web.servlet.ViewResolver viewResolver) |
autodetectConfiguration, buildTemplateModel, checkResource, doRender, exposeHelpers, getConfiguration, getEncoding, getObjectWrapper, getTemplate, getTemplate, initServletContext, processTemplate, setConfiguration, setEncoding
applyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers
getUrl, isUrlRequired, setUrl, toString
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, isContextRequired, setServletContext
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.web.servlet.view.AbstractUrlBasedView
Exception
public void setViewResolver(org.springframework.web.servlet.ViewResolver viewResolver)
protected void renderMergedTemplateModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedTemplateModel
in class org.springframework.web.servlet.view.freemarker.FreeMarkerView
Exception
protected boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Copyright © 2015. All rights reserved.