public class RegionView extends AbstractWebFrameworkView
View implementation for a Surf page region. URLs are expected to be invoked as shown:
Most commonly, these are:
The region is rendered along with its chrome. If a component is contained in the region, it is also rendered.
MIMETYPE_HTML| Constructor and Description |
|---|
RegionView(WebFrameworkConfigElement webFrameworkConfiguration,
ModelObjectService modelObjectService,
ResourceService resourceService,
RenderService renderService,
TemplatesContainer templatesContainer)
This is the preferred constructor to use for instantiating a new
RegionView because it allows
complete flexibility when rendering the view. |
RegionView(WebFrameworkServiceRegistry serviceRegistry)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
renderView(RequestContext context)
To be implemented by view classes to provide render dispatch
|
exposeForwardRequestAttributes, getObjectService, getRenderService, getResourceService, getTemplatesContainer, getUriTokens, getUrlHelperFactory, getWebFrameworkConfiguration, lookupPage, populateRequestContext, renderMergedOutputModel, setupRequestContext, setUriTokens, setUrlHelperFactory, validateRequestContextafterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic RegionView(WebFrameworkConfigElement webFrameworkConfiguration, ModelObjectService modelObjectService, ResourceService resourceService, RenderService renderService, TemplatesContainer templatesContainer)
This is the preferred constructor to use for instantiating a new RegionView because it allows
complete flexibility when rendering the view. An AbstractWebFrameworkView is typically instantiated from
within a AbstractWebFrameworkViewResolver and all the arguments in the constructor signature should be
supplied to the AbstractWebFrameworkViewResolver as beans via the Spring configuration.
webFrameworkConfiguration - WebFrameworkConfigElementmodelObjectService - ModelObjectServiceresourceService - ResourceServicerenderService - RenderServicetemplatesContainer - TemplatesContainerpublic RegionView(WebFrameworkServiceRegistry serviceRegistry)
This constructor should be avoided if possible because it relies on the supplied WebFrameworkServiceRegistry
argument to provide all the other Spring beans required to render the view. This means that there is no flexibility via
configuration to adapt different views to use different beans.
serviceRegistry - WebFrameworkServiceRegistryprotected void renderView(RequestContext context) throws Exception
AbstractWebFrameworkViewrenderView in class AbstractWebFrameworkViewcontext - the render contextExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.