Hi Christopher, Thank you for your reccemend on debugging, I will try this.
Hi Ramakopal, You can use normal linux's gzip to do that.
gzip -c SamplePlugin.js > SamplePlugin.js.jgz
------------------------------
.
------------------------------
Original Message:
Sent: Mon April 14, 2025 08:06 AM
From: Ramagopal Medam
Subject: ICN Plugin does not updated from fist version
Hello Christoph,
How to do compress JS files in plugin? Do you recommend any specific library for this ?
------------------------------
Ramagopal Medam
------------------------------
Original Message:
Sent: Mon April 14, 2025 02:15 AM
From: Christoph Sünderkamp
Subject: ICN Plugin does not updated from fist version
Hi Teera,
great that you have found the error your plugin.
It's a good idea to compress the Javascript sources. However, you can also load the js sources directly for development. This also makes debugging easier.
To do this, specify the URL parameter ...navigator/?debug=true.
You can specify which script is loaded in which mode in your plugin main class (in PluginSample this is the following: com.ibm.ecm.extension.sample.SamplePlugin):
getScript and getDebugScript.
For small plugins, where compression may not be appropriate, you can also load the js source directly:
public String getScript() {
return getDebugScript();
}
------------------------------
Christoph Sünderkamp
Original Message:
Sent: Fri April 11, 2025 01:58 AM
From: Teera Wattanapongsakorn
Subject: ICN Plugin does not updated from fist version
Thank you everyone.
I have founded root cause of this issue.
When I modified SamplePlugin.js, I need to re-gzip the javascript into SamplePlugin.js.jgz again. Because ICN Plugin execute from SamplePlugin.js.jgz, not from SamplePlugin.js.
------------------------------
Teera Wattanapongsakorn