11 Replies Latest reply on Feb 15, 2008 9:45 AM by Justin G

    Keeping state of a panelMenu between pages

    Justin G Newbie


      I'm currently learning JSF/RichFaces and want to create an application using a panelMenu for navigation. I need to be able to keep the collapsed/expanded state of the menu when navigating from page to page. Unless there is a more elegant way of doing this, I'm thinking I'll have to have a session bean keeping track of every group state and use the expanded attribute in panelMenu (let me know if this is the wrong approach).

      I see there are oncollapse and onexpand attributes in panelMenuGroup. How do I bind these to a bean so that I can toggle a boolean value? A simple example would be a huge help.