gwt - Vaadin (7.0.5) Window not opening until end of calling procedure -


i trying open modal window during click handler verify user action window doesn't appear until handler completes. window code can simple following , still not display isn't abstract class.

    window w = new window();     w.setmodal(true);     w.setimmediate(true);     // add components etc etc      ui.getcurrent().addwindow(w); 

i add action code windows ok/yes handler stop me creating generic message class simplify/stop code duplication.

i guessing there dont understand how vaadin/gwt works (still newbie!), point me in right direction?

cheers

for ui stuff, have stop thinking of sequencial programming, better think event-driven concepts.

for vaadin create dialog window asks yes/no question. in app create dialog , display it. , attach event-handler fired when user clicks yes/no, , inside handler required actions in code.

you can @ add-on

https://vaadin.com/de/directory#addon/confirmdialog


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -