Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with implementing Smartgwt

Tags:

gwt

smartgwt

Hello I'm new to smartGwt, working with gwt fine. Now want to upgrade to smartgwt, try many tutorial they follow the same thing but when I tried it, I ran into error.

I have 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 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 in my html file for add all related scripts, first I tried with

var isomorphicDir = "testSmartGWT_01/sc/";

in script tag, but not working enter image description here

Below is the things I include in my xml file enter image description here

like image 296
Manish Jain Avatar asked Jul 29 '14 11:07

Manish Jain


2 Answers

You have to inherit SmartGwt without scripts:

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

Then setting xsiFrame.failIfScriptTag to false isn't necessary any more.

like image 146
sladstaetter Avatar answered Oct 02 '22 00:10

sladstaetter


Did you added below in your host page (html used to start the app), which looks like this (best in the 'head' tag and replace [module-name] by 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: http://forums.smartclient.com/showthread.php?t=20246

like image 28
Prasanth Np Avatar answered Oct 02 '22 00:10

Prasanth Np