- Jboss 7.2
- Primefaces 8
When I click on the menu items does not open any page
Code: Select all
<pu:menu id="mnu_custom" widgetVar="mnu_custom" model="#{personaBean.menu}"/>
Code: Select all
http://localhost:8080/app/gest/persons.xhtml#
Code: Select all
<p:menu id="mnu_custom" widgetVar="mnu_custom" model="#{personaBean.menu}"/>
Code to create menu
Code: Select all
...
menuItem.setId(element);
//menuItem.setUrl(subMenu.getServletPath());
menuItem.setParam("servletPath", subMenu.getServletPath());
if (subMenu.getServletPath().contains("principal.xhtml")) {
menuItem.setCommand("#{themeSwitcherBean.changeToOld}");
menuItem.setUpdate(":contenido");
menuItem.setAjax(false);
} else {
menuItem.setCommand("#{themeSwitcherBean.changeToNew}");
menuItem.setUpdate(":content");
menuItem.setAjax(false);
}
...