This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes GWT and the fly likes Returning a value back from a PopupPanel OR DialogBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Returning a value back from a PopupPanel OR DialogBox" Watch "Returning a value back from a PopupPanel OR DialogBox" New topic
Author

Returning a value back from a PopupPanel OR DialogBox

Veeren Jote
Greenhorn

Joined: Dec 01, 2009
Posts: 6
I have a small helper popup to enable shortlisting few values out of which user will select after doing a small filter.
This value/object needs to be sent back to the parent window.

Has anyone done something similar before?

In our normal HTML/Javascript environment, we would that easily by doing something like

parent.window.formName.elementName.value = newValue;
and the value would be sent from child window to parent window.

Thanks in advance.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10270
    
    8

Usually I expose a public method in the parent which the popup can call and pass whatever objects that are required. Does this answer your question or did you mean something else?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Veeren Jote
Greenhorn

Joined: Dec 01, 2009
Posts: 6
yes, but the child window needs to get an handle on the parent window, then it can access the setter/getter and set the value.
Will try this approach and let you know,
Thanks Maneesh.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Returning a value back from a PopupPanel OR DialogBox