Re: Nested Java directives - best practice on how to make values available to inner directive?
"Alistair Israel" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
On Jan 31, 2008 6:16 PM, Daniel Dekany <[email protected]> wrote: > Anyway, what you are looking for is > called "parent-child communication" or "parent-children communication" > on this list. But this feature was only added in 2.4, which is > unreleased and unstable. Thanks. That's pretty much what I'm looking for, exactly. Can't wait for 2.4, then. > They won't be (unless the Spring guys did some big trick...), since a > shared variable is always a top-level variable, for technical reasons. So shared variables are always top-level variables, got it. I guess the segue question is how do I load custom Java directives at Configuration time? I mean, what's the equivalent of Configuration.addAutoInclude("mynamespace", "mymacros.ftl") for custom Java directives? > I say, use globals for now... Which can be even more irritating when > you have directives that can be nested into the same kind of directive > (like: <@ul bullet="box.gif">...<@ul bullet="arrow.gif">...</@ul>...</@ul>) I know. Or see if Jonathan's tip on using env.getCurrentNameSpace().get() will help in cases like this. Ahh - meanwhile, I'll just have to be content with what can get done now. - Alistair A. Israel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/