This worked. You are a star. Any idea how you make the other items on the page survive the node being clicked on?
> -----Original Message----- > From: Gunna Satria [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 13 December 2005 10:24 p.m. > To: Tapestry users; [EMAIL PROTECTED] > Subject: Re: More on contrib:tree (Tap 1.3.1) - Does not refresh on model > change. > > hi, > > i already have quite experience with tap 3 contrib:TreeTable. > if you want to refresh your tree node on the fly. you have to call > initialize() method in TreeTableDataView component. > i use contrib:TreeView and contrib:TreeTableDataView. > why your node is not changing,its because the sessionState still have your > dataModel. > here is my code: > > public void formSubmit(IRequectCycle cycle){ > //do anything to change your node list > getTreeViewComponent().resetState(); > getTreeTableDataViewComponent().initialize(); > } > > public TreeTableDataView getTreeTableDataViewComponent(){ > return (TreeTableDataView)getComponent("treeTableDataView"); > } > public TreeView getTreeViewComponent(){ > return (TreeView)getComponent("treeView"); > } > > if you want to, i can send you my full source > > regards, > > Gunna > ----- Original Message ----- > From: "Tony Herstell" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Tuesday, December 13, 2005 3:27 PM > Subject: More on contrib:tree (Tap 1.3.1) - Does not refresh on model > change. > > > > Problem is with adding new nodes on the fly to the TREE!!! They never > appear > > in the page... > > > > I have a page which creates new nodes "in" the contrib:tree that is > > displayed as part of the SAME page (thus allowing you to select the > "parent" > > you want to add the new node under and see it magically appear). > > > > The TREE appears to be stored in the page, and altering the model does > not > > get reflected!! The new node simply does not appear. > > > > You have to open up a NEW browser window to see the changes. > > > > I can have three windows happily fiddling with separate models so I am > > guessing the model really is encoded ONCE and this lives "in" the page > > (which is not refreshed even if you go to another page in the same > browser). > > > > I have NO idea how to get round this and if you can help I would > appreciate > > it. > > > > Tony. > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.1.371 / Virus Database: 267.13.13/198 - Release Date: > 12/12/2005 > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.371 / Virus Database: 267.13.13/198 - Release Date: > 12/12/2005 > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 13/12/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
