text: RF4.3.2: rich:panelMenu - activeItem attribute does not work as expectedAlexey Shakov Jul 17, 2013 4:39 AM
  Hi,
  I need to control the panelMenu selection programmatically and use activeItem attribute to achieve this.
  But it does not work as expected. In the following example, click on the link "select test2 item" has no effect: panel item with name "test2" is getting not selected.
  <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns="" xmlns: <h:head></h:head> <h:body> <h:form <rich:panelMenu <rich:panelMenuItem <rich:panelMenuItem </rich:panelMenu> <a4j:commandLink </h:form> </h:body> </html>
  testBean is a session scope bean:
  public class TestBean { private String compId = "test1"; public String getCompId() { return compId; } public void setCompId(String compId) { this.compId = compId; } }
  What is wrong here?
  Thanks in advance for any help!
  Best regards,
  Alexey
  1. Re: RF4.3.2: rich:panelMenu - activeItem attribute does not work as expectedBrian Leathem Jul 18, 2013 2:18 PM (in response to Alexey Shakov)
  Have you debugged your application to check if your setter actually getting invoked?
  What container are you running in? What version of JSF?
  2. Re: RF4.3.2: rich:panelMenu - activeItem attribute does not work as expectedAlexey Shakov Jul 19, 2013 3:24 AM (in response to Brian Leathem)
  When commandLink is clicked, the setter method is invoked accordingly. But the getter method is not. It is only called, if the complete page is refreshed - in this case the panel item is getting selected.
  I am using Tomcat 7 and MyFaces 2.1.12
  3. Re: RF4.3.2: rich:panelMenu - activeItem attribute does not work as expectedBrian Leathem Jul 30, 2013 2:30 AM (in response to Alexey Shakov)