Check the Wiki page I gave you.
It uses target.appendJavaScript(location.href='+ url + ';);
Martin Grigorov
Wicket Training and Consulting
On Wed, Mar 26, 2014 at 9:54 PM, eaglei22 jchojnack...@gmail.com wrote:
I am not familar on how to perform a redirect from AJAX. I tried:
new
Thanks Martin,
I guess what I am more curious in, is how come when I call the
downloadLink.onClick(), or do:
public void onPostProcessTarget(AjaxRequestTarget target)
{
final File file = excelFile;
IResourceStream resourceStream = new FileResourceStream(
Hi,
You should not write the binary response in the Ajax response.
The ajax response should return a redirect that will point to a url where
the binary data will be written back.
Martin Grigorov
Wicket Training and Consulting
On Wed, Mar 26, 2014 at 4:25 PM, eaglei22 jchojnack...@gmail.com
I am not familar on how to perform a redirect from AJAX. I tried:
new RedirectPage(excelFile.getPath());
and,
target.appendJavaScript(location.hash='excelFile.getPath()');
Can you give me a simple example?
--
View this message in context:
Hello, I currently am using a downloadLink to export a csv file to the user.
What I am currently doing is using a worker thread to handle the creation of
the csv file while an AjaxSelfUpdatingTimerBehavior updates the GUI of its
progress.. Then at completion the intent is to call
Hi,
Check
https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
Martin Grigorov
Wicket Training and Consulting
On Tue, Mar 25, 2014 at 11:56 PM, eaglei22 jchojnack...@gmail.com wrote:
Hello, I currently am using a downloadLink to export a csv file to