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
then make it an AjaxLink
-igor
On Wed, Feb 2, 2011 at 2:12 PM, eugenebalt eugeneb...@yahoo.com 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
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();
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 eugeneb...@yahoo.com 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
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: