I have a current JavaScript in a project that creates the 'calendar' object object window Is a member.
When I added smartgwt to my project, the original calendar object was overwritten by SmartColent Calendar (ISC_Calendar) packaged in smartgwt.
Using a browser-based JS debugger, I found that all JS objects from smartgwt were included in both the window and window.isc Was there. I certainly do not want them all at the window level because many of them have generic names like Calendar.
In my case, the offensive file is ISC_Calendar.js, which is a war / & lt; Projectname & gt; After the GVT compilation, SC / module calls the following line: isc.ClassFactory.defineClass ("calendar", "canvas", "databound comparison");
GWT Compiled Locations: War / ProjectName / SC / Module / ISC_Calendar.js
Jar Location: com.smartclient public / sc / modules / ISC_Calendar.js
Src Location: It can not be found
I think I can just change the javascript file I'm using the jar, but it does not really solve the big problem, I walk in the namespace issues under the road I do not want to worry about
Programmed set must
var isc_useSimpleNames = false; Before any SmartClient component loads into the script tag. SC is the only ICC in this way. * The namespace will register only the names in the place.
Comments
Post a Comment