All right. Thanks a lot. BoD
Shane Beasley a écrit :
BoD wrote:Thank you very much Tony and Shane, this is exactly what I needed. I guess I'm going to use the RenderTool as it is already available. Just a question about the example $render.eval($ctx, "${object}.$method") Where does $ctx come from? I guess I can get it from $data, as shown in Tony's code, but is there a more simple way to get it?$ctx isn't set by default. They just assume that you get it in there, somehow. Likely, you'd be fine doing what Tony does. Or, if you're using VelocityScreen and friends:public void doBuildTemplate(RunData data, Context context) { super.doBuildTemplate(data, context); context.put("ctx", context); // put the context into itself } Lame, but effective. Shane
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
