Hi, Since you are not storing pages, how does the form in your modal window work? I assume you are using a stateless form?
Since your on close callback is stateful, it will not work; you will either need to use a stateless Ajax behavior or stateless form where in onsubmit you redirect to a new page with up-to-date information. // Bas Verstuurd vanaf mijn iPhone > Op 7 mrt. 2019 om 07:56 heeft kyc <brend...@hku.hk> het volgende geschreven: > > Our page open a WindowModal for editing a form, there is an exception throw > when closed the modal window. > This problem only happens when our site is using NoPageStore but we have to > use NoPageStore. > > The following exception happen and the setWindowClosedCallback cannot be > called. > Page with id '16' has expired. > org.apache.wicket.protocol.http.PageExpiredException: Page with id '16' has > expired. > > > The modal window close call back function works on without NoPageStore > setting: > > abcModalWindow.setWindowClosedCallback(new WindowClosedCallback() { > private static final long serialVersionUID = > 7961678233294274184L; > > public void onClose(AjaxRequestTarget target) { > doRefresh(target); > } > }); > > Please help if anyone knows the solution. Thanks a lot. > > > -- > Sent from: > http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org