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
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
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
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
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