Hi,
this should be a simple one
I have a Vaadin 7 application where modal windows are opened. Say I have the UI, a modal window opened and a new modal window opened over it, so I can only interact with the latest window. How can I set the focus on the covered window? I mean, bring it to the front and make it the only one interactable.
I have tried:
UI.getCurrent().setFocusedComponent(coveredWindow);
and even:
UI.getCurrent().removeWindow(coveredWindow);
UI.getCurrent().addWindow(coveredWindow);
but no luck!
I am not sure if it is a bug or I am doing something wrong.
Thanks in advance