优点Q封装性比上一个方式更?br />不Q就是看上去奇怪一点,呵呵
MQ以?U方式是目前最q泛使用的,量使用它们避免不必要的问题?/font>
q是首次发布在网?/p>
希望对大家有?br>
有Q何意见请发我邮箱:jorwen.fang@gmail.com,或者在此留a
W一版目录预览:
W?? DWR入门 8
1.1 ?nbsp;8
1.2 W一个DWRE序QHello World 9
1.2.1 DWR攑օ你的工程 9
1.2.2 ~辑配置文g 9
1.2.3 ~写service 10
1.2.4 试DWR 10
1.2.5 ~写一个jsp 11
1.3 本章ȝ 12
W?? web.xml配置 13
2.1 主要配置 13
2.2 常用<init-param>参数列表 14
2.2.1 安全参数 14
2.2.2 Ajax服务器加载时保护参数 14
2.2.3 其他参数 15
2.3 日志配置 16
2.4 多个dwr.xml配置和J2EE角色定义 16
2.5 插g配置 18
2.6 试模式配置 19
W?? dwr.xml配置 20
3.1 U览 20
3.2 <init>标签 20
3.3 <allow>标签 21
3.3.1 Creator 21
3.3.2 Converter 25
3.4 <signatures>标签 30
W?? 整合 32
4.1 DWR与Servlet 32
4.1.1 使用webContext的方法: 32
4.1.2 Ҏ选择 32
4.2 DWR与Spring 34
4.2.1 让DWR和Spring一起工作的查列?nbsp;34
4.2.2 Spring Creator 34
4.2.3 扑ֈSpring配置文g 34
4.2.4 使用Spring配置DWR 35
4.3 DWR与JSF 36
4.3.1 JSF Creator 36
4.3.2 Servlet Filter 36
4.4 DWR与Struts 37
4.4.1 Struts creator 37
4.4.2 开始顺?nbsp;37
4.5 DWR与Weblogic或PageFlow 38
4.6 DWR与Hibernate 39
4.6.1 让DWR和Hibernate一起工作的查列?nbsp;39
4.6.2 HibernateBeanConverter 39
4.6.3 Session理 39
4.7 DWR与WebWork 40
4.7.1 配置dwr.xml 40
4.7.2 在JSP中导入脚?nbsp;40
4.7.3 高 41
4.8 DWR与Acegi 42
4.8.1 问题提出 42
4.8.2 解决Ҏ 42
W?? DWR中的JavaScript?nbsp;44
5.1 单的回调函数 44
5.2 调用元数据对?nbsp;45
5.3 查找回调函数 45
5.4 创造一个与Java对象匚w的Javascript对象 46
W?? engine.js 功能 47
6.1 使用选项 47
6.2 选项索引 48
6.2.1 处理?Handler) 48
6.2.2 调用处理?Call Handler) 48
6.2.3 Hooks (一个batch中可以注册多个hook) 49
6.2.4 全局选项(在单ơ调用或者批量调用中不可? 49
6.2.5 废弃的选项 49
6.2.6 未来版本的选项 49
6.3 选项说明 50
6.3.1 扚w调用 50
6.3.2 序调用 50
6.3.3 错误警告和超?nbsp;50
6.3.4 q程?Hooks 51
6.3.5 q程调用选项 51
W?? util.js 功能 54
7.1 $() 54
7.2 addOptions and removeAllOptions 54
7.3 addRows and removeAllRows 55
7.4 getText 56
7.5 getValue 56
7.6 getValues 57
7.7 onReturn 57
7.8 selectRange 57
7.9 setValue 58
7.10 setValues 58
7.11 toDescriptiveString 58
7.12 useLoadingMessage 58
7.13 Submission box 61
W?? DWRq阶 63
8.1 DWR Annotations 63
8.1.1 初始配置 63
8.1.2 q程讉Kc?nbsp;63
8.1.3 对象转换 64
8.2 错误和异常处?nbsp;64
8.2.1 错误处理 64
8.2.2 异常 65
8.2.3 扑և更多的信?nbsp;65
8.3 传递额外的数据到callback函数 66
8.4 从其他的URLd数据 67
8.5 安全 68
W?? 范例_讲 71
9.1 购物?nbsp;71
9.1.1 介绍 71
9.1.2 实现目录 72
9.1.3 试部v 74
9.1.4 调用q程对象 75
9.1.5 实现购物?nbsp;77
9.1.6 调用q程?Cart Ҏ 79
9.1.7 演示l果 81
9.1.8 ȝ 81
W?0? 附录 83
10.1 常见问题 83
10.1.1 TransformerFactoryConfigurationError 83
10.1.2 XML解析错误 83
10.1.3 使用weblogic的类路径问题 83
10.1.4 没有cookies的情况下用DWR 84
10.2 JavaScript高应用 85
10.2.1 用变量操U函?nbsp;85
10.2.2 高阶函数 86
10.2.3 动态类?nbsp;87
10.2.4 灉|的对象模?nbsp;89
10.2.5 本节ȝ 91
GWT QQ 交流:28310588
最q在?Google Web Toolkit
一个可以用Ujava~写ajaxQ然后自动翻译成可以用在j2ee工程里的E序Q太Z?br />
因此不用学ajaxQ只要会javaQ尤其awt基础Q和q个工具QajaxL?
介绍一下,好东西,感觉有望成ؓ热门ajax开发工P而且目前q出了与eclipse插gQgooglipse?br />我刚用过Q很方便
攉的资料:
1. 非常完整的gwtQnetbeans的教E:http://www.javapassion.com/handsonlabs/ajaxgwtintro/
2. ?IBM文章介绍Google Web Toolkit
面向 Java 开发h员的 Ajax: 使用 Google Web Toolkit 开?Ajax QGWT(Google Web Toolkit) ?Google 最q推出的一个开?Ajax 应用的框Ӟ它支持用 Java 开发和调试 Ajax 应用Q本文主要介l如何利?GWT q行 Ajax 的开发? | |
![]() |
|
![]() |
面向 Java 开发h员的 Ajax: Google Web Toolkit 入门
QAjax 被用于创建更加动态和交互性更好的 Web 应用E序。Google Web Toolkit Q简U?GWTQ??Google 推出?Ajax 应用开发包QGWT 支持开发者?Java 语言开?Ajax 应用。本文将介绍 GWT 开?Ajax 应用的基本方法和步骤?br /> 面向 Java 开发h员的 Ajax: 探烦 Google Web ToolkitQ最q发布的 Google Web Toolkit (GWT) 是一l全面的 API 和工P它支持用户几乎完全?Java 代码来创建动?Web 应用E序。本文将向您展示 GWT 能做什么,q帮助您定它是否适合您?/td> |
Googlipse is implemented as a WTP Facet. When creating a new Dynamic Web Project, select Googlipse in the Project Facets page. If you already have a Dynamic Web Project, you can add Googlipse facet by selecting Project->Properties->Project Facets(Please make sure you don't have gwt-user.jar in your classpath). In case you didn't like Googlipse, you can remove the facet.
Creating a Module:
Once you have a Dynamic Web Project with Googlipse facet, you can add a new module by File->New->Other->Googlipse->Gwt Module. Modules can be created only in valid java packages (default package is not allowed). Either you can type in the package (with project & source folder) in the location field or you can select it by clicking Browse button. You can also click the Create button to create a new package. Next type in the name of the module. Click Finish, you will have all the artifacts for the module generated.
Adding a Remote Service;
Note :A Remote Service will be created only in a module. So if you don't have a module, you need to create one using the New Module wizard, before this step.
You can select File->New->Other->Googlipse->Gwt Remote Service. Click the Browse button and select the module (the gwt.xml file). Type the name and uri for the service and click Finish. Now the artifacts for the remote service will be generated. (You have to add an entry in the gwt.xml file manually. Googlipse doesn't add it. This feature will be implemented in future versions)
Adding a Remote Service method:
You can open the RemoteService interface and add/change methods in it. You need to provide the implementation of those methods in RemoteServiceImpl class, but thanks to Googlipse, you don't have to do anything in RemoteServiceAsync. Googlipse will automatically update the corresponding Async file whenever a RemoteService interface is changed.
Calling a method using Remote Service:
The utility class in the Remote service should help you in making the remote call.
MyRemoteServiceAsync async = MyRemoteService.Util.getInstance();
async.makeRemoteCall(param1, param2, callback);
Running/Debugging a Gwt Application:
Select Run->Run/Debug to activate the Lauch configuration dialog box. Double Click "Gwt Application". In the main page, you can select the Project & Module you want to run. In the parameters page you can select the parameters such as port and log level. Click Run to execute the GwtShell & bring up your application. The laucher will add the jar files & all the source folders in the project to your application.
Questions/Bugs/Suggestions?
Drop a mail to googlipse-users@lists.sourceforge.net