@Deprecated public class VelocityLayoutViewResolver extends VelocityViewResolver
See VelocityViewResolver's javadoc for general usage info.
VelocityViewResolver
,
VelocityLayoutView
,
setLayoutUrl(java.lang.String)
,
setLayoutKey(java.lang.String)
,
setScreenContentKey(java.lang.String)
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
DEFAULT_CACHE_LIMIT
logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
VelocityLayoutViewResolver()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractUrlBasedView |
buildView(String viewName)
Deprecated.
Creates a new View instance of the specified view class and configures it.
|
protected Class<?> |
requiredViewClass()
Deprecated.
Requires VelocityLayoutView.
|
void |
setLayoutKey(String layoutKey)
Deprecated.
Set the context key used to specify an alternate layout to be used instead
of the default layout.
|
void |
setLayoutUrl(String layoutUrl)
Deprecated.
Set the layout template to use.
|
void |
setScreenContentKey(String screenContentKey)
Deprecated.
Set the name of the context key that will hold the content of
the screen within the layout template.
|
initApplicationContext, setDateToolAttribute, setNumberToolAttribute, setToolboxConfigLocation
setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers
canHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRedirectHosts, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHosts, 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<?> requiredViewClass()
requiredViewClass
in class VelocityViewResolver
VelocityLayoutView
public void setLayoutUrl(String layoutUrl)
layoutUrl
- the template location (relative to the template
root directory)VelocityLayoutView.setLayoutUrl(java.lang.String)
public void setLayoutKey(String layoutKey)
#set($layout = "MyLayout.vm" )
The default key is "layout", as illustrated above.
layoutKey
- the name of the key you wish to use in your
screen content templates to override the layout templateVelocityLayoutView.setLayoutKey(java.lang.String)
public void setScreenContentKey(String screenContentKey)
Default is "screen_content": accessed in VTL as
$screen_content
.
screenContentKey
- the name of the screen content key to useVelocityLayoutView.setScreenContentKey(java.lang.String)
protected AbstractUrlBasedView 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 VelocityViewResolver
viewName
- the name of the view to buildException
- if the view couldn't be resolvedUrlBasedViewResolver.loadView(String, java.util.Locale)