GWT EXT(GXT) 中的 Hello World

发布于 2024-12-18 08:48:06 字数 515 浏览 4 评论 0原文

我想从 Gwt ext 开始,只是想从这个 tutorial

但是当我运行我的程序时它说

无法在类路径中找到“com/extjs/gxt/ui/GXT.gwt.xml”;

如果我然后将其替换为我的 xml 文件,

<inherits name='com.gwtext.GwtExt'/>

则会出现此错误

com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext' 为 null 或不是对象

i want to start with Gwt ext , just trying to write my first program (Hello World) in EXT-GWT from this tutorial

But when i run my program it says

unable to find 'com/extjs/gxt/ui/GXT.gwt.xml' on your classpath;

if i then replace it in my xml file to

<inherits name='com.gwtext.GwtExt'/>

then it gives this error

com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext' is null or not an object

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太阳哥哥 2024-12-25 08:48:07

您是否想通过 Ext GWT 教程来熟悉 GWT Ext?在这种情况下,顺序很重要,GWT Ext 与 Ext GWT 不同。

话虽如此,假设您想开始使用 ExtGwt,而不是 GWT EXT,您的类路径中可能没有 EXTGwt jar。

另外,在教程中它说您应该

<inherits name="com.extjs.gxt.ui.GXT" /> 

在 gwt.xml 文件中包含此内容。不要将其更改为 GwtExt,因为就像我之前所说的那样,ExtGWT != GWT Ext。

区别在于:

ExtGWT 是 StackOverflow 上该类别所指的产品。它是由sencha开发的。

GWT Ext 是 ExtJS 的开源包装器(也由 Sencha 开发)。

请参阅这篇文章以获得更清晰的视图:http:// /roberthanson.blogspot.com/2008/04/gwt-ext-vs-ext-gwt.html,或这个:gwt-ext 和 ext-gwt 之间的区别

Are you trying to get stared with GWT Ext, using a tutorial for Ext GWT? In this case, order is important, GWT Ext is different from Ext GWT.

Having that said, and assuming you want to get started with ExtGwt, not GWT EXT, you probably don't have the EXTGwt jar in your classpath.

Also, in the tutorial it says you should have this:

<inherits name="com.extjs.gxt.ui.GXT" /> 

in your gwt.xml file. Don't change it to GwtExt, because like I said before, ExtGWT != GWT Ext.

Difference is:

ExtGWT is the product this category on StackOverflow reffers to. It's developed by sencha.

GWT Ext is an open source wrapper for ExtJS (developed by Sencha also).

See this post for a more clear view: http://roberthanson.blogspot.com/2008/04/gwt-ext-vs-ext-gwt.html, or this one: Difference between gwt-ext and ext-gwt

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文