`
alex8946
  • 浏览: 363130 次
  • 性别: Icon_minigender_1
  • 来自: 广东广州
社区版块
存档分类
最新评论

[ajax]Google Web Toolkit 和 googlipse(GWT eclipse 插件)开发ajax

    博客分类:
  • Ajax
阅读更多
最近在玩 Google Web Toolkit 
一个可以用纯java编写ajax,然后自动翻译成可以用在j2ee工程里的程序,太强了。
因此不用学ajax,只要会java(尤其awt基础)和这个工具,ajax任我玩
介绍一下,好东西,感觉有望成为热门ajax开发工具,而且目前还出了与eclipse插件:googlipse。
我刚用过,很方便

收集的资料:

1. 非常完整的gwt+netbeans的教程:http://www.javapassion.com/handsonlabs/ajaxgwtintro/

2. 有3篇IBM文章介绍Google Web Toolkit 
  面向 Java 开发人员的 Ajax: 使用 Google Web Toolkit 开发 Ajax :GWT(Google Web Toolkit) 是 Google 最近推出的一个开发 Ajax 应用的框架,它支持用 Java 开发和调试 Ajax 应用,本文主要介绍如何利用 GWT 进行 Ajax 的开发。
面向 Java 开发人员的 Ajax: Google Web Toolkit 入门 :Ajax 被用于创建更加动态和交互性更好的 Web 应用程序。Google Web Toolkit (简称 GWT) 是 Google 推出的 Ajax 应用开发包,GWT 支持开发者使用 Java 语言开发 Ajax 应用。本文将介绍 GWT 开发 Ajax 应用的基本方法和步骤。

面向 Java 开发人员的 Ajax: 探索 Google Web Toolkit:最近发布的 Google Web Toolkit (GWT) 是一组全面的 API 和工具,它支持用户几乎完全使用 Java 代码来创建动态 Web 应用程序。本文将向您展示 GWT 能做什么,并帮助您确定它是否适合您。

3.(GWT eclipse 插件1)gwtdesigner
http://www.instantiations.com/gwtdesigner/download.html

4.(GWT eclipse 插件2)googlipse

1) 下载:http://sourceforge.net/projects/googlipse

2) 安装前提:

a)  Eclipse 3.2 with WebTools Platform 1.5(一定要装,)
b) 运行在 Java 1.5 上
c) 还需要下载 Google Web Toolkit

3) googlipse从安装插件到做出实例全过程(官方)

 (*) Drop the com.googlipse.gwt_<version></version>.jar file in your eclipse\plugins folder
 (*) Open Eclipse. Select Window->Preferences->Googlipse and set GWT home to the directory where you have installed the Google Web Toolkit.
 (*) You are all set to code.
 
Adding Googlipse to your project:

 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?

分享到:
评论

相关推荐

    面向 Java 开发人员的 Ajax: Google Web Toolkit 入门(GWT入门)

    **Java开发人员的Ajax:Google Web Toolkit (GWT) 入门** Google Web Toolkit (GWT) 是一个强大的工具,它允许Java开发人员使用熟悉的Java语言来构建高性能、跨浏览器的Ajax应用程序。GWT通过将Java代码编译为优化...

    Google Web Toolkit 开发 Ajax

    ### Google Web Toolkit (GWT) 开发 Ajax 技术详解 #### 一、GWT特性简介 **GWT**(Google Web Toolkit)是Google推出的一款用于构建和优化复杂Web前端应用的开发工具包。它通过提供一系列强大的特性,极大地简化...

    利用 Google Web Toolkit 在 Java 框架中开发 Ajax 应用程序

    "利用 Google Web Toolkit 在 Java 框架中开发 Ajax 应用程序" 这个标题提到了两个关键技术和一个目的。Google Web Toolkit(GWT)是主要工具,它允许开发者使用 Java 语言来编写前端的 AJAX 应用程序。Ajax,即异步...

    Google Web Toolkit 入门

    针对这一挑战,Google推出了Google Web Toolkit (GWT),这是一款面向Java开发者的Ajax开发工具包,旨在简化Ajax应用程序的开发过程。 #### 二、Ajax简介 Ajax是一种前端技术,通过结合XHTML、CSS、JavaScript、...

    GWT (GOOGLE WEB TOOLKIT)介绍PPT

    **GWT (Google Web Toolkit)** 是一款由Google开发的开源工具包,专为Java开发者设计,使得他们能够使用Java语言创建高效、动态且交互性强的Ajax应用。GWT通过将Java代码编译成浏览器可执行的JavaScript和HTML,解决...

    GWT快速开发(GWT) 是一个Java软件开发框架用于开发类似于Google Maps和Gmail的AJAX应用程序。GWT的设计参考Java AWT包设计,类命名规则、接口设计、事件监听等。你可以用Java编程语言开发你的界面,然后用GWT编译器将Java类转换成适合浏览器执行的...

    **Google Web Toolkit (GWT)** 是由Google推出的一款开源的Java开发框架,主要用于构建高度交互式的Web应用程序,特别是那些类似Google Maps和Gmail这样的AJAX应用。GWT的设计灵感来源于Java AWT包的设计理念,包括...

    Beginning Google Web Toolkit From Novice to Professional

    本书旨在为初学者提供一套全面的学习路径,帮助他们掌握Google Web Toolkit(GWT)的使用技巧,从而能够开发出高效、高质量的网络应用程序。 ### 一、Google Web Toolkit简介 Google Web Toolkit(GWT)是Google...

    GWT ajax开发(Eclipse Ajax)基础学习

    GWT (Google Web Toolkit) 是Google为开发者提供的一款强大的框架,专门用于构建基于Ajax技术的Web应用程序。通过使用Java语言,GWT简化了客户端和服务器端的代码编写,并且自动将Java代码转换为JavaScript和HTML,...

    基于GWT轻松掌握AJAX开发

    Google Web Toolkit (GWT) 是一个开源的开发框架,专为简化AJAX(异步JavaScript + XML)应用的构建而设计。GWT利用Java作为开发语言,通过一个强大的Java-to-JavaScript编译器,将Java代码转换为可以在各种浏览器上...

    在eclipse上用JAVA实现AJAX插件

    **一、GWT(Google Web Toolkit)介绍** GWT是Google推出的一款强大的Web开发框架,它允许开发者使用Java语言来编写前端应用,然后由GWT编译器自动将其转换为优化过的JavaScript代码。GWT提供了丰富的UI组件库,支持...

    使用 Cypal Studio for GWT 简化 Ajax 开发

    **Cypal Studio for GWT** 是一个专为 **Eclipse IDE** 设计的插件,旨在简化基于 **Google Web Toolkit (GWT)** 的 **Ajax** 应用程序的开发流程。通过使用 GWT,Java 开发人员可以利用纯 Java 语言编写富互联网...

    GWT浏览器插件以及火狐浏览器安装包

    标题 "GWT浏览器插件以及火狐浏览器安装包" 涉及的主要知识点是Google Web Toolkit (GWT) 和Mozilla Firefox浏览器的插件安装。GWT是一个开源的Java开发框架,它允许开发者使用Java语言来编写客户端Web应用程序,...

    AJAX开发框架GWT

    Google Web Toolkit (GWT) 是 Google 推出的一款用于构建 AJAX 应用的开发框架,它允许开发者使用 Java 语言编写客户端代码,然后自动将其编译为优化过的 JavaScript 代码,从而实现跨浏览器的 AJAX 功能。...

    利用GWT开发高性能Ajax应用

    GWT集成了如Eclipse这样的Java开发环境,允许开发者使用强大的IDE进行Ajax应用的调试和开发,提升了开发效率。 5. **优化策略**: 除了编译器优化,GWT还提供了一些最佳实践,例如模块化设计,使得开发者可以按需...

    GWT开发指南.pdf

    《GWT开发指南》是针对Java开发人员的一份技术资料,主要介绍了如何使用Google Web Toolkit(GWT)和Apache Geronimo构建启用Ajax的Web应用程序。该指南分为两部分,适合对Ajax应用有需求且对GWT和Geronimo感兴趣的...

Global site tag (gtag.js) - Google Analytics