Problem with Smartgwt implementation

Hello, I'm new to smartGwt, works great with gwt. Now you want to switch to smartgwt, try a lot of tutorials, they follow the same, but when I tried, I ran into an error.

I used GWT-2.6.0 , smartGWT-4.0 .

When I try to add <inherits name='com.smartgwt.SmartGwt'/> to my XML file, it shows me an error

 [ERROR] The Cross-Site-Iframe linker does not support <script> tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml files which it includes) contains the following script tags: 

I added below to my html file to add all the related scripts, first I tried using

var isomorphicDir = "testSmartGWT_01 / sc /";

in the script tag but not working enter image description here

Listed below are the things that I include in my XML file enter image description here

+6
source share
3 answers

You must inherit SmartGwt without scripts:

 <inherits name="com.smartgwt.SmartGwtNoScript"/> 

Then setting xsiFrame.failIfScriptTag to false is no longer needed.

+3
source

You added below on your main page (the html used to start the application), which looks like this (best in the "head" tag and replace [module name] with your module name):

 <script src=[module-name]/sc/modules/ISC_Core.js></script> <script src=[module-name]/sc/modules/ISC_Foundation.js></script> <script src=[module-name]/sc/modules/ISC_Containers.js></script> <script src=[module-name]/sc/modules/ISC_Grids.js></script> <script src=[module-name]/sc/modules/ISC_Forms.js></script> <script src=[module-name]/sc/modules/ISC_RichTextEditor.js></script> <script src=[module-name]/sc/modules/ISC_Calendar.js></script> <script src=[module-name]/sc/modules/ISC_DataBinding.js></script> 

check this out: http://forums.smartclient.com/showthread.php?t=20246

+1
source

I had a problem when the basic project of the new GWT web application was created

<!-- allow Super Dev Mode --> <add-linker name="xsiframe"/> </module>

creating the problem by simply removing this code, run it correctly.

0
source

Source: https://habr.com/ru/post/973023/


All Articles