Re: Download file from ModalWindow problem

2011-12-20 Thread heapifyman
I have narrowed down the problem to Google Chrome (both 15.x and 17.x- 
dev version) now. In both Firefox and IE 9 the download is working and  
the ajax links keep working after the download finished.


I have created a quickstart application that demonstrates the thing.  
Are you still interested in that to see if it's a Chrome or a Wicket  
issue? If so, where should I put it?


Thanks


2011/12/9 Ernesto Reinaldo Barreiro reier...@gmail.com
Can you please create a quick-start application that we can test?

Ernesto

On Fri, Dec 9, 2011 at 1:38 AM, heapifyman heapify...@gmail.com wrote:

 I did and I still don't seem to get it. I think I followed all the
 recommendations in javadoc:

 - put div wicket:id=downloadDialog/**div in html file before  
the

 ajax button that opens the window
 - added another form around the div wicket:id=downloadDialog/ 
**div

 - changed sequence in ModalWindow's form's submit to
download.initiate(target);
ModalWindow.closeCurrent(**target);

 Still, after the window is closed and the download finished I  
cannot use

 any of the ajax links on my page until I reloaded the whole page.

 I don't understand what I might be doing wrong here.


 Am 08.12.2011 um 21:34 schrieb Martin Grigorov:


  See ModalWindow's javadoc. It explains about the need of a form

 On Thu, Dec 8, 2011 at 8:24 PM, heapifyman heapify...@gmail.com  
wrote:


 You mean putting an additional form around the modal window like  
below?


 form wicket:id=form
 fieldset
 button wicket:id=downloadButton**span
 wicket:id=**downloadButtonLabel/span/**button
   ... more buttons here ...
   /fieldset
   div wicket:id=dataPanel/div
 /form

 where dataPanel is:
 wicket:panel
 wicket:container wicket:id=checkGroup
 div wicket:id=dataContainer/**div
 /wicket:container

   form wicket:id=**formAroundModalWindow
div wicket:id=downloadDialog/**div
   /form

 wicket:panel


 2011/12/8 Daniel Weidele daniel.weidele@uni-konstanz.**dedaniel.weid...@uni-konstanz.de 


 

  No, it's doesn't look nested, yet. You may nest forms in Wicket,  
where

 the
 modal windows markup is in between.

 This worked for me when I experienced a similar problem.

 Von meinem iPad gesendet

 Am 08.12.2011 um 14:12 schrieb heapifyman heapify...@gmail.com:

  I believe it already is. My markup looks like this:

 form wicket:id=form
 fieldset
 button wicket:id=downloadButton**span
 wicket:id=**downloadButtonLabel/span/**button
   ... more buttons here ...
   /fieldset
   div wicket:id=dataPanel/div
 /form

 where dataPanel is:
 wicket:panel
 wicket:container wicket:id=checkGroup
 div wicket:id=dataContainer/**div
 /wicket:container
   div wicket:id=downloadDialog/**div
 wicket:panel


 2011/12/8 Daniel Weidele daniel.weidele@uni-konstanz.**dedaniel.weid...@uni-konstanz.de 


 

  Have you tried to put modal itself inside of another form, too?


 Am 08.12.2011 um 13:29 schrieb heapifyman  
heapify...@gmail.com:


  Hello again.

 Here's some more information about my problem: in the  
ModalWindow's

 SubmitButton's onSubmit() I call at the end:

 ModalWindow.closeCurrent(**target);
 download.initiate(target);

 The AJAXDownload behaviour is added to the SubmitButton in the

 ModalWindow.

 Or do I have to add it to the button on my page that opens the

 ModalWindow?


 Thanks in advance.



 2011/12/7 heapifyman heapify...@gmail.com

  Hello all,

 I have a problem with a file download from a ModalWindow.
 The ModalWindow contains a form in which the user can  
specify some

 parameters. When clicking submit I generate a PDF based on the
 chosen
 parameters and offer it for download. The ModalWindow is  
closed

 then.
 I followed the approach described here


  https://cwiki.apache.org/**WICKET/ajax-update-and-file-**
 download-in-one-blow.htmlandhttps://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland 



 it actually works quite nice.

 My problem is that after the file is downloaded and the  
ModalWindow

 is
 closed all my Ajax stuff on the page from which the  
ModalWindow was


 opened

 are not working anymore. Only when I reload the page, the  
Ajax stuff


 is

 working again.

 I would appreciate any hints as to what I might be doing  
wrong. Or


 maybe

 someone has another code example of how to download a file from a
 ModalWindow?

 Thanks in advance.




 --**--**
 -
 To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org 


 For additional commands, e-mail: users-h...@wicket.apache.org



 --**--**
 -
 To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org 


 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 

Re: Download file from ModalWindow problem

2011-12-09 Thread heapifyman
I have narrowed down the problem to Google Chrome (both 15.x and 17.x-dev
version) now. In both Firefox and IE 9 the download is working and the ajax
links keep working after the download finished.

I have created a quickstart application that demonstrates the thing. Are
you still interested in that to see if it's a Chrome or a Wicket issue? If
so, where should I put it?

Thanks


2011/12/9 Ernesto Reinaldo Barreiro reier...@gmail.com

 Can you please create a quick-start application that we can test?

 Ernesto

 On Fri, Dec 9, 2011 at 1:38 AM, heapifyman heapify...@gmail.com wrote:

  I did and I still don't seem to get it. I think I followed all the
  recommendations in javadoc:
 
  - put div wicket:id=downloadDialog/**div in html file before the
  ajax button that opens the window
  - added another form around the div wicket:id=downloadDialog/**div
  - changed sequence in ModalWindow's form's submit to
 download.initiate(target);
 ModalWindow.closeCurrent(**target);
 
  Still, after the window is closed and the download finished I cannot use
  any of the ajax links on my page until I reloaded the whole page.
 
  I don't understand what I might be doing wrong here.
 
 
  Am 08.12.2011 um 21:34 schrieb Martin Grigorov:
 
 
   See ModalWindow's javadoc. It explains about the need of a form
 
  On Thu, Dec 8, 2011 at 8:24 PM, heapifyman heapify...@gmail.com
 wrote:
 
  You mean putting an additional form around the modal window like below?
 
  form wicket:id=form
  fieldset
  button wicket:id=downloadButton**span
  wicket:id=**downloadButtonLabel/span/**button
... more buttons here ...
/fieldset
div wicket:id=dataPanel/div
  /form
 
  where dataPanel is:
  wicket:panel
  wicket:container wicket:id=checkGroup
  div wicket:id=dataContainer/**div
  /wicket:container
 
form wicket:id=**formAroundModalWindow
 div wicket:id=downloadDialog/**div
/form
 
  wicket:panel
 
 
  2011/12/8 Daniel Weidele daniel.weidele@uni-konstanz.**de
 daniel.weid...@uni-konstanz.de
  
 
   No, it's doesn't look nested, yet. You may nest forms in Wicket, where
  the
  modal windows markup is in between.
 
  This worked for me when I experienced a similar problem.
 
  Von meinem iPad gesendet
 
  Am 08.12.2011 um 14:12 schrieb heapifyman heapify...@gmail.com:
 
   I believe it already is. My markup looks like this:
 
  form wicket:id=form
  fieldset
  button wicket:id=downloadButton**span
  wicket:id=**downloadButtonLabel/span/**button
... more buttons here ...
/fieldset
div wicket:id=dataPanel/div
  /form
 
  where dataPanel is:
  wicket:panel
  wicket:container wicket:id=checkGroup
  div wicket:id=dataContainer/**div
  /wicket:container
div wicket:id=downloadDialog/**div
  wicket:panel
 
 
  2011/12/8 Daniel Weidele daniel.weidele@uni-konstanz.**de
 daniel.weid...@uni-konstanz.de
  
 
   Have you tried to put modal itself inside of another form, too?
 
 
  Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:
 
   Hello again.
 
  Here's some more information about my problem: in the ModalWindow's
  SubmitButton's onSubmit() I call at the end:
 
  ModalWindow.closeCurrent(**target);
  download.initiate(target);
 
  The AJAXDownload behaviour is added to the SubmitButton in the
 
  ModalWindow.
 
  Or do I have to add it to the button on my page that opens the
 
  ModalWindow?
 
 
  Thanks in advance.
 
 
 
  2011/12/7 heapifyman heapify...@gmail.com
 
   Hello all,
 
  I have a problem with a file download from a ModalWindow.
  The ModalWindow contains a form in which the user can specify some
  parameters. When clicking submit I generate a PDF based on the
  chosen
  parameters and offer it for download. The ModalWindow is closed
  then.
  I followed the approach described here
 
 
   https://cwiki.apache.org/**WICKET/ajax-update-and-file-**
  download-in-one-blow.htmland
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland
 
 
  it actually works quite nice.
 
  My problem is that after the file is downloaded and the
 ModalWindow
  is
  closed all my Ajax stuff on the page from which the ModalWindow
 was
 
  opened
 
  are not working anymore. Only when I reload the page, the Ajax
 stuff
 
  is
 
  working again.
 
  I would appreciate any hints as to what I might be doing wrong. Or
 
  maybe
 
  someone has another code example of how to download a file from a
  ModalWindow?
 
  Thanks in advance.
 
 
 
 
  --**--**
  -
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
 users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  --**--**
  -
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
 users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: 

Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
Hello again.

Here's some more information about my problem: in the ModalWindow's
SubmitButton's onSubmit() I call at the end:

ModalWindow.closeCurrent(target);
download.initiate(target);

The AJAXDownload behaviour is added to the SubmitButton in the ModalWindow.
Or do I have to add it to the button on my page that opens the ModalWindow?

Thanks in advance.



2011/12/7 heapifyman heapify...@gmail.com

 Hello all,

 I have a problem with a file download from a ModalWindow.
 The ModalWindow contains a form in which the user can specify some
 parameters. When clicking submit I generate a PDF based on the chosen
 parameters and offer it for download. The ModalWindow is closed then.
 I followed the approach described here
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
  and
 it actually works quite nice.

 My problem is that after the file is downloaded and the ModalWindow is
 closed all my Ajax stuff on the page from which the ModalWindow was opened
 are not working anymore. Only when I reload the page, the Ajax stuff is
 working again.

 I would appreciate any hints as to what I might be doing wrong. Or maybe
 someone has another code example of how to download a file from a
 ModalWindow?

 Thanks in advance.





Re: Download file from ModalWindow problem

2011-12-08 Thread Daniel Weidele
Have you tried to put modal itself inside of another form, too?


Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:

 Hello again.
 
 Here's some more information about my problem: in the ModalWindow's
 SubmitButton's onSubmit() I call at the end:
 
 ModalWindow.closeCurrent(target);
 download.initiate(target);
 
 The AJAXDownload behaviour is added to the SubmitButton in the ModalWindow.
 Or do I have to add it to the button on my page that opens the ModalWindow?
 
 Thanks in advance.
 
 
 
 2011/12/7 heapifyman heapify...@gmail.com
 
 Hello all,
 
 I have a problem with a file download from a ModalWindow.
 The ModalWindow contains a form in which the user can specify some
 parameters. When clicking submit I generate a PDF based on the chosen
 parameters and offer it for download. The ModalWindow is closed then.
 I followed the approach described here
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
  and
 it actually works quite nice.
 
 My problem is that after the file is downloaded and the ModalWindow is
 closed all my Ajax stuff on the page from which the ModalWindow was opened
 are not working anymore. Only when I reload the page, the Ajax stuff is
 working again.
 
 I would appreciate any hints as to what I might be doing wrong. Or maybe
 someone has another code example of how to download a file from a
 ModalWindow?
 
 Thanks in advance.
 
 
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
I believe it already is. My markup looks like this:

form wicket:id=form
fieldset
button wicket:id=downloadButtonspan
wicket:id=downloadButtonLabel/span/button
... more buttons here ...
/fieldset
div wicket:id=dataPanel/div
/form

where dataPanel is:
wicket:panel
wicket:container wicket:id=checkGroup
div wicket:id=dataContainer/div
/wicket:container
div wicket:id=downloadDialog/div
wicket:panel


2011/12/8 Daniel Weidele daniel.weid...@uni-konstanz.de

 Have you tried to put modal itself inside of another form, too?


 Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:

  Hello again.
 
  Here's some more information about my problem: in the ModalWindow's
  SubmitButton's onSubmit() I call at the end:
 
  ModalWindow.closeCurrent(target);
  download.initiate(target);
 
  The AJAXDownload behaviour is added to the SubmitButton in the
 ModalWindow.
  Or do I have to add it to the button on my page that opens the
 ModalWindow?
 
  Thanks in advance.
 
 
 
  2011/12/7 heapifyman heapify...@gmail.com
 
  Hello all,
 
  I have a problem with a file download from a ModalWindow.
  The ModalWindow contains a form in which the user can specify some
  parameters. When clicking submit I generate a PDF based on the chosen
  parameters and offer it for download. The ModalWindow is closed then.
  I followed the approach described here
 
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland
  it actually works quite nice.
 
  My problem is that after the file is downloaded and the ModalWindow is
  closed all my Ajax stuff on the page from which the ModalWindow was
 opened
  are not working anymore. Only when I reload the page, the Ajax stuff is
  working again.
 
  I would appreciate any hints as to what I might be doing wrong. Or maybe
  someone has another code example of how to download a file from a
  ModalWindow?
 
  Thanks in advance.
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Download file from ModalWindow problem

2011-12-08 Thread Daniel Weidele
No, it's doesn't look nested, yet. You may nest forms in Wicket, where the 
modal windows markup is in between.

This worked for me when I experienced a similar problem.

Von meinem iPad gesendet

Am 08.12.2011 um 14:12 schrieb heapifyman heapify...@gmail.com:

 I believe it already is. My markup looks like this:
 
 form wicket:id=form
 fieldset
 button wicket:id=downloadButtonspan
 wicket:id=downloadButtonLabel/span/button
... more buttons here ...
/fieldset
div wicket:id=dataPanel/div
 /form
 
 where dataPanel is:
 wicket:panel
 wicket:container wicket:id=checkGroup
 div wicket:id=dataContainer/div
 /wicket:container
div wicket:id=downloadDialog/div
 wicket:panel
 
 
 2011/12/8 Daniel Weidele daniel.weid...@uni-konstanz.de
 
 Have you tried to put modal itself inside of another form, too?
 
 
 Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:
 
 Hello again.
 
 Here's some more information about my problem: in the ModalWindow's
 SubmitButton's onSubmit() I call at the end:
 
 ModalWindow.closeCurrent(target);
 download.initiate(target);
 
 The AJAXDownload behaviour is added to the SubmitButton in the
 ModalWindow.
 Or do I have to add it to the button on my page that opens the
 ModalWindow?
 
 Thanks in advance.
 
 
 
 2011/12/7 heapifyman heapify...@gmail.com
 
 Hello all,
 
 I have a problem with a file download from a ModalWindow.
 The ModalWindow contains a form in which the user can specify some
 parameters. When clicking submit I generate a PDF based on the chosen
 parameters and offer it for download. The ModalWindow is closed then.
 I followed the approach described here
 
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland
 it actually works quite nice.
 
 My problem is that after the file is downloaded and the ModalWindow is
 closed all my Ajax stuff on the page from which the ModalWindow was
 opened
 are not working anymore. Only when I reload the page, the Ajax stuff is
 working again.
 
 I would appreciate any hints as to what I might be doing wrong. Or maybe
 someone has another code example of how to download a file from a
 ModalWindow?
 
 Thanks in advance.
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
You mean putting an additional form around the modal window like below?

form wicket:id=form
fieldset
button wicket:id=downloadButtonspan
wicket:id=downloadButtonLabel/span/button
... more buttons here ...
/fieldset
div wicket:id=dataPanel/div
/form

where dataPanel is:
wicket:panel
wicket:container wicket:id=checkGroup
div wicket:id=dataContainer/div
/wicket:container

form wicket:id=formAroundModalWindow
 div wicket:id=downloadDialog/div
/form

wicket:panel


2011/12/8 Daniel Weidele daniel.weid...@uni-konstanz.de

 No, it's doesn't look nested, yet. You may nest forms in Wicket, where the
 modal windows markup is in between.

 This worked for me when I experienced a similar problem.

 Von meinem iPad gesendet

 Am 08.12.2011 um 14:12 schrieb heapifyman heapify...@gmail.com:

  I believe it already is. My markup looks like this:
 
  form wicket:id=form
  fieldset
  button wicket:id=downloadButtonspan
  wicket:id=downloadButtonLabel/span/button
 ... more buttons here ...
 /fieldset
 div wicket:id=dataPanel/div
  /form
 
  where dataPanel is:
  wicket:panel
  wicket:container wicket:id=checkGroup
  div wicket:id=dataContainer/div
  /wicket:container
 div wicket:id=downloadDialog/div
  wicket:panel
 
 
  2011/12/8 Daniel Weidele daniel.weid...@uni-konstanz.de
 
  Have you tried to put modal itself inside of another form, too?
 
 
  Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:
 
  Hello again.
 
  Here's some more information about my problem: in the ModalWindow's
  SubmitButton's onSubmit() I call at the end:
 
  ModalWindow.closeCurrent(target);
  download.initiate(target);
 
  The AJAXDownload behaviour is added to the SubmitButton in the
  ModalWindow.
  Or do I have to add it to the button on my page that opens the
  ModalWindow?
 
  Thanks in advance.
 
 
 
  2011/12/7 heapifyman heapify...@gmail.com
 
  Hello all,
 
  I have a problem with a file download from a ModalWindow.
  The ModalWindow contains a form in which the user can specify some
  parameters. When clicking submit I generate a PDF based on the chosen
  parameters and offer it for download. The ModalWindow is closed then.
  I followed the approach described here
 
 
 https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland
  it actually works quite nice.
 
  My problem is that after the file is downloaded and the ModalWindow is
  closed all my Ajax stuff on the page from which the ModalWindow was
  opened
  are not working anymore. Only when I reload the page, the Ajax stuff
 is
  working again.
 
  I would appreciate any hints as to what I might be doing wrong. Or
 maybe
  someone has another code example of how to download a file from a
  ModalWindow?
 
  Thanks in advance.
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Download file from ModalWindow problem

2011-12-08 Thread heapifyman
I did and I still don't seem to get it. I think I followed all the  
recommendations in javadoc:


- put div wicket:id=downloadDialog/div in html file before the  
ajax button that opens the window

- added another form around the div wicket:id=downloadDialog/div
- changed sequence in ModalWindow's form's submit to
download.initiate(target);
ModalWindow.closeCurrent(target);

Still, after the window is closed and the download finished I cannot  
use any of the ajax links on my page until I reloaded the whole page.


I don't understand what I might be doing wrong here.


Am 08.12.2011 um 21:34 schrieb Martin Grigorov:


See ModalWindow's javadoc. It explains about the need of a form

On Thu, Dec 8, 2011 at 8:24 PM, heapifyman heapify...@gmail.com  
wrote:
You mean putting an additional form around the modal window like  
below?


form wicket:id=form
fieldset
button wicket:id=downloadButtonspan
wicket:id=downloadButtonLabel/span/button
   ... more buttons here ...
   /fieldset
   div wicket:id=dataPanel/div
/form

where dataPanel is:
wicket:panel
wicket:container wicket:id=checkGroup
div wicket:id=dataContainer/div
/wicket:container

   form wicket:id=formAroundModalWindow
div wicket:id=downloadDialog/div
   /form

wicket:panel


2011/12/8 Daniel Weidele daniel.weid...@uni-konstanz.de

No, it's doesn't look nested, yet. You may nest forms in Wicket,  
where the

modal windows markup is in between.

This worked for me when I experienced a similar problem.

Von meinem iPad gesendet

Am 08.12.2011 um 14:12 schrieb heapifyman heapify...@gmail.com:


I believe it already is. My markup looks like this:

form wicket:id=form
fieldset
button wicket:id=downloadButtonspan
wicket:id=downloadButtonLabel/span/button
   ... more buttons here ...
   /fieldset
   div wicket:id=dataPanel/div
/form

where dataPanel is:
wicket:panel
wicket:container wicket:id=checkGroup
div wicket:id=dataContainer/div
/wicket:container
   div wicket:id=downloadDialog/div
wicket:panel


2011/12/8 Daniel Weidele daniel.weid...@uni-konstanz.de


Have you tried to put modal itself inside of another form, too?


Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:


Hello again.

Here's some more information about my problem: in the  
ModalWindow's

SubmitButton's onSubmit() I call at the end:

ModalWindow.closeCurrent(target);
download.initiate(target);

The AJAXDownload behaviour is added to the SubmitButton in the

ModalWindow.

Or do I have to add it to the button on my page that opens the

ModalWindow?


Thanks in advance.



2011/12/7 heapifyman heapify...@gmail.com


Hello all,

I have a problem with a file download from a ModalWindow.
The ModalWindow contains a form in which the user can specify  
some
parameters. When clicking submit I generate a PDF based on the  
chosen
parameters and offer it for download. The ModalWindow is  
closed then.

I followed the approach described here




https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland

it actually works quite nice.

My problem is that after the file is downloaded and the  
ModalWindow is
closed all my Ajax stuff on the page from which the  
ModalWindow was

opened
are not working anymore. Only when I reload the page, the Ajax  
stuff

is

working again.

I would appreciate any hints as to what I might be doing  
wrong. Or

maybe
someone has another code example of how to download a file  
from a

ModalWindow?

Thanks in advance.





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





PGP.sig
Description: Signierter Teil der Nachricht


Re: Download file from ModalWindow problem

2011-12-08 Thread Ernesto Reinaldo Barreiro
Can you please create a quick-start application that we can test?

Ernesto

On Fri, Dec 9, 2011 at 1:38 AM, heapifyman heapify...@gmail.com wrote:

 I did and I still don't seem to get it. I think I followed all the
 recommendations in javadoc:

 - put div wicket:id=downloadDialog/**div in html file before the
 ajax button that opens the window
 - added another form around the div wicket:id=downloadDialog/**div
 - changed sequence in ModalWindow's form's submit to
download.initiate(target);
ModalWindow.closeCurrent(**target);

 Still, after the window is closed and the download finished I cannot use
 any of the ajax links on my page until I reloaded the whole page.

 I don't understand what I might be doing wrong here.


 Am 08.12.2011 um 21:34 schrieb Martin Grigorov:


  See ModalWindow's javadoc. It explains about the need of a form

 On Thu, Dec 8, 2011 at 8:24 PM, heapifyman heapify...@gmail.com wrote:

 You mean putting an additional form around the modal window like below?

 form wicket:id=form
 fieldset
 button wicket:id=downloadButton**span
 wicket:id=**downloadButtonLabel/span/**button
   ... more buttons here ...
   /fieldset
   div wicket:id=dataPanel/div
 /form

 where dataPanel is:
 wicket:panel
 wicket:container wicket:id=checkGroup
 div wicket:id=dataContainer/**div
 /wicket:container

   form wicket:id=**formAroundModalWindow
div wicket:id=downloadDialog/**div
   /form

 wicket:panel


 2011/12/8 Daniel Weidele 
 daniel.weidele@uni-konstanz.**dedaniel.weid...@uni-konstanz.de
 

  No, it's doesn't look nested, yet. You may nest forms in Wicket, where
 the
 modal windows markup is in between.

 This worked for me when I experienced a similar problem.

 Von meinem iPad gesendet

 Am 08.12.2011 um 14:12 schrieb heapifyman heapify...@gmail.com:

  I believe it already is. My markup looks like this:

 form wicket:id=form
 fieldset
 button wicket:id=downloadButton**span
 wicket:id=**downloadButtonLabel/span/**button
   ... more buttons here ...
   /fieldset
   div wicket:id=dataPanel/div
 /form

 where dataPanel is:
 wicket:panel
 wicket:container wicket:id=checkGroup
 div wicket:id=dataContainer/**div
 /wicket:container
   div wicket:id=downloadDialog/**div
 wicket:panel


 2011/12/8 Daniel Weidele 
 daniel.weidele@uni-konstanz.**dedaniel.weid...@uni-konstanz.de
 

  Have you tried to put modal itself inside of another form, too?


 Am 08.12.2011 um 13:29 schrieb heapifyman heapify...@gmail.com:

  Hello again.

 Here's some more information about my problem: in the ModalWindow's
 SubmitButton's onSubmit() I call at the end:

 ModalWindow.closeCurrent(**target);
 download.initiate(target);

 The AJAXDownload behaviour is added to the SubmitButton in the

 ModalWindow.

 Or do I have to add it to the button on my page that opens the

 ModalWindow?


 Thanks in advance.



 2011/12/7 heapifyman heapify...@gmail.com

  Hello all,

 I have a problem with a file download from a ModalWindow.
 The ModalWindow contains a form in which the user can specify some
 parameters. When clicking submit I generate a PDF based on the
 chosen
 parameters and offer it for download. The ModalWindow is closed
 then.
 I followed the approach described here


  https://cwiki.apache.org/**WICKET/ajax-update-and-file-**
 download-in-one-blow.htmlandhttps://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.htmland

 it actually works quite nice.

 My problem is that after the file is downloaded and the ModalWindow
 is
 closed all my Ajax stuff on the page from which the ModalWindow was

 opened

 are not working anymore. Only when I reload the page, the Ajax stuff

 is

 working again.

 I would appreciate any hints as to what I might be doing wrong. Or

 maybe

 someone has another code example of how to download a file from a
 ModalWindow?

 Thanks in advance.




 --**--**
 -
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 --**--**
 -
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





Download file from ModalWindow problem

2011-12-07 Thread heapifyman
Hello all,

I have a problem with a file download from a ModalWindow.
The ModalWindow contains a form in which the user can specify some
parameters. When clicking submit I generate a PDF based on the chosen
parameters and offer it for download. The ModalWindow is closed then.
I followed the approach described here
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
and
it actually works quite nice.

My problem is that after the file is downloaded and the ModalWindow is
closed all my Ajax stuff on the page from which the ModalWindow was opened
are not working anymore. Only when I reload the page, the Ajax stuff is
working again.

I would appreciate any hints as to what I might be doing wrong. Or maybe
someone has another code example of how to download a file from a
ModalWindow?

Thanks in advance.