On October 23rd, 2014, we updated our
By continuing to use LinkedIn’s SlideShare service, you agree to the revised terms, so please take a few minutes to review them.
+ no page transition, no blocking
Debugging is difficult
+ eclipse: debugging, easy development
Debugging is easy
Using the DOM API dynamically modify the page
Web browser UI to be more interactive and to respond quickly to inputs
Multiple languages and framework across stack
Mixing the js,jsp,xml,java leads maintenance problem
Less reusable code
Breaks MVC principle.
Complicated debugging and testing with different browsers.
Browsers back button and history maintains problem
What is GWT ?
Provides Java-to-javaScirpt Compiler .
Allow to use the java development tools like netbeans and eclipse.
Shell to test and debug modules without compilation
Simple asynchronous browser-to-server RPC
Why GWT ?
Rich user Interface
No need to learn DOM Api( use java Api)
No plugIns required in client side
Why GWT ? (Cont ... )
To share load between client and server
Keeping only insensitive data on client side
Not for validation but for the better and rich user interface.
GWT Application Architecture
Modes of Running Gwt application
Gwt Application can run in two modes .
Hosted Mode is a 'simulated' mode
Run entirely from Eclipse using the GWT Shell.
* Consists of a customized Tomcat Web container.
* Makes debugging easier .
GWT: project structure Package Purpose it/sella/gwt/ The project root package contains module XML files it/sella/gwt/client/ Client-side source files and subpackages it/sella/gwt/server/ Server-side code and subpackages it/sella/gwt/public/ Static resources that can be served publicly
Entry point class (java class)
Css , Images ,other xmls …
External java script file
UI widget library
These are Asynchronous Calls.
A framework used to exchange java objects .
Based on the java servlet architecture .
GWT handle the serialization of java objects.
GWT-RPC services are not same as web services . .
RPC plumbing diagram
Corns of GWT
Browser compatibility pretty good but issues with some browsers.
Layouts,panels and some widgets have bugs .
Corns of GWT ( Cont... )
The appearance of the application depends on the browser.
Take long time to load and heavily uses the client resources.