Hello,
there are several possible answers to your implemenation question,
I'd like to show only 3 that are common I believe:
#1
open new window (standalone browser window) and communicate with
javascript
#2
open new window (standalone as in #1) and load new gwt module into it
#3
open new UI element (a.k.a window, dialog, popup, dialogbox) within
your application
#1 and #2 opens new browser window and there are several cons for
that:
- you need to deal with how browsers render new window elements (url
bar, navigation buttons, title, size, new or tabbed window, etc)
- you cannot easiy communicate back to your main (parent) application
- you need to take care about separate window L&F and usability, etc
With #1 & #2 you can use GWT Window.open(...) class,
For solution #1 it is useless because it does not return so called
"opener" reference back to your application. SO immadiately you fall
into writing JSNI code for communication. Also with #1 you cannot use
Java to build UI elements, you need to use some hack javavascript to
write UI and logic for it.
When using #2 you use Window.open(...) method as well but simply loads
new GWT module into it, e.g. to gather user feedback/data and persists
it into database on window close or form submission. It is easily to
implement, can be parametrized from parent application just by passing
key/values in Window.open url, etc. The drawback is that you need to
have separate compilation unit for such kind of dialogs
With #3 solution (non-native UI window element within application) you
usually don't need to do anything special, just show dialogbox which
works as separate applicaiton window with specific purpose which is
the same as for #1 & #2. But everything stays within your application
Java code and can be really easily managed and implemented,
search group for "new window", "opener" or simliar terms for more,
regards,
Peter