public class TilesViewResolver extends UrlBasedViewResolver
UrlBasedViewResolver
that supports
TilesView
(i.e. Tiles definitions) and custom subclasses of it.FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
DEFAULT_CACHE_LIMIT
logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
TilesViewResolver() |
Modifier and Type | Method and Description |
---|---|
protected TilesView |
buildView(String viewName)
Creates a new View instance of the specified view class and configures it.
|
protected Class |
getViewClass()
Return the view class to be used to create views.
|
void |
setRenderer(org.apache.tiles.request.render.Renderer renderer)
Set the
Renderer to use. |
canHandle, createView, getAttributesMap, getCacheKey, getContentType, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, requiredViewClass, setAttributes, setAttributesMap, setContentType, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames
clearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolved
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
protected Class getViewClass()
UrlBasedViewResolver
getViewClass
in class UrlBasedViewResolver
public void setRenderer(org.apache.tiles.request.render.Renderer renderer)
Renderer
to use. If not set, by default
DefinitionRenderer
is used.TilesView.setRenderer(Renderer)
protected TilesView buildView(String viewName) throws Exception
UrlBasedViewResolver
Spring lifecycle methods as defined by the bean container do not have to
be called here; those will be applied by the loadView
method
after this method returns.
Subclasses will typically call super.buildView(viewName)
first, before setting further properties themselves. loadView
will then apply Spring lifecycle methods at the end of this process.
buildView
in class UrlBasedViewResolver
viewName
- the name of the view to buildException
- if the view couldn't be resolvedUrlBasedViewResolver.loadView(String, java.util.Locale)