You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tony Herstell <to...@cambridgesoftware.co.nz> on 2005/12/13 09:27:45 UTC
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: More on contrib:tree (Tap 1.3.1) - Does not refresh on model change.
Posted by Tony Herstell <to...@cambridgesoftware.co.nz>.
In the listener the values don’t seem to be set.
Ill just live with it.
Thanks for great support.
> -----Original Message-----
> From: Gunna Satria [mailto:gna@nwa.iao.co.id]
> Sent: Wednesday, 14 December 2005 7:46 p.m.
> To: Tapestry users
> Subject: Re: More on contrib:tree (Tap 1.3.1) - Does not refresh on model
> change.
>
> Hi,
> maybe you can set all value in treeStateChanged method if you implement
> ITreeStateListener in your page.
>
>
> regards,
>
> Gunna
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date:
> 13/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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: More on contrib:tree (Tap 1.3.1) - Does not refresh on model change.
Posted by Gunna Satria <gn...@nwa.iao.co.id>.
Hi,
maybe you can set all value in treeStateChanged method if you implement
ITreeStateListener in your page.
regards,
Gunna
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: More on contrib:tree (Tap 1.3.1) - Does not refresh on model change.
Posted by Gunna Satria <gn...@nwa.iao.co.id>.
congrats.
because of treetable link's is directlink so it not do rewind, that's makes
you lost all of your component values.
to avoid it, you can use persistence properties for all of your component
value.it's the only thing i knew.still searching another way though...
regards,
Gunna
----- Original Message -----
From: "Tony Herstell" <to...@cambridgesoftware.co.nz>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Sent: Wednesday, December 14, 2005 11:44 AM
Subject: RE: More on contrib:tree (Tap 1.3.1) - Does not refresh on model
change.
> This worked.
> You are a star.
> Any idea how you make the other items on the page survive the node being
> clicked on?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: More on contrib:tree (Tap 1.3.1) - Does not refresh on model change.
Posted by Tony Herstell <to...@cambridgesoftware.co.nz>.
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:gna@nwa.iao.co.id]
> Sent: Tuesday, 13 December 2005 10:24 p.m.
> To: Tapestry users; tony@cambridgesoftware.co.nz
> 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" <to...@cambridgesoftware.co.nz>
> To: <ta...@jakarta.apache.org>
> 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: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
> --
> 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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: More on contrib:tree (Tap 1.3.1) - Does not refresh on model change.
Posted by Gunna Satria <gn...@nwa.iao.co.id>.
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" <to...@cambridgesoftware.co.nz>
To: <ta...@jakarta.apache.org>
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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org