I’ve learned 3 tricky issue solutions today, of GXT, credit to genius Kevin.
- “did you forget to inherit a required module” error.
This error is because, when GWT compiling Java source code into javascript, it needs the java code source code. If you in a GWT application, use a class which doesn’t in a GWT application, GXT can’t find the source code of this class. So, you need to refactor this class, move it into a GWT application.
Basically, it means, there should be a ${project_name}.gwt.xml config file in your root source folder of your app.
- Log amount of hosted mode and server mode.
Running in a hosted mode is fast and easy, but if you find some tricky issue which gives you very little log info, you should switch to server mode, under this mode, it will give you log information.
- Serialisation issue.
MarginCallDto extends the class BaseModelData. Basically it doesn't contain any fields, it will ask its base class to do the read/store actions. Also this class must be serialisable. I use a Enum class, which effectively can’t be serialized.
Solution to this is to add a dummyEnumVariable, just to let MarginCallDto know that, it will use this class. So, when GWT compiles this class, it will add the Enum staff.
/**
* This field is never used but it is required so that the GWT
* compiler is aware that this class uses BigDecimal and MarginCallType.
*/
@SuppressWarnings("unused")
private BigDecimal dummyBigDecimal;
@SuppressWarnings("unused")
private MarginCallType dummyMarginCallType;
- dd
分享到:
相关推荐
GXT 学习的好书, 帮助你尽快进入GXT.
GXT Cascade ComboBox Samples
浪曦原创]GXT系列+第1讲+GXT_GWT的安装.
gxt初学进阶教程,教你一步一步使用gxt,容易上手,例子很详细
这是GTA4里的源文件american.gxt
贡献一个GXT项目给大家,希望对大家有所帮助!
gwt 文件上传 gxt文件上传
GXT 下拉树(Combo Tree)基本实现GXT 下拉树(Combo Tree)基本实现GXT 下拉树(Combo Tree)基本实现GXT 下拉树(Combo Tree)基本实现GXT 下拉树(Combo Tree)基本实现GXT 下拉树(Combo Tree)基本实现GXT 下拉树(Combo ...
gxt-api-2.2.1帮助文档 。
extjs gwt gxt 学习资源 ajax技术
gxt-api-2.2.5 sdk doc 即ext-gwt api doc
GWT,GXT的JAR包以及源代码,需要的朋友可以下载。 谷歌推出的WebUI的JAVA的库。谢谢大家下载
一步一步教你新建GXT(EXT-GWT)项目
本资源是目前的最新版本(9/15/11) gxt的工具非常之少,在CSDN还有一个gxt-2.1.1(2/2/2010)链接就不提供了,大家根据需要选择下载。
GXT2.2.4 GXT2.2.4 GXT2.2.4GXT2.2.4 GXT2.2.4 GXT2.2.4GXT2.2.4 GXT2.2.4 GXT2.2.4GXT2.2.4 GXT2.2.4 GXT2.2.4GXT2.2.4 GXT2.2.4 GXT2.2.4 jar
这个是官方的英文帮助,对大家开发有帮助。里面描述所有gxt 的类的用法
gxt.jar
目前最适合gxt初学者学习的教程
gwt+gxt jar 包。。基于java语言编写前台界面,java语言最终会被编译成js。方便了不会js的java程序员编写前台
GWT,GXT的JAR包以及源代码,需要的朋友可以下载。 谷歌推出的WebUI的JAVA的库。