public class RegionFreemarkerTagDirective extends RenderServiceExtensibilityDirective
A FreeMarker directive that uses a PresentationService to render the region specified through properties supplied when invoking it.
| Constructor and Description |
|---|
RegionFreemarkerTagDirective(String directiveName,
org.springframework.extensions.surf.extensibility.ExtensibilityModel model,
RequestContext context,
ModelObject object,
RenderService renderService)
Instantiates a new
RegionFreemarkerTagDirective. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveData |
createExtensibilityDirectiveData(String id,
String action,
String target,
Map params,
freemarker.template.TemplateDirectiveBody body,
freemarker.core.Environment env)
Overrides the the default directive to create a
RegionDirectiveData object
for storing the extensibility directive data. |
getObject, getRenderService, getRequestContextafter, before, execute, getId, getModel, merge, remove, replacepublic RegionFreemarkerTagDirective(String directiveName, org.springframework.extensions.surf.extensibility.ExtensibilityModel model, RequestContext context, ModelObject object, RenderService renderService)
Instantiates a new RegionFreemarkerTagDirective. The RenderService will be
used by calling its renderRegion method to generate the output. The directive name is only needed
for generating useful exception messages to assist debugging problems but an effort should be made to set it
correctly
directiveName - The name of the directive represented by the instance of this class.context - A RenderContext required as an argument to the RenderService.renderRegion method.renderService - A RenderService used to generate the output of the directive by calling
its renderRegion method.public org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveData createExtensibilityDirectiveData(String id, String action, String target, Map params, freemarker.template.TemplateDirectiveBody body, freemarker.core.Environment env) throws freemarker.template.TemplateException
Overrides the the default directive to create a RegionDirectiveData object
for storing the extensibility directive data. This differs from the default implementation
in that it provides an alternative render method which allows us to delegate
to the associated RenderService.
createExtensibilityDirectiveData in class org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirectivefreemarker.template.TemplateExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.