Re: init(rsvc, context, node) on directives and directive events

2006-12-22 Thread Nathan Bubna
i would only recommend one of two approaches for such things: application scoped tool or RuntimeInstance application attribute On 12/22/06, Townson, Chris <[EMAIL PROTECTED]> wrote: > What exactly is the lifecylcle of a directive? Is is the case > that a userdirective class is instantiated and

Re: init(rsvc, context, node) on directives and directive events

2006-12-22 Thread Will Glass-Husain
Could you use the runtimeservices.getAttribute method to pass/retrieve information? I'd have to review the code to be sure. WILL On 12/22/06, Townson, Chris <[EMAIL PROTECTED]> wrote: > What exactly is the lifecylcle of a directive? Is is the case > that a userdirective class is instantiated a

RE: init(rsvc, context, node) on directives and directive events

2006-12-22 Thread Townson, Chris
> What exactly is the lifecylcle of a directive? Is is the case > that a userdirective class is instantiated and init() called > during velocity's initialization, with render() subsequently > being called for each reference to the directive in a template? ah, no - I see - we're getting a contex

init(rsvc, context, node) on directives and directive events

2006-12-22 Thread Townson, Chris
Hi, What exactly is the lifecylcle of a directive? Is is the case that a userdirective class is instantiated and init() called during velocity's initialization, with render() subsequently being called for each reference to the directive in a template? Is there an event handler for either the i