Hi,

can you provide more details about modal window implementation? Modal window behavior has changed a bit from version 1.4 to 1.5
Hi All,

in wicket 1.4 i can make:
AjaxButton searchButton = new AjaxButton("search")//{1}
     {
       @Override
       protected void onSubmit(AjaxRequestTarget target, Form<?>  ajaxForm)
       {
         window.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
         {
           @Override
           public void onClose(AjaxRequestTarget onCloseTarget)
           {
             setResponsePage(new SearchPage(...))//{2}
           }
         });
         window.close(target);
       }
     };

{searchButton} located on the modalPage which opened on {window}}

But in wicket 1.5 this doesn't work.

I tryed to move setWindowClosedCallback to constructor of the page - it
works, but how can I set WindowClosedCallback directly before calling
window.close(target)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-setWindowClosedCallback-tp3823361p3823361.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





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

Reply via email to