You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa Gomez" <dc...@fixed.com> on 2003/06/04 12:35:10 UTC
How to get back to mother page after popup
Hi,
Just created a tree-selector component to be used from a popup(link) window.
Im wondering about the following however.
Once I do submit on the selector it will go to the appropriate listener
from there I can do some processing and then I'll have to fire off the
originating mother-page again.
1. So the page reply is NOT supposed to go back to the popup window
(that just stays where it is, or I send back an empty version) AND,
2. the original mother window must be re-filled with the newly rendered
page.
The 1 seems to be a matter of *cycle.setPage("TreePageComponentName");*
The thing that eludes me however is how to get back to the mother-window
waiting to be re-rendered!
If anybody could help me out here it would be much appreciated.
Once the above is ok I want to run the tree by tsvetelin from tacos
before releasing it. Maybe some of the bits are usefull for others as well.
TIA,
Fermin DCG
Re: How to get back to mother page after popup
Posted by "F. Da Costa Gomez" <dc...@fixed.com>.
Absolutely no worries at all,
I appreciate (as do many others I reckon) the effort being put in
Tapestry for it allows me to do stuff otherwise not as easily
accomplished. Hopefully the tree will come together quickly so that I
can make a contribution back.
So if a q gets answered later or somewhat more alternative? ... shrug ...
C'm on yr writing a book, (probably looking at a self-imposed deadline
as well), doing the 3.0 beta stuff and whatever else. Assuming y'r human
I can only say thx 4 taking the time to answer at all.
Obviously the Q still stands but I'll just go on until I figure it out.
Cheers
Fermin DCG
Howard M. Lewis Ship wrote:
>Sorry if I'm too curt ... I'm being pulled in a million different directions at the momement, trying
>to squeeze in Tapestry questions on the side.
>
>
>
RE: How to get back to mother page after popup
Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Sorry if I'm too curt ... I'm being pulled in a million different directions at the momement, trying
to squeeze in Tapestry questions on the side.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
> -----Original Message-----
> From: F. Da Costa Gomez [mailto:dcg@fixed.com]
> Sent: Wednesday, June 04, 2003 7:26 AM
> To: Tapestry users
> Subject: Re: How to get back to mother page after popup
>
>
> Howard M. Lewis Ship wrote:
>
> >That is much more of a JavaScript question than a Tapestry question.
> >
> >This is off the top of my head, so look for errors.
> >
> >You need to execute the code:
> >
> >window.opener.url = "...";
> >
> I'm assuming y'r referring to the statement being executed from the
> popup-window. Right?
>
> >In the popup window; this will cause the window from which the popup
> >was spawned to update.
> >
> Ah, but this is the nice (or not so nice?) part. Everything
> that needs
> to be done is on the server.
> The popup only is a (tree)mechanism to select items (objects/
> lines to
> inserted into a table) to be added to the motherpage.
> It can have checked items that are hidden from the popup-view at the
> moment of submission (the user can click and open & close until he
> decides that its enough).
> At this time only the server knows what objects are required
> (they could
> be x levels deep) so updating from the popup to the mother
> won't do it.
> It only knows its current state and that could be completely
> different
> from what is required.
>
> I can get back to the popped-up window when clicking 'Open selector'
> again on the mother.
>
> >I've implemented a CloseWindow page that executes that JavaScript,
> >plus:
> >
> >window.close();
> >
> I'm not sure but sometimes things are so implicit to me that I am not
> explicit enough.
> If my explanation is not clear enough please lemme know because then
> I'll try to describe it more clearly. After all its not just
> about the Q
> its also about the way you formulate the Q.
>
> TIA
> Fermin DCG
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
Re: How to get back to mother page after popup
Posted by "F. Da Costa Gomez" <dc...@fixed.com>.
Howard M. Lewis Ship wrote:
>That is much more of a JavaScript question than a Tapestry question.
>
>This is off the top of my head, so look for errors.
>
>You need to execute the code:
>
>window.opener.url = "...";
>
I'm assuming y'r referring to the statement being executed from the
popup-window. Right?
>In the popup window; this will cause the window from which the popup was spawned to update.
>
Ah, but this is the nice (or not so nice?) part. Everything that needs
to be done is on the server.
The popup only is a (tree)mechanism to select items (objects/ lines to
inserted into a table) to be added to the motherpage.
It can have checked items that are hidden from the popup-view at the
moment of submission (the user can click and open & close until he
decides that its enough).
At this time only the server knows what objects are required (they could
be x levels deep) so updating from the popup to the mother won't do it.
It only knows its current state and that could be completely different
from what is required.
I can get back to the popped-up window when clicking 'Open selector'
again on the mother.
>I've implemented a CloseWindow page that executes that JavaScript, plus:
>
>window.close();
>
I'm not sure but sometimes things are so implicit to me that I am not
explicit enough.
If my explanation is not clear enough please lemme know because then
I'll try to describe it more clearly. After all its not just about the Q
its also about the way you formulate the Q.
TIA
Fermin DCG
RE: How to get back to mother page after popup
Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
That is much more of a JavaScript question than a Tapestry question.
This is off the top of my head, so look for errors.
You need to execute the code:
window.opener.url = "...";
In the popup window; this will cause the window from which the popup was spawned to update.
I've implemented a CloseWindow page that executes that JavaScript, plus:
window.close();
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
> -----Original Message-----
> From: F. Da Costa Gomez [mailto:dcg@fixed.com]
> Sent: Wednesday, June 04, 2003 6:35 AM
> To: Tapestry users
> Subject: How to get back to mother page after popup
>
>
> Hi,
>
> Just created a tree-selector component to be used from a
> popup(link) window. Im wondering about the following however.
> Once I do submit on the selector it will go to the
> appropriate listener
> from there I can do some processing and then I'll have to
> fire off the
> originating mother-page again.
> 1. So the page reply is NOT supposed to go back to the popup window
> (that just stays where it is, or I send back an empty
> version) AND, 2. the original mother window must be re-filled
> with the newly rendered
> page.
>
> The 1 seems to be a matter of
> *cycle.setPage("TreePageComponentName");*
> The thing that eludes me however is how to get back to the
> mother-window
> waiting to be re-rendered!
>
> If anybody could help me out here it would be much appreciated.
>
> Once the above is ok I want to run the tree by tsvetelin from tacos
> before releasing it. Maybe some of the bits are usefull for
> others as well.
>
> TIA,
> Fermin DCG
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>