1 Reply Latest reply on Jun 10, 2009 4:41 PM by roniraja

    tree menu componentState

    safa

      Hi,


      I want to save the state of my tree menu when I click on its nodes and rendred to another page,
      I'm searching for a solution since 5 days and i found two solution:
      the first is using adviceNodeOpened
      the second is using componentState, and I prefer to use this one, but can't inderstand how exactly it work,


      Can anybody explain my how to use it??
      I really need your help :(((

        • 1. Re: tree menu componentState
          roniraja

          you can keep the state of the tree in a stateful bean with required scope (session, e.g.).


          The rich:tree component offers componentState tag, which you have to bound with according getter/setter-methods of the statful bean. Then the state should be kept across pages.