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!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p2289784.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to