Re: deep macros with session object
"Hannes Wallnoefer" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
2007/4/13, [email protected] <[email protected]>: > hello > > next question: > > where do i have to put the getMacroHandler() method if i want to resolve the following deep macro structure? > > <% session.user.name %> > > session is the helma session object, session.user a logged in user (ie. an instance of the User prototype). Nope, session in the macro context is not the session object itself, but session.data. And since session.data is an untyped hopobject, you don't have to implement getMacroHandler() in order to use deep macros on it: session.data.foo = { bar: 123 }; can be accessed from skins via: <% session.data.foo %> hope that helps, hannes > ciao, > tobi > _______________________________________________ > Helma-user mailing list > [email protected] > http://helma.org/mailman/listinfo/helma-user >