Dynamic p:menu works in PrimeFaces 3.5, not in >4.0
问题 I'm updating a project from Primefaces 3.5 to 4.0 and I've got problem with menu. I can't understand how to create dynamically a simple menu like this: <p:menu> <p:submenu> <p:menuitem value="jump" action="myTransition" /> </p:submenu> </p:menu> I try to set the command of the item with the name of the transition, defined in my Spring web flow configuration, with no result. DefaultMenuItem itemNone = new DefaultMenuItem(); item.setCommand("myTransition"); The plain menu work fine, but if I