Re: Finding out when actionLink action is completed on the user side

2017-03-27 Thread g kuczera
Right now we are using Tapestry 5.3.7 and upgrading is unlikely, so the async option is out of the reach, I think. I also do not want to open the save-file-dialog by default (the requirement from the client). I will check the FileSaver as soon as I can. Is there a possibility that the zones could

Re: Finding out when actionLink action is completed on the user side

2017-03-27 Thread Christian Riedel
you could use t:async="true“ instead and return the pdf along with some custom script that re-activates your button. the binary of the pdf could be passed into FileSaver[0] to create the save-file-dialog of the browser. while all this happens you could show a progress indicator to the user. if

Finding out when actionLink action is completed on the user side

2017-03-27 Thread g kuczera
Hi everybody, I have an actionLink, which action returns the pdf document from the server. The document is dynamically generated, so it can take few seconds to deliver it to the user. I want to prevent the user from clicking on the actionLink multiple times. I can block it in java script after the