Re: Deep Macro Invocation
Anton Pirker <[email protected]> Tue, 25 Sep 2007 10:02:05 +0200
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Michi!
Michael Platzer schrieb:
> Hi Anton,
>
> Try setting
> allowDeepMacros = true
> in your app.properties, and things should work as expected.
after implementing a basic getMacroHandler() in HopObject like walter
proposed:
----
HopObject/functions.js
function getMacroHandler(name) {
return this[name];
}
----
now it is working! i also discovered that setting allowDeepMacros in
app.properties is not necessary at all. just a
getMacroHandler()-function is enough.
the documentation to this feature [1] is not quite clear in my opinion.
i thought that getMacroHandler() is already existing somewhere deep in
Helma. i have not realized that i should write this method...
cheers,
Anton
[1] http://dev.helma.org/wiki/New+Skin+Features+in+Helma+1.6/#Deepmacros