Class VelocityJavaScriptContributor

All Implemented Interfaces:
Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable

A derivation of VelocityContributor that uses IHeaderResponse.render(org.apache.wicket.markup.head.HeaderItem)
See Also:
  • Constructor Details

    • VelocityJavaScriptContributor

      public VelocityJavaScriptContributor(Class<?> clazz, String templatePath, IModel<? extends Map<String,Object>> model, String id)
      Use this constructor if you have configured Velocity to use a ClasspathResourceLoader. The templatePath will then be relative to the package for clazz
      Parameters:
      clazz -
      templatePath -
      model -
      id -
    • VelocityJavaScriptContributor

      public VelocityJavaScriptContributor(String templatePath, IModel<? extends Map<String,Object>> model, String id)
      Use this constructor when Velocity is configured with the FileResourceLoader. templatePath with then be relative to the loader path configured in velocity.properties
      Parameters:
      templatePath -
      model -
      id -
  • Method Details