Re: Ajax file download - Invalid XML

2013-06-18 Thread Ernesto Reinaldo Barreiro
It should be the AJAX part that fails for some reason... If you put a break point on writeDownload you might see that no download request is produced. The trick work as follows. Please, try to provide a quick start or provide more info because I do not see how we could otherwise help you. On

Re: Ajax file download - Invalid XML

2013-06-18 Thread Martin Grigorov
Hi, On Tue, Jun 18, 2013 at 2:14 PM, René Hartwig rene.hart...@befine-solutions.com wrote: Hi, I'm using Wicket 6.7.0 with an embedded Jetty and implemented a file download mechanism as suggested here:

Re: Ajax file download - Invalid XML

2013-06-18 Thread Ernesto Reinaldo Barreiro
Well spotted.. and I guess the wrong XML error is because you are returning CSV instead of wicket AJAX XML. On Tue, Jun 18, 2013 at 3:26 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Tue, Jun 18, 2013 at 2:14 PM, René Hartwig rene.hart...@befine-solutions.com wrote: Hi, I'm

Re: Ajax file download - Invalid XML

2013-06-18 Thread René Hartwig
Great, thanks - that was it Best regards, Ren Ren Hartwig Senior Developer Befine Solutions AG - The Cryptshare Company Bebelstrae 17 79108 Freiburg

Re: ajax file download...

2012-10-12 Thread Ernesto Reinaldo Barreiro
Hi, On Fri, Oct 12, 2012 at 10:35 AM, mlabs mlabs@gmail.com wrote: So what I'm trying to do must surely be a common thing... yet so far I have had no luck getting it to work. I'm generating big PDF's on the server .. and in the browser I have a link that should initiate that generation

Re: ajax file download...

2012-10-12 Thread Ernesto Reinaldo Barreiro
you could even display a progress bar indicator so that your users are aware of how much it is left. On Fri, Oct 12, 2012 at 10:46 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Fri, Oct 12, 2012 at 10:35 AM, mlabs mlabs@gmail.com wrote: So what I'm trying to do must

Re: ajax file download...

2012-10-12 Thread mlabs
hmm.. no .. sounds too complicated ... I don't want to get into spawning threads and polling .. In jQuery you can use $.ajax({url:'my-pdf resource-url',async:false,success...,error...}) and wire blockUI into the success/error handlers.. that worked great except the save-as dialog didn't come up -

Re: ajax file download...

2012-10-12 Thread mlabs
I know, but the idea of the user being able to click around the web page and possibly navigate to other areas of the app... and then minutes later the save-as dialog suddenly pops up .. seems to me to be potentially confusing... which is why I like blockUI ... it lets them know that as soon as

Re: ajax file download...

2012-10-12 Thread Girts Ziemelis
The way I did it - I created a panel to be used by all reports. It uses IndicatingAjaxButton for Generate Report button which starts report generation in thread and adds AjaxSelfUpdating behaviour to the button panel. Once generation is finished, previously invisible Download Report button

Re: ajax file download...

2012-10-12 Thread mlabs
ok i like the idea of enabling the download button upon completion of generation - I will have a go at doing something similar. But it seems to me that if there was a way to switch the ajax call to be synchronous 'on the fly' then there would be no need for polling with ajax timers

Re: Ajax File Download with Form Process and Result Refresh

2007-11-22 Thread Maurice Marrink
A regular form and an ajaxbutton should get you a long way. Assuming you have a feedbackpanel on your page. The onSubmit of your button should do something like: onSubmit(AjaxRequestTarget target) { //do calculation target.addComponent(getForm()); //somehow create and or upload pdf }