我在GWT编译期间遇到了这个编译错误.我用它来解析XML文档.
[ERROR] Line 24: No source code is available for type org.w3c.dom.Node; did you forget to inherit a required module?
[ERROR] Line 28: No source code is available for type org.w3c.dom.NodeList; did you forget to inherit a required module?
[ERROR] Aborting compile due to errors in some input files
Run Code Online (Sandbox Code Playgroud)
根据我对此所做的任何研究,它表示类路径可能会丢失,但由于这将默认包含在gwt-user.jar和JRE7中,并且我还没有包含任何外部jar,所以不存在重复的情况!并且您不能在客户端代码中使用这些类型的代码,因为它将转换为javascript
我有一个类在我的共享文件夹(GWT模型视图Presenter项目结构)中使用此Node,这基本上是一个模型!
如果1为真,我怎么能够重构我的客户端演示者访问这个模型而不是每次都没有RPC调用?
有没有替代方法?
我的GWT配置文件.
<module rename-to='xxxxx'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name="com.google.gwt.xml.XML" />
<entry-point class='com.xxxx.xxxxx.gwt.client.ProjectEntry'/>
<source path='client'/>
<source path='shared'/>
</module>
Run Code Online (Sandbox Code Playgroud)
编辑:我已经包含了xml继承了!它的工作
我是JavaFX的新手.仍在摆弄几个样本,试图决定是否适用于我们正在尝试构建的应用程序.我们的应用程序的第一阶段是一个数据输入阶段,用户将面临很多问题并记录他的回答.这里的问题是另一个团队正在构建问题集,这些问题都是XML,就像这样.
<?xml version="1.0" encoding="UTF-8"?>
<userData>
<question id="Q1" type ="desc">
<text>Enter the name of the Component</text>
</question>
<question id ="Q2" type ="list">
<text>Select mechanism type</text>
<choices>
<choice> Type 1 </choice>
<choice> Type 2 </choice>
<choice> Type 3 </choice>
<choice> Type 4 </choice>
</choices>
</question>
<question id ="Q5" type="yesNo">
<text> Whether the parts have been verified by the supervisor? </text>
</question>
<question id ="Q6" type="yesNo">
<text> Whether the component is available within the domicile </text>
</question>
<question id ="Q7" type="value">
<text> Enter …Run Code Online (Sandbox Code Playgroud)