I have tried to detach the model of the modal window in the onclick, and to
reset it, but to no avail. I think that trying to manipulate teh model of
the modal window for my purpose will not work at all. 

So, I have tried in the onClick to redirect to intercept page this way:
 modalPageReference.getPage().redirectToInterceptPage(new
SecondPage(parameters));
window.close(target);
Then, I have modified the windowClosedCallBack this way:
 window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
            private static final long serialVersionUID = 1L;

           
            @Override
            public void onClose(AjaxRequestTarget target) {
                
               modalPageReference.getPage().continueToOriginalDestination();
               }
});
The only problem is that he SecondPage is rendered within the modal window,
and I would like to close it and use the window of the main page ...
Anyone interested in helping out with this ?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-setWindowClosedCallback-has-access-to-old-model-or-change-to-modal-window-s-model-goes-a-tp4657672p4657681.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to