Strange Request: How do I open a new browser window, run part of the GWT application there, and communicate with it

70 views
Skip to first unread message

Néstor Boscán

unread,
Sep 14, 2011, 12:34:58 PM9/14/11
to google-we...@googlegroups.com
Hi

I have a strange request. I have an application that needs to run on an iframe as part of another application. This application needs to open  popup browser windows to show additional information, for example a celltable with a list. How do I use GWT to run on the new popup browser window and send it data?

Regards,

Néstor Boscán

Robert W

unread,
Sep 15, 2011, 7:25:10 AM9/15/11
to google-we...@googlegroups.com
Within jsni you can open new windows by window.open and there you have reference to new window. In the opened win you have samething like parentWindow (with my distant memory). Gwt not have rather inter-window communications methods.

Derek

unread,
Sep 15, 2011, 9:30:31 AM9/15/11
to Google Web Toolkit
I once had to do something vaguely similar. I needed to open a GWT app
in a window from a non-GWT app. I called var win =
window.open("GwtHtmlPage.html") and then set the data the GWT app
needed with win.blah = 3 or whatever. Then my GWT app used some JSNI
to fetch that value.

The problem as Robert metioned is that GWT doesn't really want you
doing inter-window communication. So you have to sling your own JSNI.

Derek

Rob

unread,
Sep 15, 2011, 4:27:17 PM9/15/11
to Google Web Toolkit
Hi,

Take a look at gwt-multipage:

-> http://code.google.com/p/gwt-multipage/

and this post:

-> http://uptick.com.au/content/managing-multiple-host-pages

Cheers
Rob
Reply all
Reply to author
Forward
0 new messages