Http Post request in new browser window.

I have a Vaadin 7 app where I need to make an HTTP POST request that opens in a new browser window.

What I’ve tried so far:
In order to send the POST request I used FormSender add-on. But I have problems with that:

  1. even with target set to “_blank” some browsers (depends on browser setting I think) can open another tab rather than a new browser window which is what I need
  2. pop-up blockers try to block this new tab/window, which is annoying but not a big deal for me
  3. I haven’t found a way to set the browser window size through form-sender

In order to get around those problems I can use BrowserWindowOpener extension

BrowserWindowOpener opener = new BrowserWindowOpener(MyPopupUI.class); and create and submit the FormSender inside MyPopupUI class in the opener. But this creates a new problem of how to send parameters to this new UI class such as posted here:

http://stackoverflow.com/questions/15938702/in-vaadin-7-pass-data-arguments-to-new-ui-instance-of-browserwindowopener

There is an answer there, but it sends parameters over http get again so they end up in the url, which is what im trying to avoid.

If anybody knows how to achieve what Im trying to do either by overcoming these problems or using some other method. Help would be greatly appreciated.

If you want to control the process, following solution may be helpful:

  1. pop-up a vaadin window to input your data.
  2. create HttpURLConnection to post the data in your code.

Hi Kristian,
Have you found any solution for sending parameters as post method to new UI class opened by BrowserWindowOpener?