基本上,我已经实现了一个编辑器(比如Editor_A)入口点。每样东西在载重单位都很好。
然后,我用不同的小部件布局实现了另一个入口点Editor_B。现在,我想禁用入口点Editor_A,并让Editor_B启动。
我修改了以下内容:
in Editor.html
我把<script language="javascript" src="com.mycompany.Editor_A/com.mycompany.Editor_A.nocache.js"></script>改成了<script language="javascript" src="com.mycompany.Editor_B/com.mycompany.Editor_B.nocache.js"></script>
in Editor.gwt.xml
我把<entry-point class="com.mycompany.Editor_A"/>改成了<entry-point class="com.mycompany.Editor_B"/>
不过,我不认为上述的改变是正确的。Editor_A已经走了,但是Editor_B还没有启动,网页上什么也没有。
有人能帮我吗?
发布于 2012-10-09 17:56:55
如果只想更改入口点,就不应该更改引导脚本(*.nocache.js)的路径。更改Editor.gwt.xml中的入口点类就足够了。
除非您在Editor.gwt.xml中指定了"rename-to“属性,否则引导脚本路径应该匹配您的GWT模块的完全限定名(即Editor.gwt.xml的完整路径,但没有尾随的".gwt.xml")。根据你提供的信息,我认为应该是:
<script language="javascript" src="com.mycompany.Editor/com.mycompany.Editor.nocache.js"></script>https://stackoverflow.com/questions/12804687
复制相似问题