I reset data model to update tree from database. I call setValue() method in my action and I want to restore maximum data, which was shown before executing my action.
The data on the page is connented with selected tree node. How can I know if the last selected node is in tree? I want to iterate througth all node of the tree to find it. I have cached TreeNodeKey, but I can't find method in HtmlTree to look for node. getNode() always returns the current node. If it is already not in data model, I shall get the node. Method getRowData() doen't return anything, because I have reset dataModel.
Does anybody have any idea? Is the necessary method planned in the future?
Of course, I can find all data in my bean. But I think it would be better to cash opening nodes in tree component.