Have you tried to put modal itself inside of another form, too?
Am 08.12.2011 um 13:29 schrieb heapifyman <heapify...@gmail.com>: > Hello again. > > Here's some more information about my problem: in the ModalWindow's > SubmitButton's onSubmit() I call at the end: > > ModalWindow.closeCurrent(target); > download.initiate(target); > > The AJAXDownload behaviour is added to the SubmitButton in the ModalWindow. > Or do I have to add it to the button on my page that opens the ModalWindow? > > Thanks in advance. > > > > 2011/12/7 heapifyman <heapify...@gmail.com> > >> Hello all, >> >> I have a problem with a file download from a ModalWindow. >> The ModalWindow contains a form in which the user can specify some >> parameters. When clicking submit I generate a PDF based on the chosen >> parameters and offer it for download. The ModalWindow is closed then. >> I followed the approach described here >> https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html >> and >> it actually works quite nice. >> >> My problem is that after the file is downloaded and the ModalWindow is >> closed all my Ajax stuff on the page from which the ModalWindow was opened >> are not working anymore. Only when I reload the page, the Ajax stuff is >> working again. >> >> I would appreciate any hints as to what I might be doing wrong. Or maybe >> someone has another code example of how to download a file from a >> ModalWindow? >> >> Thanks in advance. >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org