- 浏览: 1744424 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (641)
- vb2005xu自己动手系列 (174)
- vb2005xu开发文章转摘 (47)
- vb2005xu发发牢骚 (99)
- vb2005xu新技术灌水 (12)
- vb2005xu网络资源集锦 (21)
- vb2005xu软件学习 (60)
- 英语学习 (3)
- JavaScript 学习 (54)
- JAVA OOP 巩固 之 CustomDatabase 的开发 (5)
- 2013年9月之前所在公司 记事 (7)
- FleaPHP/QEEPHP 资料 (87)
- JAVA MAIL 学习篇 (4)
- Python turbogears (5)
- Rails 个人开发四部曲 (3)
- 名人传 (8)
- iwp framework (5)
- 高考零分作文 (5)
- startos (8)
- lua (0)
- 职场 (1)
最新评论
-
hellotieye:
自己 评论 自己 挺嗨呀
Mysql sql查询时 if 的用法 -
igevin:
转载请标明出处,转自Gevin的博客http://blog.i ...
RESTful API 编写指南 -
Theobob:
...
实现简单的ACL -
vb2005xu:
比如 对于 curl 调用就不再需要 加各种if 判断了,
$ ...
搞一个简单的数据打印工具AsDebug の Laravel -
vb2005xu:
http://geekplux.com/wiki/
YII2 模块内自定义错误页
下载完了,解压缩到G盘,目录如下所示:
写道
文件夹 PATH 列表
卷序列号码为 002E0031 6015:5EE8
├─doc
│ ├─helpInfo
│ └─javadoc
│ ├─com
│ │ └─google
│ │ └─gwt
│ │ ├─animation
│ │ │ └─client
│ │ ├─benchmarks
│ │ │ └─client
│ │ ├─core
│ │ │ ├─client
│ │ │ └─ext
│ │ │ ├─linker
│ │ │ └─typeinfo
│ │ ├─dom
│ │ │ └─client
│ │ ├─event
│ │ │ ├─dom
│ │ │ │ └─client
│ │ │ ├─logical
│ │ │ │ └─shared
│ │ │ └─shared
│ │ ├─http
│ │ │ └─client
│ │ ├─i18n
│ │ │ ├─client
│ │ │ └─rebind
│ │ │ ├─format
│ │ │ └─keygen
│ │ ├─json
│ │ │ └─client
│ │ ├─junit
│ │ │ ├─client
│ │ │ └─tools
│ │ ├─user
│ │ │ ├─client
│ │ │ │ ├─rpc
│ │ │ │ └─ui
│ │ │ ├─datepicker
│ │ │ │ └─client
│ │ │ └─server
│ │ │ └─rpc
│ │ └─xml
│ │ └─client
│ └─resources
└─samples
├─DynaTable
│ ├─src
│ │ └─com
│ │ └─google
│ │ └─gwt
│ │ └─sample
│ │ └─dynatable
│ │ ├─client
│ │ └─server
│ └─war
│ ├─dynatable
│ └─WEB-INF
│ └─classes
│ └─com
│ └─google
│ └─gwt
│ └─sample
│ └─dynatable
│ ├─client
│ └─server
├─Hello
│ ├─src
│ │ └─com
│ │ └─google
│ │ └─gwt
│ │ └─sample
│ │ └─hello
│ │ └─client
│ └─war
│ ├─hello
│ └─WEB-INF
│ └─classes
│ └─com
│ └─google
│ └─gwt
│ └─sample
│ └─hello
│ └─client
├─I18N
│ ├─src
│ │ └─com
│ │ └─google
│ │ └─gwt
│ │ └─sample
│ │ └─i18n
│ │ └─client
│ └─war
│ ├─i18n
│ └─WEB-INF
│ └─classes
│ └─com
│ └─google
│ └─gwt
│ └─sample
│ └─i18n
│ └─client
├─JSON
│ ├─src
│ │ └─com
│ │ └─google
│ │ └─gwt
│ │ └─sample
│ │ └─json
│ │ ├─client
│ │ └─public
│ └─war
│ ├─json
│ └─WEB-INF
│ └─classes
│ └─com
│ └─google
│ └─gwt
│ └─sample
│ └─json
│ └─client
├─Mail
│ ├─src
│ │ └─com
│ │ └─google
│ │ └─gwt
│ │ └─sample
│ │ └─mail
│ │ └─client
│ └─war
│ ├─mail
│ └─WEB-INF
│ └─classes
│ └─com
│ └─google
│ └─gwt
│ └─sample
│ └─mail
│ └─client
└─Showcase
├─src
│ └─com
│ └─google
│ └─gwt
│ └─sample
│ └─showcase
│ ├─client
│ │ └─content
│ │ ├─i18n
│ │ ├─lists
│ │ ├─other
│ │ ├─panels
│ │ ├─popups
│ │ ├─tables
│ │ ├─text
│ │ └─widgets
│ ├─generator
│ └─public
│ ├─chrome
│ ├─dark
│ ├─images
│ └─standard
└─war
├─showcase
│ ├─chrome
│ ├─dark
│ ├─gwt
│ │ ├─chrome
│ │ │ └─images
│ │ │ └─ie6
│ │ ├─dark
│ │ │ └─images
│ │ │ └─ie6
│ │ └─standard
│ │ └─images
│ │ └─ie6
│ ├─gwtShowcaseSource
│ │ ├─css
│ │ │ ├─chrome
│ │ │ ├─chrome_rtl
│ │ │ ├─dark
│ │ │ ├─dark_rtl
│ │ │ ├─standard
│ │ │ └─standard_rtl
│ │ ├─java
│ │ └─raw
│ ├─images
│ └─standard
└─WEB-INF
└─classes
└─com
└─google
└─gwt
└─sample
└─showcase
├─client
│ └─content
│ ├─i18n
│ ├─lists
│ ├─other
│ ├─panels
│ ├─popups
│ ├─tables
│ ├─text
│ └─widgets
└─generator
卷序列号码为 002E0031 6015:5EE8
├─doc
│ ├─helpInfo
│ └─javadoc
│ ├─com
│ │ └─gwt
│ │ ├─animation
│ │ │ └─client
│ │ ├─benchmarks
│ │ │ └─client
│ │ ├─core
│ │ │ ├─client
│ │ │ └─ext
│ │ │ ├─linker
│ │ │ └─typeinfo
│ │ ├─dom
│ │ │ └─client
│ │ ├─event
│ │ │ ├─dom
│ │ │ │ └─client
│ │ │ ├─logical
│ │ │ │ └─shared
│ │ │ └─shared
│ │ ├─http
│ │ │ └─client
│ │ ├─i18n
│ │ │ ├─client
│ │ │ └─rebind
│ │ │ ├─format
│ │ │ └─keygen
│ │ ├─json
│ │ │ └─client
│ │ ├─junit
│ │ │ ├─client
│ │ │ └─tools
│ │ ├─user
│ │ │ ├─client
│ │ │ │ ├─rpc
│ │ │ │ └─ui
│ │ │ ├─datepicker
│ │ │ │ └─client
│ │ │ └─server
│ │ │ └─rpc
│ │ └─xml
│ │ └─client
│ └─resources
└─samples
├─DynaTable
│ ├─src
│ │ └─com
│ │ └─gwt
│ │ └─sample
│ │ └─dynatable
│ │ ├─client
│ │ └─server
│ └─war
│ ├─dynatable
│ └─WEB-INF
│ └─classes
│ └─com
│ └─gwt
│ └─sample
│ └─dynatable
│ ├─client
│ └─server
├─Hello
│ ├─src
│ │ └─com
│ │ └─gwt
│ │ └─sample
│ │ └─hello
│ │ └─client
│ └─war
│ ├─hello
│ └─WEB-INF
│ └─classes
│ └─com
│ └─gwt
│ └─sample
│ └─hello
│ └─client
├─I18N
│ ├─src
│ │ └─com
│ │ └─gwt
│ │ └─sample
│ │ └─i18n
│ │ └─client
│ └─war
│ ├─i18n
│ └─WEB-INF
│ └─classes
│ └─com
│ └─gwt
│ └─sample
│ └─i18n
│ └─client
├─JSON
│ ├─src
│ │ └─com
│ │ └─gwt
│ │ └─sample
│ │ └─json
│ │ ├─client
│ │ └─public
│ └─war
│ ├─json
│ └─WEB-INF
│ └─classes
│ └─com
│ └─gwt
│ └─sample
│ └─json
│ └─client
│ ├─src
│ │ └─com
│ │ └─gwt
│ │ └─sample
│ │ └─client
│ └─war
│ └─WEB-INF
│ └─classes
│ └─com
│ └─gwt
│ └─sample
│ └─client
└─Showcase
├─src
│ └─com
│ └─gwt
│ └─sample
│ └─showcase
│ ├─client
│ │ └─content
│ │ ├─i18n
│ │ ├─lists
│ │ ├─other
│ │ ├─panels
│ │ ├─popups
│ │ ├─tables
│ │ ├─text
│ │ └─widgets
│ ├─generator
│ └─public
│ ├─chrome
│ ├─dark
│ ├─images
│ └─standard
└─war
├─showcase
│ ├─chrome
│ ├─dark
│ ├─gwt
│ │ ├─chrome
│ │ │ └─images
│ │ │ └─ie6
│ │ ├─dark
│ │ │ └─images
│ │ │ └─ie6
│ │ └─standard
│ │ └─images
│ │ └─ie6
│ ├─gwtShowcaseSource
│ │ ├─css
│ │ │ ├─chrome
│ │ │ ├─chrome_rtl
│ │ │ ├─dark
│ │ │ ├─dark_rtl
│ │ │ ├─standard
│ │ │ └─standard_rtl
│ │ ├─java
│ │ └─raw
│ ├─images
│ └─standard
└─WEB-INF
└─classes
└─com
└─gwt
└─sample
└─showcase
├─client
│ └─content
│ ├─i18n
│ ├─lists
│ ├─other
│ ├─panels
│ ├─popups
│ ├─tables
│ ├─text
│ └─widgets
└─generator
将其添加到 环境变量path 中, 然后就可以在命令行直接使用附带的辅助工具来创建项目了..
然后我在此目录下建立了一个 gwtapp\hello 目录及子目录,进入hello文件夹dos提示符中输入:
写道
webAppCreator.cmd cn.iamsese.gwt.client.HelloWorld
将建立一个新项目,目录结构如下:
写道
hello
├─src
│ └─cn
│ └─iamsese
│ └─gwt
│ └─client
│ ├─client
│ └─server
└─war
├─helloworld
│ └─gwt
│ └─standard
│ └─images
│ └─ie6
└─WEB-INF
├─classes
│ └─cn
│ └─iamsese
│ └─gwt
│ └─client
│ ├─client
│ └─server
└─lib
├─src
│ └─cn
│ └─iamsese
│ └─gwt
│ └─client
│ ├─client
│ └─server
└─war
├─helloworld
│ └─gwt
│ └─standard
│ └─images
│ └─ie6
└─WEB-INF
├─classes
│ └─cn
│ └─iamsese
│ └─gwt
│ └─client
│ ├─client
│ └─server
└─lib
建立完了,但是该怎么测试呢????
在网上找都是说,会有三个辅助工具 projectCreator , applicationCreator , junitCreator.. 没有找到在哪,可能是以前的版本有,但是现在没有,在google里面搜索,没有找到...
找了半天,不知道改怎么运行,看看实例,发现里面有个readme文件,仔细读读,原来 运行功能都藏在ant的 build.xml文件中,现录如下:
写道
If you prefer to work from the command line, you can use Ant to build your
project. (http://ant.apache.org/) Ant uses the generated 'build.xml' file
which describes exactly how to build your project. This file has been tested
to work against Ant 1.7.1. The following assumes 'ant' is on your command
line path.
To run hosted mode, just type 'ant hosted'.
To compile your project for deployment, just type 'ant'.
To compile and also bundle into a .war file, type 'ant war'.
For a full listing of other targets, type 'ant -p'.
project. (http://ant.apache.org/) Ant uses the generated 'build.xml' file
which describes exactly how to build your project. This file has been tested
to work against Ant 1.7.1. The following assumes 'ant' is on your command
line path.
To run hosted mode, just type 'ant hosted'.
To compile your project for deployment, just type 'ant'.
To compile and also bundle into a .war file, type 'ant war'.
For a full listing of other targets, type 'ant -p'.
意思是说,
本地服务器调试 运行 ant hosted
将gwt编译成成js 运行 ant
打包 ant war
下面是我这个helloworld里面的build.xml文件,
<?xml version="1.0" encoding="utf-8" ?> <project name="HelloWorld" default="build" basedir="."> <!-- Configure path to GWT SDK --> <property name="gwt.sdk" location="G:/gwt-windows-1.7.0" /> <path id="project.class.path"> <pathelement location="war/WEB-INF/classes"/> <pathelement location="${gwt.sdk}/gwt-user.jar"/> <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/> <!-- Add any additional non-server libs (such as JUnit) --> <fileset dir="war/WEB-INF/lib" includes="**/*.jar"/> </path> <target name="libs" description="Copy libs to WEB-INF/lib"> <mkdir dir="war/WEB-INF/lib" /> <copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet.jar" /> <!-- Add any additional server libs that need to be copied --> </target> <target name="javac" depends="libs" description="Compile java source"> <mkdir dir="war/WEB-INF/classes"/> <javac srcdir="src" includes="**" encoding="utf-8" destdir="war/WEB-INF/classes" source="1.5" target="1.5" nowarn="true" debug="true" debuglevel="lines,vars,source"> <classpath refid="project.class.path"/> </javac> <copy todir="war/WEB-INF/classes"> <fileset dir="src" excludes="**/*.java"/> </copy> </target> <target name="gwtc" depends="javac" description="GWT compile to JavaScript"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"> <classpath> <pathelement location="src"/> <path refid="project.class.path"/> </classpath> <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> <jvmarg value="-Xmx256M"/> <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> <arg value="cn.iamsese.gwt.client.HelloWorld"/> </java> </target> <target name="hosted" depends="javac" description="Run hosted mode"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.HostedMode"> <classpath> <pathelement location="src"/> <path refid="project.class.path"/> </classpath> <jvmarg value="-Xmx256M"/> <arg value="-startupUrl"/> <arg value="HelloWorld.html"/> <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> <arg value="cn.iamsese.gwt.client.HelloWorld"/> </java> </target> <target name="build" depends="gwtc" description="Build this project" /> <target name="war" depends="build" description="Create a war file"> <zip destfile="HelloWorld.war" basedir="war"/> </target> <target name="clean" description="Cleans this project"> <delete dir="war/WEB-INF/classes" failonerror="false" /> <delete dir="war/helloworld" failonerror="false" /> </target> </project>
可以自己创建那几个命令辅助器的批处理文件....
下面是那个说明文件的原文:
写道
--- Generated by GWT WebAppCreator ---
Congratulations, you've successfully generated a starter project! What next?
-- Option A: Import your project into Eclipse (recommended) --
If you use Eclipse, you can simply import the generated project into Eclipse.
We've tested against Eclipse 3.3 and 3.4. Later versions will likely also
work, earlier versions may not.
In Eclipse, go to the File menu and choose:
File -> Import... -> Existing Projects into Workspace
Browse to the directory containing this file,
select "HelloWorld".
Be sure to uncheck "Copy projects into workspace" if it is checked.
Click Finish.
You can now browse the project in Eclipse.
To launch your web app in GWT hosted mode, go to the Run menu and choose:
Run -> Open Debug Dialog...
Under Java Application, you should find a launch configuration
named "HelloWorld". Select and click "Debug".
You can now use the built-in debugger to debug your web app in hosted mode.
To compile for web mode, just run your app in hosted mode and press the
"Compile/Browse" button.
-- Option B: Build from the command line with Ant --
If you prefer to work from the command line, you can use Ant to build your
project. (http://ant.apache.org/) Ant uses the generated 'build.xml' file
which describes exactly how to build your project. This file has been tested
to work against Ant 1.7.1. The following assumes 'ant' is on your command
line path.
To run hosted mode, just type 'ant hosted'.
To compile your project for deployment, just type 'ant'.
To compile and also bundle into a .war file, type 'ant war'.
For a full listing of other targets, type 'ant -p'.
-- Option C: Using another IDE --
GWT projects can be run in other IDEs as well, but will require some manual
setup. If you go this route, be sure to:
* Have your IDE build .class files into 'war/WEB-INF/classes'.
* Add gwt-user.jar and gwt-dev-<platform>.jar to your project build path.
* When creating a launch configuration, add a classpath entry for your 'src'
folder (this is somewhat unusual but GWT needs access to your source files).
If you get stuck, try to mimic what the Ant 'build.xml' would do.
Congratulations, you've successfully generated a starter project! What next?
-- Option A: Import your project into Eclipse (recommended) --
If you use Eclipse, you can simply import the generated project into Eclipse.
We've tested against Eclipse 3.3 and 3.4. Later versions will likely also
work, earlier versions may not.
In Eclipse, go to the File menu and choose:
File -> Import... -> Existing Projects into Workspace
Browse to the directory containing this file,
select "HelloWorld".
Be sure to uncheck "Copy projects into workspace" if it is checked.
Click Finish.
You can now browse the project in Eclipse.
To launch your web app in GWT hosted mode, go to the Run menu and choose:
Run -> Open Debug Dialog...
Under Java Application, you should find a launch configuration
named "HelloWorld". Select and click "Debug".
You can now use the built-in debugger to debug your web app in hosted mode.
To compile for web mode, just run your app in hosted mode and press the
"Compile/Browse" button.
-- Option B: Build from the command line with Ant --
If you prefer to work from the command line, you can use Ant to build your
project. (http://ant.apache.org/) Ant uses the generated 'build.xml' file
which describes exactly how to build your project. This file has been tested
to work against Ant 1.7.1. The following assumes 'ant' is on your command
line path.
To run hosted mode, just type 'ant hosted'.
To compile your project for deployment, just type 'ant'.
To compile and also bundle into a .war file, type 'ant war'.
For a full listing of other targets, type 'ant -p'.
-- Option C: Using another IDE --
GWT projects can be run in other IDEs as well, but will require some manual
setup. If you go this route, be sure to:
* Have your IDE build .class files into 'war/WEB-INF/classes'.
* Add gwt-user.jar and gwt-dev-<platform>.jar to your project build path.
* When creating a launch configuration, add a classpath entry for your 'src'
folder (this is somewhat unusual but GWT needs access to your source files).
If you get stuck, try to mimic what the Ant 'build.xml' would do.
我想说明的是,使用自带的浏览器浏览时超级的卡,很占内存,建议不要使用,可以使用额外的浏览器,或者将其放到tomcat里面去跑,要快得多....
评论
1 楼
vb2005xu
2009-08-07
测试页面:http://iamsese.appspot.com/
一个开源的web ui 推荐:
http://iamsese.appspot.com/mocha_v.0.9.5/index.html
一个开源的web ui 推荐:
http://iamsese.appspot.com/mocha_v.0.9.5/index.html
发表评论
-
解决: g++: internal compiler error: Killed (program cc1plus)
2014-12-30 18:47 45878g++: internal compiler error: ... -
linux上靠谱免费的markdown编辑器haroopad
2014-10-18 16:58 2326linux 下我没有找到一个比较好用的 markdown ... -
sublime text linux上中文输入问题的终极解决方案
2014-10-13 11:07 8510我一直在使用sublime text ... -
startos 上 安装百度云客户端
2014-09-22 17:03 3045我的本地gcc版本是 写 ... -
解决ssl校验问题手札
2014-09-16 13:57 2606不论是在使用brew 还是使用 git 总会遇到 ssl ... -
mac系统使用指南之色色篇
2014-08-02 16:38 8508之前没怎么用过mac系统,公司给陪了一个air本,感觉性能 ... -
最近要强迫自己了解的东西
2014-07-01 12:39 1081http://aralejs.org/docs/about ... -
Laravel 4 启用firephp 支持
2014-06-27 15:53 2445目前项目中选用的开发框架是Laravel4,经过几天的阅读源 ... -
PHP cli模式下提示 Module 'xxx' already loaded
2014-04-14 15:23 1682今天在终端下执行PHP脚本爆出 Module 'sqlite ... -
让普通用户登录phpmyadmin不显示information_schema
2014-02-13 16:54 1863http://www.cnblogs.com/faily20 ... -
linux 汉化记述
2014-02-11 16:12 1289linux 汉化记述[机制]一般汉化都是从如下方面着手: ... -
B版树莓派使用学习手札
2014-02-11 11:34 12006配置: 写道 树莓派个 ... -
推荐个免费的python ide
2014-01-03 16:56 4377这是我见过的windows上免费的,最好 最小巧的pytho ... -
vim 学习纪要 -- 自己动手搭建IDE
2013-12-24 18:38 4005从无到有学习vim开发 ... -
PHP插件 vld 学习
2013-11-21 18:17 1182今天凡凡 给出了一段代码: <?php $a=1 ... -
推荐linux 邮件客户端Claws Mail
2013-10-18 16:56 13023默认的startos没有安装邮件客户端,从软件中心中有2个 ... -
推荐linux apache日志分析程序 goaccess
2013-10-18 12:17 5930之前windows上有一个apache访问日志分析的工具, ... -
推荐linux ssh管理工具 remmina远程桌面 -- 替代 secureCRT
2013-10-17 09:58 11440在startos 系统中安装完ssh包之后,只能使用命令行来 ... -
推荐linux svn管理工具 rapidSVN
2013-10-16 12:08 10148之前使用rabbitVCS 但是依然不很给力,装完 sta ... -
将StartOS5.1打造成PHP开发者环境 LAMP
2013-10-15 15:25 4927昨天中午的时候下载了5.1版,在win7中使用sbin撞倒 ...
相关推荐
自己做的GWT 1.7的API文档 有需要的可以下载
完整代码,绝对能用:Spring和...GWT部分集成了Spring的Service(网上的例子很少,要不代码不全,要不不能使用,这个保证完全可以使用)。请注意各个配置文件,程序所用的包都在WEB-INF下的图片上,请自行下载。
最新版本的GWT的原版英文参考手册,如果需要其他的版本,请在我的资料库中查找……
gwt-windows-1.7.1
GWT学习之好的例子GWT学习之好的例子GWT学习之好的例子GWT学习之好的例子
gwt 练习gwt 练习gwt 练习gwt 练习
Gwt google web toolkit 网页开发工具,主要是把java自动转换成javaScript,能够在客户端响应,不存在卡机等待现象。适合于一些需要服务响应很久的网站程序开发
gxt-2.2.4 EXT GWT Note : Ext GWT 2.X requires GWT 1.7+ or GWT 2.0+ (any build ending in "-gwt2.zip").
本人从网上找的比较经典的gwtext入门资料,版权不属于本人所有。适合gwt的初学者,内附详细图片说明
gwt学习资料 java gwt相关学习网站 gwt图解 gwt教学 gwt安装部署 步骤流程
Gwt-ext学习笔记,Gwt-ext学习笔记,Gwt-ext学习笔记
GWT中文学习资料,给初学者而且英语不好的人可以有很大帮助
本资料是关于学习GWT的一些东西;本人在学习之余上传东西给大家一起分享,希望大家喜欢
官方版本,亲测可用
GWT学习时的一些小例子,和大家分享,GWT学习时的一些小例子,和大家分享
Gwt-ext学习笔记之基础篇、安装、配置、例子。
GWT-Ext 是基于 Google ...本系列文章将详细讲解 GWT-Ext 的基本结构和功能特点,并通过代码示例来演示该技术的具体实现。本文是该系列的第一部分,将带领您快速入门 GWT-Ext,并演示如何快速搭建 GWT-Ext 的开发环境。
GWT的资料,本人刚接触这个框架的时候看的,感觉大部分都是挺经典的,无论入门还是深入,都挺不错的。国内GWT除了揭秘这本入门级别的书之外,其他还真没啥。 里面的资料均是英文版的。喜欢的兄弟们 都拿去吧
gwt ext gwt-ext gwt-ex t学习必备资料gwt ext gwt-ext gwt-ex t学习必备资料gwt ext gwt-ext gwt-ex t学习必备资料gwt ext gwt-ext gwt-ex t学习必备资料gwt ext gwt-ext gwt-ex t学习必备资料gwt ext gwt-ext gwt-...