Java Gwt和Sencha,你忘了你继承了一个必需的模块吗。
我正在尝试使用Sencha GXT 3.1测试版在GWT2.6中实现一个条形图。 它编译得很好,但我确实得到了几个 14:40:40.102[错误][comav200]第71行:没有可用于com.sencha.gxt.chart.client.chart.chart类型的源代码;您是否忘记继承所需的模块 错误。我确实使用导入com.sencha.gxt.chart.client.chart.chart;(还有更多)。 有人对为什么会发生这种情况或我忘记了什么有什么想法吗 致以最良好的祝愿,Java Gwt和Sencha,你忘了你继承了一个必需的模块吗。,java,gwt,extjs,Java,Gwt,Extjs,我正在尝试使用Sencha GXT 3.1测试版在GWT2.6中实现一个条形图。 它编译得很好,但我确实得到了几个 14:40:40.102[错误][comav200]第71行:没有可用于com.sencha.gxt.chart.client.chart.chart类型的源代码;您是否忘记继承所需的模块 错误。我确实使用导入com.sencha.gxt.chart.client.chart.chart;(还有更多)。 有人对为什么会发生这种情况或我忘记了什么有什么想法吗 致以最良好的祝愿, Ke
Kerrai请在
gwt.xml
<inherits name='com.sencha.gxt.chart.Chart' />
<!-- Project.gwt.xml module file -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.0//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.0/distro-source/core/src/gwt-module.dtd">
<module rename-to='project'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<!-- Other module inherits -->
<inherits name='com.sencha.gxt.ui.GXT' />
<!-- Add this for using GXT charts -->
<inherits name='com.sencha.gxt.chart.Chart' />
<!-- GXT Stylesheet -->
<stylesheet src="reset.css" />
<!-- Override the blue theme -->
<inherits name="com.sencha.gxt.theme.gray.Gray" />
<!-- Specify the app entry point class. -->
<entry-point class='com.sencha.gxt.project.client.ProjectEntryPoint' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
</module>
Project.gwt.xml
模块示例:(这是一个完整的示例,其中大部分是可选的。)
请验证您的gwt.xml
<inherits name='com.sencha.gxt.chart.Chart' />
<!-- Project.gwt.xml module file -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.0//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.0/distro-source/core/src/gwt-module.dtd">
<module rename-to='project'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<!-- Other module inherits -->
<inherits name='com.sencha.gxt.ui.GXT' />
<!-- Add this for using GXT charts -->
<inherits name='com.sencha.gxt.chart.Chart' />
<!-- GXT Stylesheet -->
<stylesheet src="reset.css" />
<!-- Override the blue theme -->
<inherits name="com.sencha.gxt.theme.gray.Gray" />
<!-- Specify the app entry point class. -->
<entry-point class='com.sencha.gxt.project.client.ProjectEntryPoint' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
</module>
我不知道Sencha,但可能有一个模块,比如,
com.Sencha.gxt.chart.chart
(遵循GWT的命名约定),您忘记了在GWT.xml中使用