When you say "regular link" you mean a DownloadLink?
How do I construct it? I need to define either a File or a PropertyModel
(the 2nd arg). Not sure what to put in there. Thanks
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AjaxButton-s-onSubmit-goes-into-Form-Sub
you dont need an ajax link to start a download. use a regular link instead.
-igor
On Wed, Feb 2, 2011 at 3:08 PM, eugenebalt wrote:
>
> OK thanks, that did the trick.
>
> But I have one more question: That AjaxLink is supposed to start a browser
> File Download. The code that I have for that wor
OK thanks, that did the trick.
But I have one more question: That AjaxLink is supposed to start a browser
File Download. The code that I have for that works like a charm in the Form
OnSubmit, but it doesn't work inside the Ajax Link.
File f = generateFile();
Resou
then make it an AjaxLink
-igor
On Wed, Feb 2, 2011 at 2:12 PM, eugenebalt wrote:
>
> I have an Ajax Button which is NOT a submit button; it's a custom button that
> does my own action.
>
> AjaxButton reportButton = new AjaxButton("reportButton") {
>
> @Override
> protected void onS
I have an Ajax Button which is NOT a submit button; it's a custom button that
does my own action.
AjaxButton reportButton = new AjaxButton("reportButton") {
@Override
protected void onSubmit(AjaxRequestTarget arg0, Form arg1) {
// TODO Auto-generated meth