Class CustomDataProviderDirective

java.lang.Object
ch.tocco.nice2.netui.impl.bind.CustomDataProviderDirective
All Implemented Interfaces:
Nice2TemplateDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class CustomDataProviderDirective extends Object implements Nice2TemplateDirective
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/]
  • Constructor Details

  • 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 interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException