Initial Research on Integrated Development of GWT and eclipse
Original article: http://blog.sina.com.cn/s/blog_415bd707010086cy.html
Download, install, and configure jdk6.0
Http://blog.csdn.net/meng090914/archive/2009/11/13/4806390.aspx
(17:33:56)
Reprinted
Tags:GWTEclipseAjaxProgram DesignIt
Category: it
Download related resources:
1 jseclipse: http://www.adobe.com/cfusion/entitlement/index.cfm? Event = custom SKU = rc00355 E =
From host model to Web Model
In the host model mode, GWT does not compile Java code into JavaScript, but directly runs Java bytecode in the gwt environment,
However, after the project is officially deployed, the Web model is used. How can we migrate data from the host model to the Web model?
First, you need to compile the Java code into JavaScript code.
Use the following command to compile the Java code int
First, the introduction
If you are a Java software and Ajax developer, then Google Web Toolkit (GWT) should have caught your eye.
Google has released this free development kit under the Apache License agreement in May 2006. GWT was designed to simplify the development of AJAX applications in the Java language. The beta version of Google's initial release can be applied to Windows and Linux platforms and p
In a GWT (Google Web Toolkit), there is usually a default package "client". What should I do if I add a new package "lib?
Method 1 (directly add the resource path ):
For example, if your project name is "ax", there will be a corresponding file "ax. GWT. xml", which includes the following content:
.....
.....
Method 2 (Multi-Inclusion ):
First, find the file "ax. GWT
Brief introduction
In recent years, the trend of WEB application development has been the creation of rich Internet applications, most of which are implemented using asynchronous JavaScript + XML (Ajax). However, because writing JavaScript code is complex, this approach is not easy, especially when it is difficult to build large Web applications. So there's GWT: it allows us to build a rich, responsive WEB interface using Java programming instead of
GWT compile takes a long time to compile, compile, and test the Code. This process is miserable.So I searched online to find out how to reduce GWT compile, especially for Dev mode.It will not be affected if you wait for a while during the release.
According to the characteristics of GWT, there are two main aspects to start.1. Better use of hardware
If you use a
Do a SNS project consider using GWT to do foreground backstage spring hibernate how
If you are using GWT to do a project similar to the happy Net station.
The foreground uses GWT to do, adding AJAX effects will be quick. and compatible with different browsers.
You can develop your own components. Page access is fast and stable.
Or you can use the page
GWT can be combined with Struts, spring, and hibernate for web development. In GWT, struts, spring, and hibernate use the same method as SSH integration. You can refer to the integration of the SSH development framework, for the integration of GWT and struts, refer to the following URL:
Http://code.google.com/p/struts2gwtplugin/wiki/ZeroConfig
Http://code.google.
A recent project using the server features, can only be used under Tomcat, but using GWT, so have to add a Web module to GWT project (oneself or prefer jetty plug-ins), reference kidiaoer tutorial completed the Web module add, the process is as follows:Step 1th: Modify the. project fileIncrease under Buildspec node:
Increase under Natures node:2nd Step: Add Facets
Once saved, you can do this:
Step 3rd Mo
EXT + GWT + struts2.0
Previous articles introduced how to use several GWT plug-ins and how GWT interacts with the server. In combination with restructuring the performance Layer of the existing SSH project, here I create a simple gwtweb application. Implements interaction between gwtext (non-extgwt) and struts2 in the form submission mode.
Author's Environment:
Inherits indicates the inheritance module. After inheritance, resources such as JS resources can be shared. required, the content is"Com. Google. GWT. Core. Core" or inherit from its model name;Entry-point indicates what to do during page loading. required. The content is the full name of the entrypoint implementation class;Source indicates the clientCodeBy default, the client directory under the directory where the XML is located;Public indicates the
website:Http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.htmlAnd add the path to your local"ZeroClipboard.swf"File to the trusted files list, or try the" allow all "option.
2. Although flash provides the copy function, the premise is that you can click it once. This means that the setText function cannot be used in javascript to copy to the clipboard. Instead, after the setText function is called, the user's mouse can be clicked on flash.
This library i
1. Introduction to GWT1) GWT objective: to make Ajax development easier by providing similar Java development environments and hiding incompatible parts of various browsers.2) GWT unifies the client and server code, forming a language for writing: Java.This has many advantages:(1) There are more developers familiar with Java than those familiar with JavaScript or flash.(2) There are many Java development to
solution is to directly use the jdt compiler of Eclipse.A.
Find jdtcompileradapter. JarAnd
Org. Eclipse. jdt. core_3.5.2.v_9820.r35x.jar (Search
Org. Eclipse. jdt. Core in eclipse directory)
B. Then put them$ {Ant_home}/lib
C.Add configuration In builder. xml
2. the client package of GWT is compiled to the classes directory by default, but it is not required during release (a gwt project may compile more t
First, the concept of GWT is popular.
Gwt:google WEB Toolkit, with GWT being able to write AJAX front-end in the Java programming language, and then GWT will cross-compile into optimized JavaScript, and JavaScript will automatically run on all major browsers.
(can be simply interpreted as Java to write programs, compiled into JavaScript, run to the browser.) )
Comparison and Selection of AJAX frameworks/Libraries: ECHO2, GWT, DOJO, PROTOTYPE, and JQUERY have read several AJAX Library/framework comparison articles in Chinese and English. For ease of use, the following is a special example:First, you must select one from the two categories: Compilation class and non-compilation class.Echo2/GWT is to compile JAVA code into JAVASCRIPT, which is very convenient at fir
The process of building this development environment is carefully written. Reposted from [http://musicmmm.iteye.com/blog/687645]
For how to download and configure, refer to "Ext GWT 2.0 development getting started". This post was searched by Google when I first came into contact with GXT (Ext-Gwt, although I tried to call the test example according to this post, it was still confused. What are the parameter
Create your GWT project in eclipse
1. Create a project folder, for example, myproject. Copy the following files to the project directory.
│ Applicationcreator. cmd
│ Swt-win32-3139.dll.
│ Projectcreator. cmd
│ Junitcreator. cmd
│ Gwt-user.jar.
│ Gwt-ll.dll.
│ Gwt-dev-windows.jar.
2. Run(1) projectcreator-Eclipse my
Ajax Framework/Library comparison and selection: ECHO2, GWT, DOJO, PROTOTYPE, JQUERY read a few English and Chinese AJAX Library/Framework comparison articles, for the convenience of choice, summed up as follows:
First, in two categories, one is the compiled class and the other is a compiler category.
ECHO2/GWT is the Java code compiled into JavaScript, at first glance very convenient, without mastering JS
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.