
SmartGWT
pkuyjxu
这个作者很懒,什么都没留下…
展开
-
Difference between GWT.create(SomeClass.class) and new SomeClass()
GWT.create is used by the GWT compiler for deferred binding. Deferred binding is a feature of the GWT compiler that works by generating many versions of code at compile time, only one of which needs t原创 2012-02-29 18:07:45 · 924 阅读 · 0 评论 -
Could not load project* from super dev mode server when deployed to weblogic/jboss/tomcat?
找遍了OA和google 也没找出能解决的。 其实这个很简单,如果实在eclipse环境下 就是GWT Compile完成后不要run,直接打包成war包,然后deploy到中间件weblogic或者jboss之类的。原创 2016-05-26 14:05:55 · 1039 阅读 · 1 评论 -
Jetty提交数据时报java.lang.IllegalStateException: Form too large问题解决
今天在使用Eclipse的Jetty插件做为服务器提交富文本编辑中的数据时,报如下异常:[java] view plaincopyprint?java.lang.IllegalStateException: Form too large270468>200000 at org.mortbay.jetty.Request.extr转载 2013-11-06 16:05:31 · 1742 阅读 · 0 评论 -
Title and close button are shown on the bottom of the window, SmartGWT
Solution: Use more meaningful fubjects, such as : use window.addItem() instead of window.addMember()原创 2013-09-11 21:28:53 · 848 阅读 · 0 评论 -
war文件打包教程 web application/SmartGwt
1, 进入web application所在工程目录的war路径下,../war2,使用\war>jar cf test.war * 打包成test.war 文件PS:WebLogic中应用可分三种,分别对应不同的描述文件及扩展名或目录结构: (1)*.JAR: 是EJB的压缩包(有3个描述文件ejb-jar.xml,WEBLOGIC*.0-ejb-ja原创 2012-11-28 13:54:01 · 885 阅读 · 0 评论 -
SmartGWT中的client端Record与Server端的DSRequest搭配使用
Example:在client端发送了一个 record,如下:private DataSource metroDataSource =com.smartgwt.client.data.DataSource.get("METRO");Record rd = new Record(); rd.setAttribute("metroname", (St原创 2013-09-10 11:06:48 · 1369 阅读 · 0 评论 -
smartGWT或这GWT获取资源(图片等)路径的方法
比如pic1.png 在 /war/images/pic1.png, 那么获取该资源路径的方法如下:GWT.getHostPageBaseURL()+"images/pic1.png"这样部署到应用服务器后,运行程序就不会出现找不到资源的情况了原创 2013-07-26 09:16:58 · 2038 阅读 · 0 评论 -
第一个自建SmartGWT项目——SmartGWTHello
新建空的WebApplication Project导入SmartGWTLibrary新建GWTModule修改Hello.gwt.xml文件新建入口类Hello.java文件写入代码如下新建HTMLPage文件对其修改如下程序运行结果如下原创 2013-07-21 22:37:50 · 1160 阅读 · 0 评论 -
警告: Could not open windows ......at root 0x80000002. Windows RegOpenKey(...) returned error cod
警告: Could not open windows registry node Software\JavaSoft\Prefs\... at root 0x80000002. Windows RegOpenKey(...) returned error code 2. In Windows 7, even if you are administrator, a program原创 2012-04-23 13:10:31 · 5459 阅读 · 1 评论 -
Solution: No source code is available for type com.google.gwt.maps.client.MapWidget
Solution:Make sure gwt-maps.jar is in my classpath or in the maven dependency path, then add the following code into *.gwt.xml原创 2012-04-17 15:35:33 · 2239 阅读 · 0 评论 -
Solution: java.net.ConnectException: Connection refused: connect
Step1, turn off windows firewall .Step 2, relace the webside or link with ip instead. For instance, //url = new URL("http://api.pulsetechltd.com:8080/ncws/pos"); url = new URL("htt原创 2012-04-12 14:32:14 · 732 阅读 · 0 评论 -
System.out.println() 输出中文乱码
System.out.println() 输出中文乱码class Hello {public static void main(String[] args) {String strs = "你好,小穆!";/****情况1System.out.println(strs);这样输出当然乱码了,因为没有改变它的编码格式;*****//*****情转载 2012-04-24 14:55:21 · 25660 阅读 · 1 评论 -
Get the screen size (screen resolution) in SmartGWT
layout = new HLayout();layout.setWidth100();int screenWidth = layout.getVisibleWidth();layout = new HLayout();layout.setWidth100();int screenWidth = layout.getVisibleWidth();原创 2012-04-03 13:50:58 · 823 阅读 · 0 评论 -
2 solution of java.lang.OutOfMemoryError in Java
Every one in java development face java.lang.OutOfMemoryError now and then, OutOfMemoryError in Java is one problem which is more due to system's limitation (memory) rather than due to programming mis转载 2012-03-07 16:16:10 · 1338 阅读 · 0 评论 -
Configure JUnit's Source in Eclipse
Download this JAR (ftp://ftp.osuosl.org/pub/eclipse/eclipse/updates/3.5/R-3.5-200906111540/plugins/org.junit4.source_4.5.0.v20090423.jar) into youreclipse/plugins directory.Edit the file sourc转载 2012-03-02 16:29:44 · 618 阅读 · 0 评论 -
SmartGWT中文显示乱码的解决办法
总共有2中方法:There are two ways to explicitly tell the browser what character encoding is being used for a given page. One is to set the "Content-Type" HTTP header, for example: Content-Type: text原创 2016-05-20 10:18:10 · 1005 阅读 · 0 评论