Easiest way is to re-create the tree's state object in whatever event
listener you have on the server:

treeModel.setTreeState(new TreeStateBase());



On 3/19/07, Sanghavi, Shubhra <[EMAIL PROTECTED]> wrote:



Hi,

  I have a client side toggled tree2 component on the JSF page. The tree is
constructed based on the tree name selected from a drop down. Once the tree
is expanded by the user by a series of clicks, the state of the tree is
changed. Now if the input (tree name) from drop down is changed , then a new
tree is constructed and displayed on the screen. The tree is constructed
correctly except that when displayed on the scree, the state from previous
tree still persists. I need the tree to be collapsed again when a fresh new
tree is being constructed.

Would like to know if somebody has faced this issue.If so , is there a
solution ?
Thanks,
Shubhra









 This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication in
error, please immediately notify the sender by reply e-mail and destroy all
copies of the communication and any attachments.

Reply via email to