Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread Sven Meier
Hi, the browser sends in a separate request to fetch the resource. You cannot show any feedback from there. You can add an error to the session, and let the web page poll with ajax requests for any problems. Regards Sven On 06/13/2014 03:35 AM, msalman wrote: Hi, Suppose there is some

Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread msalman
Thanks for your response. Can you please kindly provide an outline or a few lines of code to get me started. My particular concerns are: 1. How do I create an Ajax request and AjaxRequestTarget. Will this be another Ajaxbehaviour. Sorry I should have learned this by now but... 2. How and

Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread malebu
You can always redirect to an error page incase of exceptions / errors. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AJAX-update-and-file-download-on-Wicket-1-5-tp4095241p4666261.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread msalman
Well, that is exactly what we are trying to avoid. An error page is a must fix bug. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AJAX-update-and-file-download-on-Wicket-1-5-tp4095241p4666262.html Sent from the Users forum mailing list archive at

Re: AJAX update and file download on Wicket 1.5

2014-06-12 Thread msalman
Hi, Suppose there is some problem or exception in the file download. Let's say in the following method: protected IResourceStream getResourceStream() { return new AbstractResourceStreamWriter() { public void write(Response output) { WebResponse response =

Re: AJAX update and file download on Wicket 1.5

2013-03-31 Thread malebu
So I modified my AjaxFileDownload init method to eliminate the abstraction of getResourceStream. Code as follows: AjaxFileDownload.java... Similar to AJAXDownload described in the Wiki https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html except for the following

Re: AJAX update and file download on Wicket 1.5

2011-11-22 Thread Martin Grigorov
On Tue, Nov 22, 2011 at 1:13 PM, Jordi Deu-Pons jo...@jordeu.net wrote: Hi,  I want to do an AJAX update and then start a file download.  I've found this solution for Wicket 1.4.x https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html  This is not working on Wicket

Re: AJAX update and file download on Wicket 1.5

2011-11-22 Thread Ernesto Reinaldo Barreiro
Jordi, Can you please update the wiki page with Martins suggestion for 1.5.x? Regards, Ernesto On Tue, Nov 22, 2011 at 1:11 PM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Nov 22, 2011 at 1:13 PM, Jordi Deu-Pons jo...@jordeu.net wrote: Hi,  I want to do an AJAX update and then

Re: AJAX update and file download on Wicket 1.5

2011-11-22 Thread Jordi Deu-Pons
Ok, I'll test this solution and update the wiki. Thanks. On Tue, Nov 22, 2011 at 1:17 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Jordi, Can you please update the wiki page with Martins suggestion for 1.5.x? Regards, Ernesto On Tue, Nov 22, 2011 at 1:11 PM, Martin