Description
Add the following line to the Menu example class MenuPage:
public MenuPage()
Start the examples, access menu. NOte the following:
- on page load, menus A1, B1, C1, A2, A3, A4, A5 instantiate.
- click on B Menu - menus A1, B1, C1, B2, B3, B4, B5, B6 instantiate
- click on A Menu again - menus A1, B1, C1, A2, A3, A4, A5 instantiate - note they are new instances.
What I would expect to see would be the same Menu instances reused at a minimum. The rootMenu is a static - I can appreciate that different users may have permission restrictions on some menu options, but creating new instances for each menu in the menu.xml on every page load is not right.