As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Could anyone clarify how to dynamically reload client side js (YUI2 script) and css files without restarting server using sdk 3.0 and jar packaging with HotSwap Agent? I use all-in-one project, created simple surf share page with one component where simple YUI2 component is used. js script for YUI2 component resides in "{root folder of share module}/src/main/resources/META-INF/resources" folder. The problem is that I can't dynamically reload this script. I always have to restart server. Is it actually possible to do that using HotSwap agent? Thanks in advance for any help.
Hi Mark,
Did you try with the suggestion in the document below?
Alfresco SDK 3.0 Beta User Guide
(Paragraph: Hot reloading of Share extensions)
From the information I have, hot reloading on SDK 3.0 is fully supported only on platform side (AIO or Platform JAR projects) but you can try the suggested path in the doc.
I hope this help.
what exact version of the sdk version are you using?
SDK 3.0.
to get the exact version:
grep "alfresco.sdk.version" pom.xml
for example:
<alfresco.sdk.version>3.0.0-beta-5</alfresco.sdk.version>