Sunday, June 20, 2010

Google Web Toolkit(GWT)

What is Google web toolkit? Why it is use full to web-developer? What can be done with it?
How it helps the web-developer?

Well this were some question which were there in my mind in last few hours.

Google web toolkit is set of toolkit that is used for building and optimizing complex browsers based applications.

One may ask what is complex browser application?

For me complex applications are writing ajax request like XMLHttpRequest and JavaScript.

It is an open source set of tools that allows web-developer to create and maintain front-end web application in Java.It is licensed under apache license v2.

So how does it works?
Using GWT developer can rapidly develop ajax application in Java using any Java development tool. When the application is developed the GWT cross compiler translate the Java application to stand alone JavaScript file. So whatever is our ajax or JavaScript requirement in our web application we write that application in Java and then we change that to JavaScript file and include that file in our web document. This way it saves a lot of time of developers to write complex JavaScript.

Some other interesting stuff about GWT
1. The GWT SDK provides a core set of Java API's and library that allows developers to build user interface and logic for the browser client . Than it is cross compiled to JavaScript and at the end we have plain JavaScript.
2. GWT can handle all the client -server communication. so we don't need to worry about XMLHttpRequest it is handled by GWT.
3. The handwritten JavaScript can be mixed with Java Source code to interface with existing JavaScript API's .

Some of the projects which uses GWT are Google Wave and AdWords.

I hope this will help to those who are just browsing the net to find out basic idea about GWT.









No comments: