Application menus can be defined in configuration file /WEB-INF/menu.xml

To access the root menu item of the applications configured menus simply create a root Menu item using the default construtor:

public class MenuPage extends BorderedPage {

    public MenuPage() {
        addControl(new Menu("rootMenu"));
    } 
}
This Menu constructor will return copy of the menu tree, which can be accessed via the children property. In the menu tree, the Menu item for the current page will be selected, and its parents will also be selected.

In this example the applications menu is rendered as a 2 level menu using a Velocity Macro macro.vm