Post processing Browser Window popup ... How ?

Hi,
I have written a Report server application build using Vaadin.
In vaadin6 I was using the “getMainWindow().open(resource, resourceFlag);” to popup extra browser windows from within UI Click handler.
The Click handler would only open the resource if rest of the the processing (ie. generation of the report) was successful.
I understand this functionality still works, but is not thought to be the “right” way of doing this task and it might have something to do with using “BrowserWindowOpener”. Unfortunately I am having trouble seeing the forest because the for the trees.
Can someone please point me in the direction of a better way of:

  • popping up a window, AFTER the successful execution of some server side code
  • without the user having to do anything after the first click.
    Thanks

Ok Sorry you can ignore this.
I think the solution appears to add calls to “BrowserWindowOpener.setParameter(name,value)” to the ChangeValueListeners for ALL the field on the UI form/page.
I haven’t tested this yet. (I am a little uneasy about the timing the ChangesValueListener’s updating the BrowserWindowOpener parameters before the user presses the button).
Also it is does not implement exactly what the boss wants (popup a window ONLY on the completion of success processing), but I think I have a reasonable chance of being able to to sell him on the solution, eventually, maybe,…