Re: Send file to client via Ajax

2009-10-06 Thread Ernesto Reinaldo Barreiro
Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import

Re: Send file to client via Ajax

2009-10-06 Thread Ernesto Reinaldo Barreiro
Sorry, I forgot a class import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class DocumentResourceListener extends WebMarkupContainer implements IResourceListener {

AW: Send file to client via Ajax

2009-10-06 Thread Giambalvo, Christian
Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35

Re: Send file to client via Ajax

2009-10-06 Thread Ernesto Reinaldo Barreiro
Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got

AW: Send file to client via Ajax

2009-10-06 Thread Giambalvo, Christian
...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:31 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Just sent it on my last e-mail! Here it is again! import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto

AW: Send file to client via Ajax

2009-10-06 Thread Giambalvo, Christian
Betreff: Re: Send file to client via Ajax Nice to hear it was of some help! I have learned a bit too while doing it:-) Cheers, Ernesto P.S. Shall I add this to a Wiki page?... when I find the time;-) On Tue, Oct 6, 2009 at 11:39 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote

Re: Send file to client via Ajax

2009-10-06 Thread Ernesto Reinaldo Barreiro
@wicket.apache.org Betreff: Re: Send file to client via Ajax Nice to hear it was of some help! I have learned a bit too while doing it:-) Cheers, Ernesto P.S. Shall I add this to a Wiki page?... when I find the time;-) On Tue, Oct 6, 2009 at 11:39 AM, Giambalvo, Christian christian.giamba

AW: Send file to client via Ajax

2009-10-06 Thread Giambalvo, Christian
: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 13:18 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Done! http://cwiki.apache.org/confluence/display

Re: Send file to client via Ajax

2009-10-06 Thread Ernesto Reinaldo Barreiro
] Gesendet: Dienstag, 6. Oktober 2009 13:18 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Done! http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download

Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
Hi all, simple question :) how to send a dynamicly generated file (as byte array) through an ajaxfallbackbutton tot he client? Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile

Re: Send file to client via Ajax

2009-10-05 Thread Martin Grigorov
why do you want to use AjaxFallbackButton ? you will not re-paint part of the page use ResourceLink to download the file El lun, 05-10-2009 a las 15:36 +0200, Giambalvo, Christian escribió: Hi all, simple question :) how to send a dynamicly generated file (as byte array) through an

AW: Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
@wicket.apache.org Betreff: Re: Send file to client via Ajax why do you want to use AjaxFallbackButton ? you will not re-paint part of the page use ResourceLink to download the file El lun, 05-10-2009 a las 15:36 +0200, Giambalvo, Christian escribió: Hi all, simple question :) how to send

Re: Send file to client via Ajax

2009-10-05 Thread Ernesto Reinaldo Barreiro
-card.bg] Gesendet: Montag, 5. Oktober 2009 15:56 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax why do you want to use AjaxFallbackButton ? you will not re-paint part of the page use ResourceLink to download the file El lun, 05-10-2009 a las 15:36 +0200, Giambalvo

AW: Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
[mailto:mcgreg...@e-card.bg] Gesendet: Montag, 5. Oktober 2009 15:56 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax why do you want to use AjaxFallbackButton ? you will not re-paint part of the page use ResourceLink to download the file El lun, 05-10-2009 a las 15:36

AW: Send file to client via Ajax

2009-10-05 Thread Giambalvo, Christian
16:22 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Maybe you could repaint via AJAX and then use target.appendJavascript(window.location.href=´URL´); Where the URL is the URL of an ILinkListener generating you file... There was someone asking something similar not long ago

Re: Send file to client via Ajax

2009-10-05 Thread Ernesto Reinaldo Barreiro
Betreff: Re: Send file to client via Ajax Maybe you could repaint via AJAX and then use target.appendJavascript(window.location.href=´URL´); Where the URL is the URL of an ILinkListener generating you file... There was someone asking something similar not long ago. Best, Ernesto