views:

79

answers:

1

Doing something like this is perfectly permissible in javascript:

var newWindow = window.open(...)

However, this does not work in the senario of GWT (I am using 1.5 I dont know about later versions),

Window window = Window.open("", "", "");

Throws me a compile time error that the open is a method with a return type as void.

Why should it be void ? What if i want to close my popup from the main Window ? how do I get its handle ?

I will have to resort to native javascript no doubt but i was just curious so as to why this is so...

+1  A: 

I don't know exactly why GWT doesn't support what you're asking for but there is a ticket requesting multiple window support where a number of workarounds are discussed in some detail.

Yeroc
Thanks for this suggestion, I do fail to see any work arounds mentioned there, do take a look at my post there too...
Salvin Francis
forgive me on that comment, on closure inspection, i did see work around suggestions but no one has suggested a concrete solution yetI am still pondering over how two seperate windows can exchange data using global javascript variables ??
Salvin Francis
Salvin Francis
I'm afraid I'm not aware of a complete solution. Hopefully someone else is though...
Yeroc