Home:ALL Converter>Wicket 9 and a pop up window (not modal)

Wicket 9 and a pop up window (not modal)

Ask Time:2021-09-22T05:10:06         Author:miroana

Json Formatter

I have a link which opens a pop up (not a modal window, but a small browser window)

protected void onInitialize() {
    Link<Void> myLink = new Link<>("myLink") {
        public void onClick() {
            setResponsePage(new MyPage((IModel<MyDto>) getDefaultModel()));
    myLink.setPopupSettings(new PopupSettings());
    Button button = new Button("button");

When I click on it everything works fine (as expected). But after closing the pop up window the rest of the page becomes unusable, i.e

If after closing pop up window I click a button or if I type something in ajaxTextField

I get all kinds of errors such as NoSuchMethod (on my model class I use constructor initiation, so no setters). NullPointerExeption... Etc.

However, if after closing a modal window, I refresh the page then everything works as expected again.

What I'm doing wrong? How to make so that after closing a modal window all buttons, text fields, links, etc. would work as expected without manually refreshing the page from which the pop up window was showed?

Author:miroana,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69275598/wicket-9-and-a-pop-up-window-not-modal