Page.tml -------- <t:tree t:id="tree" t:model="treeModel" />
Page.java --------- @InjectComponent Tree tree; @Cached // use cached because this method may be called twice in a single request public TreeModel getTreeModel() { ... } public void onExpandAll() { TreeExpansionModel expansionModel = tree.getExpansionModel(); List<TreeNode> roots = getTreeModel().getRootnodes(); // recursively iterate the TreeNodes starting at the roots and call TreeExpansionModel.markExpanded(node); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-How-to-expand-all-the-tree-nodes-tp5702736p5702872.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org