Look at the modal window example. The window in example can be closed by a link or closed window and you can see what closed it on the original page. Use similar approach in your case.
-Matej On Jan 12, 2008 6:55 PM, Roberto Fasciolo <[EMAIL PROTECTED]> wrote: > > I've tried that and it works, the problem is that the modal window can be > closed in 2 different ways: > 1. clicking on the window's close button, in this case nothing should happen > 2. clicking on a link inside the window, in this case the page should change > > I haven't found a way for knowing if the callback is called when the window > has been closed with the close button or with the custom link. > > Any ideas? > > -Roberto > > > > Matej Knopp-2 wrote: > > > > You need to call setResponsePage from within WindowClosedCallback. > > (see ModalWindow#setWindowClosedCallback()); > > > > -Matej > > > > On Jan 12, 2008 5:26 PM, Roberto Fasciolo <[EMAIL PROTECTED]> > > wrote: > >> > >> Hello, > >> > >> I'm trying to find a way for doing this: > >> - in page A there's a table with many elements, all having a link > >> - that link opens a modal window with details of the selected element > >> - in the modal window there's a link that should close the window itself > >> and > >> make the browser showing page B. > >> > >> The only thing I've achieved is to have page B shown in the modal window > >> and > >> not in browser main page. Is there a way for doing what I need? > >> > >> Thanks in advance, > >> Roberto > >> -- > >> View this message in context: > >> http://www.nabble.com/Changing-content-of-a-page-from-a-modal-window-tp14775374p14775374.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > > -- > > Resizable and reorderable grid components. > > http://www.inmethod.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Changing-content-of-a-page-from-a-modal-window-tp14775374p14776675.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Resizable and reorderable grid components. http://www.inmethod.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
