Access MenuBar from MenuItem

Hello,

is there any way to access the container MenuBar Object from a MenuItem? the available getParent function returns only the top MenuItem and not the MenuBar.

Thanks.

If I look at the source, a MenuItem has no reference at all to the menu bar. Perhaps you can wrap your menu item to add this reference.

I have changed my application to keep the reference of MenuBar as well, but could this be a possible feature to be added in a later version?

Hi Nicole,

It seems that there is currently not an enhancement ticket to that feature:
http://dev.vaadin.com/query?status=accepted&status=assigned&status=new&summary=~menubar&order=priority

But you can always post a new ticket into the TRAC so it will be considered by aour R&D team.

#johannest