Add it to the Page model, Click automatically adds the page model to Velocity's context.
Please see the user guide: http://click.apache.org/docs/user-guide/html/ch01.html regards Bob On 2011/04/01 13:36 PM, Mohamed Yahya wrote: > Thank you, how do I get the velocity context from a click Page? > > On Fri, Apr 1, 2011 at 11:35, Bob Schellink <[email protected]> wrote: >> Hi Mohamed, >> >> Velocity 1.6 and up supports this: >> >> http://velocity.apache.org/engine/devel/developer-guide.html#supportforstaticclasses >> >> Kind regards >> >> Bob >> >> On 2011/04/01 13:23 PM, Mohamed Yahya wrote: >>> Hi, >>> >>> How can I call a static method from a (velocity) template when using >>> Apache Click? >>> >>> Thank you, >>> Mohamed >>> >> >> > > >
