Hi Marc,
We pass around a GET/POST parameter indicating the currently selected
navigation item (?navitem=blah) and our base Screen class saves this in user
temporary storage:
data.getUser().setTemp("currentNavItem", navItem);
In our templates we use a pull tool to retrieve the currently selected
navigation item from user temporary storage so that we know which button
state to display.
You can see the initial version of our Turbine application at
http://www.kahootz.com to see how this works.
Regards,
-- Rodney
On Tue, 17 Sep 2002 21:03, you wrote:
> Hi,
> I want to have a main menu and a sub menu, in different vm-files, to be
> called by my Default.vm layout template.
> Within I want to highlight the current menu item that has been selected.
> HOw do I get the information which menu-item has been selected?
> Read it out of the context?
> Using $navigation ?
> Or $data.getScreen() ?
> Is it possible to write a screen-class for the 2 navigation-templates?
> Is there an example how to do this available?
>
> Browsing the archive didn't help.
> Thanks,
> Marc
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>