Menu Demo
In Click, an application menu can be defined in the configuration file
/WEB-INF/menu.xml.
This JavaScript drop down menu can be rendered by referencing the root Menu in
the Page template.
$rootMenu
The menu can also be rendered using a Velocity Macro, such as the
writeMenu() macro defined in
macro.vm.
#writeMenu($rootMenu)
The example menu pages all extend
BorderPage which defines a
"rootMenu"
control.
public class MenuPage extends BorderedPage {
@Bindable protected Menu rootMenu = new MenuFactory().getRootMenu();
}