|
#1
|
|||
|
|||
|
In SmartClient release 8.0 (isc.version number "SC_SNAPSHOT-2011-01-05") a bug was introduced whereby HTMLFlow components would throw an error on draw().
The following patch code added to the HTML bootstrap file in your application after loading the SmartClient libraries fixes this issue: Code:
if (window.isc != null) {
if (isc.version.startsWith("SC_SNAPSHOT-2011-01-05/")) {
if (isc.HTMLFlow != null) {
isc.HTMLFlow.addProperties({modifyContent:function () {}});
}
} else {
isc.Log.logWarn("Patch for SmartClient 8.0 final release (reported version 'SC_SNAPSHOT-2011-01-05/') " +
"included in this application. " +
"You are currently running SmartClient verion '"+ isc.version +
"'. This patch is not compatible with this build and will have no effect. " +
"It should be removed from your application source.");
}
}
To apply the patch code to a SmartGWT application, simply add a <script> block containing the above code to the bootstrap HTML file under your war directory, after the <script src=applicationname/applicationname.nocache.js></script> block. Last edited by Isomorphic; 6th Jan 2011 at 10:44.. |