This content has been marked as final.
Show 2 replies
-
2. Re: actionListener method is ignored on rich:panelMenuItem
benoutram Feb 8, 2008 9:57 AM (in response to benoutram)Thanks for logging the bug.
Hello
When a rich:panelMenuItem item is clicked the actionListener method is not executed if the parent rich:panelMenu 'expandSingle' attribute is set to true.
For example
<f:view> <h:form> <rich:panel id="menuPanel" styleClass="panel_menu"> <rich:panelMenu id="menu" expandSingle="true"> <rich:panelMenuGroup label="Group1"> <rich:panelMenuItem label="Item" actionListener="#{menu.itemClicked}"/> </rich:panelMenuGroup> <rich:panelMenuGroup label="Group2"/> </rich:panelMenu> </rich:panel> </h:form> </f:view> public class MenuBean { public void itemClicked(ActionEvent event) { System.out.println("menu item clicked"); } } <managed-bean> <managed-bean-name>menu</managed-bean-name> <managed-bean-class>MenuBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> </managed-bean>
Thanks for logging the bug.