public class AjaxTiles3View
extends org.springframework.web.servlet.view.tiles3.TilesView
This implementation uses the DefaultAjaxHandler
by default
to determine whether the current request is an Ajax request. On an Ajax request,
a "fragments" parameter will be extracted from the request in order to
determine which attributes to render from the current tiles view.
Constructor and Description |
---|
AjaxTiles3View() |
Modifier and Type | Method and Description |
---|---|
protected void |
addRuntimeAttributes(org.apache.tiles.impl.BasicTilesContainer container,
org.apache.tiles.request.Request tilesRequest,
java.util.Map<java.lang.String,org.apache.tiles.Attribute> resultMap)
Iterate over dynamically added Tiles attributes (see "Runtime Composition"
in the Tiles documentation) and add them to the output Map passed as input.
|
protected void |
flattenAttributeMap(org.apache.tiles.impl.BasicTilesContainer container,
org.apache.tiles.request.Request tilesRequest,
java.util.Map<java.lang.String,org.apache.tiles.Attribute> resultMap,
org.apache.tiles.Definition definition)
Iterate over all attributes in the given Tiles definition.
|
AjaxHandler |
getAjaxHandler() |
protected java.lang.String[] |
getRenderFragments(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
renderMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setAjaxHandler(AjaxHandler ajaxHandler) |
afterPropertiesSet, checkResource, createTilesRequest, setAlwaysInclude, setExposeJstlAttributes, setRenderer
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, initServletContext, isContextRequired, setServletContext
public AjaxHandler getAjaxHandler()
public void setAjaxHandler(AjaxHandler ajaxHandler)
protected void renderMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
renderMergedOutputModel
in class org.springframework.web.servlet.view.tiles3.TilesView
java.lang.Exception
protected java.lang.String[] getRenderFragments(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void flattenAttributeMap(org.apache.tiles.impl.BasicTilesContainer container, org.apache.tiles.request.Request tilesRequest, java.util.Map<java.lang.String,org.apache.tiles.Attribute> resultMap, org.apache.tiles.Definition definition)
container
- the TilesContainertilesRequest
- the Tiles RequestresultMap
- the output Map where attributes of interest are added to.definition
- the definition to search for attributes of interest.protected void addRuntimeAttributes(org.apache.tiles.impl.BasicTilesContainer container, org.apache.tiles.request.Request tilesRequest, java.util.Map<java.lang.String,org.apache.tiles.Attribute> resultMap)
container
- the Tiles containertilesRequest
- the Tiles requestresultMap
- the output Map where attributes of interest are added to.