Convenience subclass of VelocityViewResolver, adding support for VelocityLayoutView and its properties.
See VelocityViewResolver's javadoc for general usage info.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.servlet.view.UrlBasedViewResolver
| |||||||||||
From interface
org.springframework.core.Ordered
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.support.ApplicationObjectSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set the context key used to specify an alternate layout to be used instead
of the default layout.
| |||||||||||
Set the layout template to use.
| |||||||||||
Set the name of the context key that will hold the content of
the screen within the layout template.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new View instance of the specified view class and configures it.
| |||||||||||
Requires VelocityLayoutView.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.servlet.view.velocity.VelocityViewResolver
| |||||||||||
From class
org.springframework.web.servlet.view.AbstractTemplateViewResolver
| |||||||||||
From class
org.springframework.web.servlet.view.UrlBasedViewResolver
| |||||||||||
From class
org.springframework.web.servlet.view.AbstractCachingViewResolver
| |||||||||||
From class
org.springframework.web.context.support.WebApplicationObjectSupport
| |||||||||||
From class
org.springframework.context.support.ApplicationObjectSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.ApplicationContextAware
| |||||||||||
From interface
org.springframework.core.Ordered
| |||||||||||
From interface
org.springframework.web.context.ServletContextAware
| |||||||||||
From interface
org.springframework.web.servlet.ViewResolver
|
Set the context key used to specify an alternate layout to be used instead
of the default layout. Screen content templates can override the layout
template that they wish to be wrapped with by setting this value in the
template, for example:
#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 template |
---|
Set the layout template to use. Default is "layout.vm".
layoutUrl | the template location (relative to the template root directory) |
---|
Set the name of the context key that will hold the content of the screen within the layout template. This key must be present in the layout template for the current screen to be rendered.
Default is "screen_content": accessed in VTL as
$screen_content
.
screenContentKey | the name of the screen content key to use |
---|
Creates a new View instance of the specified view class and configures it. Does not perform any lookup for pre-defined View instances.
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.
viewName | the name of the view to build |
---|
Exception |
---|