I got the build-in-ds sample/example to work, running in Eclipse, using SMART GWT 6.1. I can't add to the example though, because if I go ahead and add a component, say:
import com.smartgwt.client.widgets.tree.TreeGrid; // which works, Eclipse Jee Oxygen finds it
and then declare a TreeGrid, e.g.
final TreeGrid treeGrid = new TreeGrid();
the GWT Compile subsequently fails:
[ERROR] Line 47: No source code is available for type com.smartgwt.client.widgets.tree.TreeGrid; did you forget to inherit a required module?
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
I then investigated my associated BUILT_IN_DS_3.gwt.xml file, someone at Isomorphic asking if I modified/broke it, AND I DID NOT ... DID NOT EVEN KNOW ABOUT IT.
DO I NEED TO ADD SOMETHING TO THIS .gwt.xml file for it to work, the contents of it currently are:
<?xml version="1.0" encoding="UTF-8"?>
<!--
When updating your version of GWT, you should also update this DTD reference,
so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.1//EN"
"http://gwtproject.org/doctype/2.8.1/gwt-module.dtd">
<module rename-to='built_in_ds_3'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- 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.clean.Clean'/>
<!-- <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'/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='com.smartgwt.sample.client.BUILT_IN_DS_3'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
<!-- allow Super Dev Mode -->
<add-linker name="xsiframe"/>
</module>
import com.smartgwt.client.widgets.tree.TreeGrid; // which works, Eclipse Jee Oxygen finds it
and then declare a TreeGrid, e.g.
final TreeGrid treeGrid = new TreeGrid();
the GWT Compile subsequently fails:
[ERROR] Line 47: No source code is available for type com.smartgwt.client.widgets.tree.TreeGrid; did you forget to inherit a required module?
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
I then investigated my associated BUILT_IN_DS_3.gwt.xml file, someone at Isomorphic asking if I modified/broke it, AND I DID NOT ... DID NOT EVEN KNOW ABOUT IT.
DO I NEED TO ADD SOMETHING TO THIS .gwt.xml file for it to work, the contents of it currently are:
<?xml version="1.0" encoding="UTF-8"?>
<!--
When updating your version of GWT, you should also update this DTD reference,
so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.1//EN"
"http://gwtproject.org/doctype/2.8.1/gwt-module.dtd">
<module rename-to='built_in_ds_3'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- 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.clean.Clean'/>
<!-- <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'/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='com.smartgwt.sample.client.BUILT_IN_DS_3'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
<!-- allow Super Dev Mode -->
<add-linker name="xsiframe"/>
</module>
Comment