You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lizz <el...@bouvet.no> on 2007/12/11 11:00:47 UTC
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-dialog-not-displayed-when-using-AjaxFallbackLink-tp14270835p14270835.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: JRPdfResource onResourceRequested() file dialog not displayed
when using AjaxFallbackLink
Posted by lizz <el...@bouvet.no>.
Hi clay,
I tried adding the target.appendJavascript(getMarkupId()+".submit()"); for
the AjaxFallbackLink but nothing (still) happened. Could you provide an
example of how to do this? I might have misunderstood how you did this.
Thanks :-)
Lizz
cblehman wrote:
>
> 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:elisabeth.thorsen@bouvet.no]
> Sent: Tuesday, December 11, 2007 5:01 AM
> To: users@wicket.apache.org
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JRPdfResource-onResourceRequested%28%29-file-dialog-not-displayed-when-using-AjaxFallbackLink-tp14270835p14313015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: JRPdfResource onResourceRequested() file dialog not displayed when using AjaxFallbackLink
Posted by Clay Lehman <cl...@medfusion.net>.
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:elisabeth.thorsen@bouvet.no]
Sent: Tuesday, December 11, 2007 5:01 AM
To: users@wicket.apache.org
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org