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_ATTRIBUTEDEFAULT_CONTENT_TYPEloggerPATH_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, setEncodingapplyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersgetUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContextpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractUrlBasedViewExceptionpublic void setViewResolver(ViewResolver viewResolver)
protected void renderMergedTemplateModel(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception
renderMergedTemplateModel in class FreeMarkerViewExceptionprotected boolean isAjaxRequest(HttpServletRequest request, HttpServletResponse response)
protected String[] getRenderFragments(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response)
Copyright © 2015. All rights reserved.