this.menuItems = menuItems;
this.menu = new WebMarkupContainer("menu");
this.menu.setOutputMarkupId(true);
this.menu.add(new BgIframeBehavior());
// add the loop used to generate menu items
this.menu.add(new Loop("items", menuItems.size()) {
private static final long serialVersionUID = 1L;