Package ch.tocco.nice2.netui.impl.bind
Class CustomDataProviderDirective
java.lang.Object
ch.tocco.nice2.netui.impl.bind.CustomDataProviderDirective
- All Implemented Interfaces:
Nice2TemplateDirective
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
Directive to call a CustomDataProvider in freemarker
parameters:
id (required): the id of the CustomDataProvider
entity (required): the entity which gets loaded in the CustomDataProvider
example:
[@getDataProvider id="nice2.dms.MimeTypeIconCustomDataProvider" entity=Resource/]
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionCustomDataProviderDirective
(CustomDataProviderService customDataProviderService) -
Method Summary
-
Constructor Details
-
CustomDataProviderDirective
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, IOException - Specified by:
execute
in interfacefreemarker.template.TemplateDirectiveModel
- Throws:
freemarker.template.TemplateException
IOException
-