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
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
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.
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
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 =
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
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
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
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