Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
8.1.0
-
None
Description
We have an application where you can open a ModalWindow which allows you to open another ModalWindow, etc...
If you perform a certain operation in the topmost window, we need to close all the windows in the same request. This works with 1-2 open windows, but if the user opens 3 or more, we get a warning in the log:
"Handling the following exception: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: Behavior rejected interface invocation. Component: [ModalWindow [Component id = modal]] Behavior: org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$WindowClosedBehavior@52e7e937"
and the user is redirected to org.apache.wicket.markup.html.pages.AccessDeniedPage.
I made a quickstart (will upload after creating this issue, since it seems uploading before that doesn't work) where you can see this. Click the "Open new Modal" button 3 times, followed by "Close modals" and it fails...