In the Main.gwt.xml the combination
<inherits name = "com.smartgwt.SmartGwt"/>
and
<add-linker name="xsiframe"/>
<set-property name="compiler.useSourceMaps" value="true" />
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
causes the following problem:
here is my Main.gwt.xml
I'm running the GWT CodeServer from a simple java main method:
The Code Server is running properly if I remove the SmartGwt module. Please Help!
<inherits name = "com.smartgwt.SmartGwt"/>
and
<add-linker name="xsiframe"/>
<set-property name="compiler.useSourceMaps" value="true" />
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
causes the following problem:
Code:
Linking into D:\Test\workspace\GWT2.5Test\build\web\org.test.Main Invoking Linker Cross-Site-Iframe [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: sc/modules/ISC_Core.js sc/modules/ISC_Foundation.js sc/modules/ISC_Containers.js sc/modules/ISC_Grids.js sc/modules/ISC_Forms.js sc/modules/ISC_RichTextEditor.js sc/modules/ISC_Calendar.js sc/modules/ISC_DataBinding.js sc/skins/Graphite/load_skin.js In order for your application to run correctly, you will need to include these tags in your host page directly. In order to avoid this error, you will need to remove the script tags from the gwt.xml file, or add this property to the gwt.xml file: <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
Code:
<module> <inherits name="com.google.gwt.user.User"/> <inherits name = "com.smartgwt.SmartGwt"/> <inherits name="com.smartgwt.tools.SmartGwtTools" /> <!-- Inherit the default GWT style sheet. You can change --> <!-- the theme of your GWT application by uncommenting --> <!-- any one of the following lines. --> <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> --> <!-- <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> --> <inherits name="com.google.gwt.user.theme.dark.Dark"/> <entry-point class="org.test.client.MainEntryPoint"/> <add-linker name="xsiframe"/> <set-property name="compiler.useSourceMaps" value="true" /> <!-- set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/--> <set-configuration-property name="devModeRedirectEnabled" value="true"/> <!-- Do not define servlets here, use web.xml --> </module>
Code:
import com.google.gwt.dev.codeserver.CodeServer; public class SuperDevStarter { public static void main(String[] args) throws Exception { CodeServer.main(new String[]{"-src", "D:/Test/workspace/GWT2.5Test/src/java", "org.test.Main"}); } }
Comment