2 Replies Latest reply on Jan 7, 2011 5:51 PM by lobotomy

    rich:tree nodes colapse

    lobotomy

      I use rich:tree to display tree of checkboxes, where the checkboxes in the parent nodes influence children nodes,I use a4j support to update status of the checkboxes after selection, then I reload the tree. My problem is that after reload all the tree nodes that were expanded before now are colapsed.

      Is there any way to keep the state of the rich:tree after the reloads.

        • 1. rich:tree nodes colapse
          ilya40umov

          I suppose you should use the following attribute of rich:tree:

          componentStatefalsefalsejavax.el.ValueExpression
          (must evaluate to org.ajax4jsf.model.DataComponentState)
          It defines EL-binding for a component state for saving or redefinition

          So just bind your tree state to a field in a session scoped bean.

          • 2. rich:tree nodes colapse
            lobotomy

            Thank You for quick answer, I dont know how I missed that.