Search code examples
javavelocityclick-framework

Calling static method from template in Apache Click


How can I call a static method from a (velocity) template when using Apache Click?


Solution

  • You can use

    addModel("MyClass", MyClass.class)

    in your Page.