I had a similar problem with showing a file download dialog from an ajax event, I got around it by doing target.appendJavascript(getMarkupId()+".submit()");
which submits the form, and then forwarding the user to the file in the onSubmit() method of the form. Hope this helps... -Clay -----Original Message----- From: lizz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 5:01 AM To: [email protected] Subject: JRPdfResource onResourceRequested() file dialog not displayed when using AjaxFallbackLink I am creating a potentially large dynamic jasper report that is can be opened or saved using a wicket Link . In the onClick method the report is created (1) and displayed (2) : JRPdfResource pdfr = ReportFactory.createPdfResource(data); //1: create the report pdfr.onResourceRequested(); //2: open the open or save dialog Since the report may be very large step 1 will take quite some time. I would like to notify the user that this will take some time using the browsers "wait icon" like the one in the LazyLoadingPanel wicket example. I would also prevent the user from clicking in the browser while the report is generated using wickets Modal Window. To do this I have to use AjaxFallbackLink but the open or save dialog (2) isnt displayed when using ajax. Any suggestions? -- View this message in context: http://www.nabble.com/JRPdfResource-onResourceRequested%28%29-file-dialo g-not-displayed-when-using-AjaxFallbackLink-tp14270835p14270835.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
