use of com.revolsys.ui.html.view.MenuElement in project com.revolsys.open by revolsys.
the class MenuViewController method menu.
@RequestMapping("/view/menu/{menuName}")
public void menu(final HttpServletRequest request, final HttpServletResponse response, @PathVariable("menuName") final String menuName) throws IOException {
final Menu menu = (Menu) request.getAttribute(menuName);
if (menu != null) {
final MenuElement menuElement = new MenuElement(menu, menuName);
final OutputStream out = response.getOutputStream();
menuElement.serialize(out);
}
}
Aggregations