public class AjaxFreeMarkerView extends 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.
SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE
DEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
Constructor and Description |
---|
AjaxFreeMarkerView() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected String[] |
getRenderFragments(Map<String,Object> model,
HttpServletRequest request,
HttpServletResponse response) |
protected boolean |
isAjaxRequest(HttpServletRequest request,
HttpServletResponse response) |
protected void |
renderMergedTemplateModel(Map<String,Object> model,
HttpServletRequest request,
HttpServletResponse response) |
void |
setViewResolver(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, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractUrlBasedView
Exception
public void setViewResolver(ViewResolver viewResolver)
protected void renderMergedTemplateModel(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception
renderMergedTemplateModel
in class FreeMarkerView
Exception
protected boolean isAjaxRequest(HttpServletRequest request, HttpServletResponse response)
protected String[] getRenderFragments(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response)
Copyright © 2015. All rights reserved.