Go Back   SmartClient Forums > Addendums
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 6th Jan 2011, 10:23
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 35,694
Default SmartClient 8.0:Patch for error drawing HTMLFlow

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.");
    }
}
Note: This patch is also required for SmartGWT 2.4 Enterprise, Pro and Power editions, which have the same underlying SmartClient JavaScript code. The SmartGwt 2.4 LGPL release should not require this patch code.

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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved