[
https://issues.apache.org/jira/browse/OFBIZ-3807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruno Busco updated OFBIZ-3807:
-------------------------------
Attachment: POC_InjectedMainMenu.patch
I started playing with the menu injection patch Scott has provided in
OFBIZ-3373 to see how we could use this mechanism to allow all applications
inject their main menu in a framework defined common MainMenu.
In the attached patch there is a very simple POC of this (you need to apply the
https://issues.apache.org/jira/secure/attachment/12448859/injections.patch from
OFBIZ-3373 to test it).
The Party and ProjectMgr applications inject their main menus in a framework
defined MainMenu.
This new main menu is rendered directly under the header (just to see if it
works).
- It seems we should be able to inject complete menus and not only menu items
so that a two levels menu could be formed.
- Being able to inject a complete already defined menu would be IMO the best.
- It seems that the uiLabel handling still has some issue. The Party menu is
well rendered while the Project not.
> Application name localizations should not be defined in the CommonUiLabels
> framework file
> -----------------------------------------------------------------------------------------
>
> Key: OFBIZ-3807
> URL: https://issues.apache.org/jira/browse/OFBIZ-3807
> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: SVN trunk
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: POC_InjectedMainMenu.patch
>
>
> There is a weak dependence from the framework to ALL applications because the
> application name localization for the application menu is defined in
> CommonUiLabels.xml file.
> Whenever a user wants to add an application and localize its name, a new
> entry in CommonUiLabels.xml framework file needs to be created.
> How could we have the application menu use the application specific labels
> file to get the localitazion?
> The injectable menu we are speaking about could be the solution.
> A simple main menu could be defined in the framework with only the Webtools
> and Example menu entries.
> Every application could inject its own application menu entries.
> An application could also inject menu entries in several different menus so
> that, for example all application's administrations could be placed in one
> unique high level "admin" menu entry.
> This could also allow a party/content binding component to inject menu
> entries into otherwise stand-alone party and content applications.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.