You have to use AjaxSubmitLink and call Window.close(target) inside the
onSubmit(AjaxRequestTarget...) method.
-Matej
Nili Adoram wrote:
> Hi all,
>
> I have a panel (named AdvancedSearchPanel) containing a Form with a
> SubmitLink.
>
> I open this panel inside a modal dialog:
>
> final ModalWindow modal;
> add(modal = new ModalWindow("modalAdvancedSearch"));
>
> final AdvancedSearchPanel searchPanel = new
> AdvancedSearchPanel(modal
> .getContentId());
> modal.setContent(searchPanel);
>
> When the form is submitted, a message is displayed ("Reloading this
> page will cause the modal window disappear.") and the modal window is
> closed.
>
> However, the CloseButtonCallback and WindowClosedCallback are not called.
>
> These callbacks are only called if the close button is clicked.
>
> What causes the submit button to close the window?
> How can verify that these callbacks are invoked whenever the window is
> closed?
>
> Thanks,
> Nili
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user