carpii
18 Oct 2008, 1:41 AM
Hi,
Im trying to compile some of the samples, but Im really struggling.
Heres where Ive ended up...
1) Taken Basic Grid example from website, and saved as GridExample.java.
2) Followed the screencasts on how to set up GXT
3) Used GWT's projectCreator to create a basic eclipse project.
I then added GridExample to my project and instantiated a GridExample widget, and added it to the demo panel
4) Added <inherits name='com.extjs.gxt.ui.GXT'/> to my project XML
Trying to compile this, it complains about some resource classes which are missing (Stock.java for example).
After a chat on IRC, I linked "com/extjs/gxt/samples/resources" into my project source path (maybe I did this wrong, but I dont think so, since it compiles)
Now the project compiles, but GWT's hosted browser bombs out with the errors...
[ERROR] Errors in 'file:/home/carpii/dev/gwt/Gridtest/src/com/google/gwt/gridtest/client/GridExample.java'
[ERROR] Line 32: No source code is available for type com.extjs.gxt.samples.resources.client.model.Stock; did you forget to inherit a required module?
[ERROR] Line 84: No source code is available for type com.extjs.gxt.samples.resources.client.TestData; did you forget to inherit a required module?
Heres a screenie just to show how Ive added the source paths. Im new to Eclispe so maybe I made a mistake there
Thanks for any help. Im dying to use the grid control in my project
http://img185.imageshack.us/img185/5928/snapshot2di3.jpg
Im trying to compile some of the samples, but Im really struggling.
Heres where Ive ended up...
1) Taken Basic Grid example from website, and saved as GridExample.java.
2) Followed the screencasts on how to set up GXT
3) Used GWT's projectCreator to create a basic eclipse project.
I then added GridExample to my project and instantiated a GridExample widget, and added it to the demo panel
4) Added <inherits name='com.extjs.gxt.ui.GXT'/> to my project XML
Trying to compile this, it complains about some resource classes which are missing (Stock.java for example).
After a chat on IRC, I linked "com/extjs/gxt/samples/resources" into my project source path (maybe I did this wrong, but I dont think so, since it compiles)
Now the project compiles, but GWT's hosted browser bombs out with the errors...
[ERROR] Errors in 'file:/home/carpii/dev/gwt/Gridtest/src/com/google/gwt/gridtest/client/GridExample.java'
[ERROR] Line 32: No source code is available for type com.extjs.gxt.samples.resources.client.model.Stock; did you forget to inherit a required module?
[ERROR] Line 84: No source code is available for type com.extjs.gxt.samples.resources.client.TestData; did you forget to inherit a required module?
Heres a screenie just to show how Ive added the source paths. Im new to Eclispe so maybe I made a mistake there
Thanks for any help. Im dying to use the grid control in my project
http://img185.imageshack.us/img185/5928/snapshot2di3.jpg