Re: How to retrieve the actually selected ApplicationMenuItem title?

2009-11-12 Thread Bruno Busco
Hi Scott, finally I found out how to do it (thanks to Angelo Matarazzo). I used this code: <#assign appModelMenu = Static["org.ofbiz.widget.menu.MenuFactory"].getMenuFromLocation(applicationMenuLocation,applicationMenuName,delegator,dispatcher)> ${appModelMenu.getModelMenuItemByName(headerItem).ge

Re: How to retrieve the actually selected ApplicationMenuItem title?

2009-11-05 Thread Scott Gray
Ah okay, forget that code sample then, I thought you were after something else. I can't think of any way to do what you are attempting without changes to the framework. Regards Scott On 6/11/2009, at 7:22 PM, Bruno Busco wrote: Thank you Scott, I have tryied it but it results in error (s

Re: How to retrieve the actually selected ApplicationMenuItem title?

2009-11-05 Thread Bruno Busco
Thank you Scott, I have tryied it but it results in error (see below). What I am trying to do is to have the title of the actually selected xxxAppBar menu. So, for instance, if we are in the accounting application and the "Invoices" menu is selected (headerItem is equal to "invoices") I would lik

Re: How to retrieve the actually selected ApplicationMenuItem title?

2009-11-05 Thread Scott Gray
Hi Bruno, You could do something like: <#assign appTitle = Static ["org .ofbiz .base.component.ComponentConfig"].getWebAppInfo(parameters._serverId, parameters._CONTEXT_ROOT_).getTitle() /> That's all that comes to mind, there may be a better way. Regards Scott HotWax Media http://www.h

How to retrieve the actually selected ApplicationMenuItem title?

2009-11-05 Thread Bruno Busco
Hi devs, I need to retrieve, from a ftl file, the title of the actually selected item in the actual Application menu. Could someone give some pointer? Many thanks, -Bruno