Re: Initiating File Download through Ajax is not working

2012-03-13 Thread Rain... Is wet!
I'm using the AJAXDownload with success in my current project (Wicket 1.5.4). Just create an instance of the AJAXDownload, override getResourceStream to return your IResourceStream and getFileName (would recommend it) to return your desired filename. When done, add it to your AJAXSubmit component

Re: Initiating File Download through Ajax is not working

2011-12-01 Thread MattyDE
I updated to Wicket 1.4.19 now but the FileDownload does not work anymore. The user get redirected to a certain URL but no Dowload-Stream starts. Any hint to fix this issue? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-A

Re: Initiating File Download through Ajax is not working

2010-12-06 Thread Ernesto Reinaldo Barreiro
- > -Message d'origine----- > > > De : val360 [mailto:val_wic...@360works.com] > Envoyé : 3 décembre 2010 16:42 > À : users@wicket.apache.org > Objet : Re: Initiating File Download through Ajax is not working > > > final AJAXDow

RE: Initiating File Download through Ajax is not working

2010-12-06 Thread Jonathan Proulx
ement interdits. -- -Message d'origine- De : val360 [mailto:val_wic...@360works.com] Envoyé : 3 décembre 2010 16:42 À : users@wicket.apache.org Objet : Re: Initiating File Download through Ajax is not working final AJAXDownload download = new AJAXDownload() { @

Re: Initiating File Download through Ajax is not working

2010-12-04 Thread Sven Meier
Wicket sets the content type for you *if* - it is provided by the resource stream - can be looked up via servlet context from web.xml - can be derived from URLConnection. See Response#detectContentType(). Please try out the first option, i.e. override FileResourceStream#getContentType(). Sven A

Re: Initiating File Download through Ajax is not working

2010-12-04 Thread val360
Yes it does, it's .fp7 Which is not an extension web server would recognize, could that be the issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p3072514.html Sent from the Users forum mailing list ar

Re: Initiating File Download through Ajax is not working

2010-12-04 Thread Sven Meier
Looks fine to me. Does you filename have an extension (e.g. ".txt")? Sven On Fri, 2010-12-03 at 13:42 -0800, val360 wrote: > final AJAXDownload download = new AJAXDownload() { > @Override > protected IResourceStream getResourceStream() { > return new FileResourceStream(theDatabase.getFi

Re: Initiating File Download through Ajax is not working

2010-12-03 Thread val360
final AJAXDownload download = new AJAXDownload() { @Override protected IResourceStream getResourceStream() { return new FileResourceStream(theDatabase.getFile()); } @Override protected String getFileName() { return theDatabase.getFile().getAbsoluteFile().getName(); //FI

Re: Initiating File Download through Ajax is not working

2010-12-03 Thread Ernesto Reinaldo Barreiro
Show your code? Ernesto On Fri, Dec 3, 2010 at 7:06 PM, val360 wrote: > > Hi > > It's mostly working for me as well, except that the downloaded file has > .html appended to it's name.  Any hints? > > -Val > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Initiati

Re: Initiating File Download through Ajax is not working

2010-12-03 Thread val360
Hi It's mostly working for me as well, except that the downloaded file has .html appended to it's name. Any hints? -Val -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p3071504.html Sent from the Users f

Re: Initiating File Download through Ajax is not working

2010-07-15 Thread MattyDE
Hey Svaen, thanks a lot. This works smoothly ;) download = new AjaxDownloadBehavoir() { @Override protected IResourceStream getResourceStream() { return

Re: Initiating File Download through Ajax is not working

2010-07-15 Thread Sven Meier
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 g