|Re: Modified PDF won't refresh inside Brower control [message #1456605 is a reply to message #1456478]
||Thu, 30 October 2014 14:31
|| John Gymer
Registered: November 2012
Thanks Ivan and Roland for your comments... they got me thinking...|
I'm using ResourceManager.register(<filename>, <stream>) to register the PDF file as rwt-resource, but I assumed that the resource simply pointed to the physical file, but it appears not. The RWT resource is cached at the time the register is done, so if the physical file changes after that time, the resource will never know about it.
I also made an (incorrect) assumption that you didn't need to re-register a modified file on that basis, but I've changed this now, so that every time I re-create the PDF file, I register it again, with the same name through the ResourceManager, and now the modified PDF is picked up OK.
So, that was my misunderstanding of how RWT resources worked, and when they are cached.
If you change the file, re-register it!
All works now thanks guys!
Just because you can doesn't mean you should
Powered by FUDForum
. Page generated in 0.02609 seconds