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
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
-
> -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
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() {
@
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
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
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
final AJAXDownload download = new AJAXDownload() {
@Override
protected IResourceStream getResourceStream() {
return new FileResourceStream(theDatabase.getFile());
}
@Override
protected String getFileName() {
return theDatabase.getFile().getAbsoluteFile().getName(); //FI
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
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
Hey Svaen, thanks a lot.
This works smoothly ;)
download = new AjaxDownloadBehavoir()
{
@Override
protected IResourceStream getResourceStream()
{
return
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
12 matches
Mail list logo