سؤال

I'm using this example by Ulrich Krause http://www.eknori.de/2011-10-25/xpages-to-pdf-with-itext/

And it works great but when you have clicked on the button the PDF is returned to the user. Any SSJS clicks is dead on the page for a while. Like a timeout, Any ideas how to I fix it ?

هل كانت مفيدة؟

المحلول

I would move the code onto its own xpage into the beforeRenderResponse event and use the button to open that page (eventually in its own window?). This way you don't need to high-jack the response of the page you want to continue to use.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top