org.springbyexample.web.servlet.view.tiles2
Class TilesAjaxUrlBasedViewResolver
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractCachingViewResolver
org.springframework.web.servlet.view.UrlBasedViewResolver
org.springframework.js.ajax.AjaxUrlBasedViewResolver
org.springbyexample.web.servlet.view.tiles2.TilesAjaxUrlBasedViewResolver
- All Implemented Interfaces:
- ApplicationContextAware, Ordered, ServletContextAware, ViewResolver
public class TilesAjaxUrlBasedViewResolver
- extends org.springframework.js.ajax.AjaxUrlBasedViewResolver
Extends AjaxUrlBasedViewResolver
and provides
some properties to set tiles values if the view is a
DynamicTilesView
.
- Author:
- David Winterfeldt
Methods inherited from class org.springframework.js.ajax.AjaxUrlBasedViewResolver |
createView |
Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver |
canHandle, getAttributesMap, getCacheKey, getContentType, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, requiredViewClass, setAttributes, setAttributesMap, setContentType, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TilesAjaxUrlBasedViewResolver
public TilesAjaxUrlBasedViewResolver()
setTilesDefinitionName
public void setTilesDefinitionName(String tilesDefinitionName)
- Main template name.
setTilesBodyAttributeName
public void setTilesBodyAttributeName(String tilesBodyAttributeName)
- Tiles body attribute name.
setTilesDefinitionDelimiter
public void setTilesDefinitionDelimiter(String tilesDefinitionDelimiter)
- Sets Tiles definition delimiter.
buildView
protected AbstractUrlBasedView buildView(String viewName)
throws Exception
- Does everything the
UrlBasedViewResolver
does and
also sets some Tiles specific values on the view.
- Overrides:
buildView
in class UrlBasedViewResolver
- Parameters:
viewName
- the name of the view to build
- Returns:
- the View instance
- Throws:
Exception
- if the view couldn't be resolved- See Also:
UrlBasedViewResolver.loadView(String, java.util.Locale)
Copyright © 2008 Spring by Example. All Rights Reserved.