Hi,
IIRC you have to override AJAXDownload#getFileName(), this should
trigger a download dialog in the browser.
Regards
Sven
On 07/15/2010 09:46 AM, MattyDE wrote:
Hi Folks,
i need to write an Web-XML-Filler. So i have to generate a XML-File
on-the-fly and after that i want to stream the generated File to the
browser.
Iam using this Example :
https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
... and it works half with the behavoir.
download = new AjaxDownloadBehavoir()
{
@Override
protected IResourceStream getResourceStream()
{
return new FileResourceStream(getXMLFile());
}
};
add(download);
After initiating the File is not streamed to the browser, no, its shown in
the browser as a text-page.
btw: Iam Using an AjaxButton (with a form) not an AjaxLink... does this
matter?
Any hints?
Thanks in Advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org