pageLink.getPageParameters(), false).setRenderBodyOnly(true));
} else if (item instanceof ExternalLinkMenuItem) {
// link to a specified href
ExternalLinkMenuItem extLink = (ExternalLinkMenuItem) item;
menuItem.add(new LinkPanel("submenuLink", null, name, extLink.getHref(),
extLink.openInNewWindow()).setRenderBodyOnly(true));
} else if (item instanceof MenuDivider) {
// divider
menuItem.add(new Label("submenuLink").setRenderBodyOnly(true));
WicketUtils.setCssClass(menuItem, "divider");
}