My Pages

Wednesday, April 21, 2010

Working with GWT

Hi folks ,I know its too late for adding a post for GWT....but dont worry I will add some useful information that will be beneficial to you people.Hope u enjoy it.

Tutorial on GWT2.0

The Google Web Toolkit (GWT) is a toolkit to develop web application with Java. The developer can develop in Java and debug the code. Once the code is finished the GWT compiler translates the Java code into Javascript. This compiler also makes sure that all the major browsers are correctly support.

GWT provides two modes :

1) Development Mode : In this mode you can debug your code via the standard Java debugger.
2)Web Mode : In this mode , a war of your application can be deployed on the webserver.

Modules & Entry Points :

GWT applcations are defined as modules.A module "module" is described by a configuraion file module.gwt.xml.
Each module can have one or more Entry Points.

Entry Points are the starting point for executing the application ,just as we have the main method as first point of execution in Java.

A module is connected to a HTML page called as host page in GWT .The GWT application runs in this HTML page only.
You can have div elements in the HTML page to which u can attach the GWT UI components.
Also you can attach the UI components to the body element.

Using CSS : You can set the style in the application by using the setStyle(String s) method in the UI widgets.
I will explore it later in the tutorial.

No comments:

Post a Comment