• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Returning a value back from a PopupPanel OR DialogBox

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Veeren Jote
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
You've gotta fight it! Don't give in! Read this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!