Hi,

Check how Wicket-examples do it -
http://www.wicket-library.com/wicket-examples/ajax/modal-window

Please ask such kind of questions in users@ mailing list. Thanks!

On Sat, Feb 25, 2012 at 1:03 PM, mrkh1759 <[email protected]> wrote:
> hi guys.
> i'm trying wicket 1.5 and have a modal in a dataTable,
> in pageCreator i invoke modal Window and in the submit method of modal
> Window i close it. (close modal Window)
> i override windowClosedCallback but it doesn't work :( and it doesn't call
> windowClosedCallback() method of  modal window in dataTable.
> any one know what's problem?
>
> modal = new ModalWindow("modalAdd");
> modal.setPageCreator(new ModalWindow.PageCreator()
> {
>     @Override
>     public Page createPage()
>            {
>                logger.info("PageCreator........................");
>                return new CompanyAdd(modal);
>            }
> });
>
> modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback()
>  {
>            public void onClose(AjaxRequestTarget target) {
>                logger.info(" call back ************");
>
>  }
> });
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/windowClosedCallBack-in-wicket-1-5-tp4419876p4419876.html
> Sent from the Forum for Wicket Core developers mailing list archive at 
> Nabble.com.



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

Reply via email to