I appreciate that SuperDevMode is pretty raw/new, but from my perspective, this represents a huge leap in making SmartGWT easier to use/debug/understand as we can now trace into the SmartClient code from Java/GWT code inside the browser.
( Read more about SuperDevMode here: https://developers.google.com/web-to...s/superdevmode and how to set it up here: http://stackoverflow.com/questions/1...78009#13278009 )
So here is how I got it to work with SmartGWT
Since SuperDevMode does not allow script includes in the modules, I added the SmartClient javascript files in the HTML file and used the SmartGWTNoScript module. That made GWT compile happily.
However, when I go to run SuperDevMode the compile button fails (it will show Compiling MODULE... for ever) because of this javascript exception (in MODULE.nocache.js file)
where the propName value is "Class" - which I believe is one of the core SmartClient globals. since there is no providers function, this blows up.
The good news is if I wrap computePropValue with a try/catch (in javascript) it appears to work. So far, I have done this just by manually modifying code in the Chrome Script window (then CTRL+S), ie I change
to
Would be interested to hear of a less manual/hacky patch for this. The other option is to modify the GWT linker files (I think XSTemplate.js ).
( Read more about SuperDevMode here: https://developers.google.com/web-to...s/superdevmode and how to set it up here: http://stackoverflow.com/questions/1...78009#13278009 )
So here is how I got it to work with SmartGWT
Since SuperDevMode does not allow script includes in the modules, I added the SmartClient javascript files in the HTML file and used the SmartGWTNoScript module. That made GWT compile happily.
However, when I go to run SuperDevMode the compile button fails (it will show Compiling MODULE... for ever) because of this javascript exception (in MODULE.nocache.js file)
Code:
function computePropValue(propName){ var value = [b]providers[propName]()[/b], allowedValuesMap = values[propName];
The good news is if I wrap computePropValue with a try/catch (in javascript) it appears to work. So far, I have done this just by manually modifying code in the Chrome Script window (then CTRL+S), ie I change
Code:
result[key] = computePropValue(key);
Code:
try { result[key] = computePropValue(key); } catch (e) { };
Comment