Confirm Popup Notification

Hi,

There’s no Confirm Popup Notification, so i tried to create a modal window in my BeanForm (extends Form)

but Vaadin launchs an error message : You can only add windows inside application-level windows

Could you help me ?

Thank you for your reply

Hi,

You tried to add the new (sub)window to another subwindow; subwindows can only be added to toplevel windows.

How to fix your particular ‘properly’ situation depends on your situation, but this should work (although ugly):

theWindowYouAreCurrentlyAddingTo.getParent().addWindow(theNewWindow);

(If you have not enabled ‘native windowing’, a.k.a multiple browser tabs, you could just add the new window to your main window - but that will break if you enable native windowing later…)

Best Regards,
Marc

And for a simple confirm dialog don’t miss this:
http://vaadin.com/addon/confirmdialog

(Also there you have to make sure the parent window is a main level window)