Hi,

On Thu, Aug 22, 2013 at 7:39 AM, eaglei22 <jchojnack...@gmail.com> wrote:

> here
> userPageFindUserModal.setWindowClosedCallback(new
> ModalWindow.WindowClosedCallback()
> {
> public void onClose(AjaxRequestTarget target)
>  {
> System.out.println("ssaIDLISTCON");
> userInformation = new WebMarkupContainer("userAttributeTable");
> userInformation.setOutputMarkupId(true);
> addUserInformation("test", "Massey", "J", "1234512", "Enabled");
> target.add(userInformation); } });
>
> When I close my modal window I want to update the contents of the calling
> page... but it doesn't work.When I refresh the page however it works, but
> the ajax isn't giving me access to the current page components.. How does
> this work with a modal window? Is the target for the modal window? or for
> the parent pages instance?Any ideas? Thanks!
>

If you use ModalWindow with a Panel content then it will work.
If you use it with Page (iframe) content then the AjaxRequestTarget is for
the page in the iframe. In this case you should pass PageReference got get
access to the parent page and you should use JavaScript like
"top.location.reload()"


>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996.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