SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
GW T
A 'n e w ' w a y t o p r o g r a m d y n a m ic w e b a p p lic a t io n s

                                                       -U s m a n
                                                       -P a v a n
                                                       - R a ja k u m a r
Agenda

   Overview of AJAX development
   Problems with AJAX
   What is GWT ?
   Why GWT ?
   Sample application
   User Interface with GWT
   RPC
   Cons
C la s s ic w e b a p p lic a t io n m o d e l
( yn ch ro n o u s)
 s
A ja x w e b a p p lic a t io n m o d e l
( syn ch ro n o u s)
 a
A s y n c h r o n o u s Ja v a S c r ip t a n d X M L
( JAClient – side
 A X)                                     Server - side




 Javascript                         JAVA

+ no page transition, no blocking    + eclipse: debugging, easy
                                     development
- No IDE
                                     - good IDE’s
- Debugging is difficult
                                     - Debugging is easy
- weakly typed
                                     - strongly typed
A JA X
   Asynchronous JavaScript and XML.

   Clientside javascript to asynchronously fetch
    the data

   Using the DOM API dynamically modify the
    page

   Based on javascript,html,xml,css.xhtml,DOM.

   Web browser UI to be more interactive and to
    respond quickly to inputs
D ra w b a ck s
   Multiple languages and framework across
    stack
   Mixing the js,jsp,xml,java leads maintenance
    problem
   Less modularization
   Less reusable code
   Breaks MVC principle.
   Complicated debugging and testing with
    different browsers.
   Browsers back button and history maintains
    problem
   OOPS
W h a t is G W T ?
A FrameWork for building highly perfomant, Ajax
  enabled , Javascript front-end web applications .

   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
   Open source
   No need to learn Javascript language
   No need to learn DOM Api( use java Api)
   No plugIns required in client side
   Junit integration
Why GWT ? (Cont ... )

   OOPS
   Asynchronous Calls
   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.
G W T A p p lic a t io n A r c h it e c t u r e
M o d e s o f R u n n in g G w t a p p lic a t io n
   Gwt Application can run in two modes .
       Host Mode
   Hosted Mode is a 'simulated' mode
     Run entirely from Eclipse using the GWT Shell.
    * Consists of a customized Tomcat Web container.
    * Makes debugging easier .
       Web Mode
   Run as pure JavaScript and HTML,compiled from
    your original Java source code with the GWT
G o o g le W e b To o lk it ( W T)
                             G
 @ development time                           @ deployment time
                                          Compile to




                           JAVA/eclipse
                                             <html>


                                          Javascript




                                                                                                     javascript
                                             [...]
                                             <script type=quot;text/javascriptquot;>
                                             [...]
                                             xmlhttp.open(quot;POSTquot;, url, true);
                                             xmlhttp.onreadystatechange = function(func) {
                                               if (xmlhttp.readyState == 4) {
                                                 [...]
                                               }
                                             }
                                             xmlhttp.setRequestHeader('MessageType', 'CALL');
                                             xmlhttp.setRequestHeader('Content-Type', 'text/xml');


                       e                     </script>
                                             <body>[...]</body>
                 cod
                                             </html>
           A b ile t o
              yte
        JAV omp
          C




                  Hosted mode
                  JVM
                  IDE
G W T: p r o je c t s t r u c t u r e
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
G W T M o d u le s
   *.gwt.xml

   Jsp,Html, ...

   Entry point class (java class)

   Css , Images ,other xmls …

   External java script file
U I w id g e t lib r a r y
G W T- P C
                     R
   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 . .
R P C p lu m b in g d ia g r a m
Co rn s o f GW T
 Browser compatibility pretty good but issues
  with some browsers.
 Although java to javascript convertion takes
  place, not all features of java can be
  implemented .eg multi threading,Calender etc
 Gwt generated javascript and html are very
  difficult to understand .
 Layouts,panels and some widgets have bugs .
C o r n s o f G W T ( C o n t ... )

   The appearance of the application depends
    on the browser.
   Take long time to load and heavily uses the
    client resources.
R e fe re n ce
  Documentation & Tutorial :
 http://code.google.com/webtoolkit/
 http://code.google.com/webtoolkit/tutorials/1.6/ind

  Libraries
 http://gwt-ext.com/
 http://extjs.com/products/gxt/
  Showcase
 http://gwt.google.com/samples/Showcase/Showc
 http://www.gwt-ext.com/demo/#credits

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Google Web Toolkit
Introduction to Google Web ToolkitIntroduction to Google Web Toolkit
Introduction to Google Web Toolkit
Didier Girard
 

Was ist angesagt? (20)

jQuery plugin & testing with Jasmine
jQuery plugin & testing with JasminejQuery plugin & testing with Jasmine
jQuery plugin & testing with Jasmine
 
Google Web Toolkits
Google Web ToolkitsGoogle Web Toolkits
Google Web Toolkits
 
Groovy & Grails
Groovy & GrailsGroovy & Grails
Groovy & Grails
 
Gwt.Create Keynote San Francisco
Gwt.Create Keynote San FranciscoGwt.Create Keynote San Francisco
Gwt.Create Keynote San Francisco
 
Reactjs Introduction - Virtual DOM
Reactjs Introduction - Virtual DOMReactjs Introduction - Virtual DOM
Reactjs Introduction - Virtual DOM
 
React Django Presentation
React Django PresentationReact Django Presentation
React Django Presentation
 
In defense of GWT-RPC By Colin Alworth
In defense of GWT-RPC By Colin AlworthIn defense of GWT-RPC By Colin Alworth
In defense of GWT-RPC By Colin Alworth
 
Introduction to Google Web Toolkit
Introduction to Google Web ToolkitIntroduction to Google Web Toolkit
Introduction to Google Web Toolkit
 
Infrastructure as Data with Ansible
Infrastructure as Data with AnsibleInfrastructure as Data with Ansible
Infrastructure as Data with Ansible
 
Groovy android
Groovy androidGroovy android
Groovy android
 
Geb+spock: let your functional tests live long and prosper
Geb+spock: let your functional tests live long and prosperGeb+spock: let your functional tests live long and prosper
Geb+spock: let your functional tests live long and prosper
 
Hackathon - building and extending OpenJDK
Hackathon - building and extending OpenJDKHackathon - building and extending OpenJDK
Hackathon - building and extending OpenJDK
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
 
GWT Reloaded
GWT ReloadedGWT Reloaded
GWT Reloaded
 
Hands on the Gradle
Hands on the GradleHands on the Gradle
Hands on the Gradle
 
"How to Use Bazel to Manage Monorepos: The Grammarly Front-End Team’s Experie...
"How to Use Bazel to Manage Monorepos: The Grammarly Front-End Team’s Experie..."How to Use Bazel to Manage Monorepos: The Grammarly Front-End Team’s Experie...
"How to Use Bazel to Manage Monorepos: The Grammarly Front-End Team’s Experie...
 
Maven beyond hello_world
Maven beyond hello_worldMaven beyond hello_world
Maven beyond hello_world
 
Groovy Maven Builds
Groovy Maven BuildsGroovy Maven Builds
Groovy Maven Builds
 
Testing cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTestTesting cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTest
 
Spring-batch Groovy y Gradle
Spring-batch Groovy y GradleSpring-batch Groovy y Gradle
Spring-batch Groovy y Gradle
 

Andere mochten auch

Global Wealth Trade English Presentation
Global Wealth Trade English PresentationGlobal Wealth Trade English Presentation
Global Wealth Trade English Presentation
Gala Jameson
 
Welcome to Medicus Global Opportunity Meeting rev February 3 2017
Welcome to Medicus Global Opportunity Meeting rev February 3 2017Welcome to Medicus Global Opportunity Meeting rev February 3 2017
Welcome to Medicus Global Opportunity Meeting rev February 3 2017
Kevin Young
 
Computer project work [viii]2008 09
Computer project work  [viii]2008 09Computer project work  [viii]2008 09
Computer project work [viii]2008 09
982665379
 
Yammer Overview
Yammer OverviewYammer Overview
Yammer Overview
mselepec
 

Andere mochten auch (20)

Global Wealth Trade Business Opportunity
Global Wealth Trade Business OpportunityGlobal Wealth Trade Business Opportunity
Global Wealth Trade Business Opportunity
 
Poshfinal
Poshfinal Poshfinal
Poshfinal
 
Google Web Toolkit
Google Web ToolkitGoogle Web Toolkit
Google Web Toolkit
 
Elookbook
Elookbook Elookbook
Elookbook
 
Global Wealth Trade English Presentation
Global Wealth Trade English PresentationGlobal Wealth Trade English Presentation
Global Wealth Trade English Presentation
 
Welcome to Medicus Global Opportunity Meeting rev February 3 2017
Welcome to Medicus Global Opportunity Meeting rev February 3 2017Welcome to Medicus Global Opportunity Meeting rev February 3 2017
Welcome to Medicus Global Opportunity Meeting rev February 3 2017
 
Exploring Google Tools - PPT
Exploring Google Tools - PPTExploring Google Tools - PPT
Exploring Google Tools - PPT
 
6 Week Summer Internship in Delhi NCR for B.Tech, MCA, Bsc IT, etc.
6 Week Summer Internship in Delhi NCR for B.Tech, MCA, Bsc IT, etc.6 Week Summer Internship in Delhi NCR for B.Tech, MCA, Bsc IT, etc.
6 Week Summer Internship in Delhi NCR for B.Tech, MCA, Bsc IT, etc.
 
Computer project work [viii]2008 09
Computer project work  [viii]2008 09Computer project work  [viii]2008 09
Computer project work [viii]2008 09
 
Google translate
Google translateGoogle translate
Google translate
 
Roll Laptop
Roll LaptopRoll Laptop
Roll Laptop
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
Google app engine
Google app engineGoogle app engine
Google app engine
 
Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Yammer Overview
Yammer OverviewYammer Overview
Yammer Overview
 
Google TensorFlow Tutorial
Google TensorFlow TutorialGoogle TensorFlow Tutorial
Google TensorFlow Tutorial
 
Green screen ppt and verry small sketchbook prompt
Green screen ppt and verry small sketchbook promptGreen screen ppt and verry small sketchbook prompt
Green screen ppt and verry small sketchbook prompt
 
Salesforce Presentation
Salesforce PresentationSalesforce Presentation
Salesforce Presentation
 
SYNOPSIS WRITING
SYNOPSIS WRITINGSYNOPSIS WRITING
SYNOPSIS WRITING
 

Ähnlich wie Gwt Presentation

Jscript Fundamentals
Jscript FundamentalsJscript Fundamentals
Jscript Fundamentals
rspaike
 
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
Fred Sauer
 
GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009
marpierc
 

Ähnlich wie Gwt Presentation (20)

Gwt Presentation1
Gwt Presentation1Gwt Presentation1
Gwt Presentation1
 
Jscript Fundamentals
Jscript FundamentalsJscript Fundamentals
Jscript Fundamentals
 
GWT
GWTGWT
GWT
 
Jsp
JspJsp
Jsp
 
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
 
GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009
 
GQuery a jQuery clone for Gwt, RivieraDev 2011
GQuery a jQuery clone for Gwt, RivieraDev 2011GQuery a jQuery clone for Gwt, RivieraDev 2011
GQuery a jQuery clone for Gwt, RivieraDev 2011
 
Javascript
JavascriptJavascript
Javascript
 
Javascript survival for CSBN Sophomores
Javascript survival for CSBN SophomoresJavascript survival for CSBN Sophomores
Javascript survival for CSBN Sophomores
 
Unit 4(it workshop)
Unit 4(it workshop)Unit 4(it workshop)
Unit 4(it workshop)
 
Introduction to Java Scripting
Introduction to Java ScriptingIntroduction to Java Scripting
Introduction to Java Scripting
 
Real-World AJAX with ASP.NET
Real-World AJAX with ASP.NETReal-World AJAX with ASP.NET
Real-World AJAX with ASP.NET
 
JavaScript-Core
JavaScript-CoreJavaScript-Core
JavaScript-Core
 
JavaScript-Core
JavaScript-CoreJavaScript-Core
JavaScript-Core
 
WEB TECHNOLOGIES JavaScript
WEB TECHNOLOGIES JavaScriptWEB TECHNOLOGIES JavaScript
WEB TECHNOLOGIES JavaScript
 
Google Web Toolkit
Google Web ToolkitGoogle Web Toolkit
Google Web Toolkit
 
Java scipt
Java sciptJava scipt
Java scipt
 
GWT + Gears : The browser is the platform
GWT + Gears : The browser is the platformGWT + Gears : The browser is the platform
GWT + Gears : The browser is the platform
 
Mlocjs buzdin
Mlocjs buzdinMlocjs buzdin
Mlocjs buzdin
 
Introduction to Google Web Toolkit
Introduction to Google Web ToolkitIntroduction to Google Web Toolkit
Introduction to Google Web Toolkit
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Gwt Presentation

  • 1. GW T A 'n e w ' w a y t o p r o g r a m d y n a m ic w e b a p p lic a t io n s -U s m a n -P a v a n - R a ja k u m a r
  • 2. Agenda  Overview of AJAX development  Problems with AJAX  What is GWT ?  Why GWT ?  Sample application  User Interface with GWT  RPC  Cons
  • 3. C la s s ic w e b a p p lic a t io n m o d e l ( yn ch ro n o u s) s
  • 4. A ja x w e b a p p lic a t io n m o d e l ( syn ch ro n o u s) a
  • 5. A s y n c h r o n o u s Ja v a S c r ip t a n d X M L ( JAClient – side A X) Server - side Javascript JAVA + no page transition, no blocking + eclipse: debugging, easy development - No IDE - good IDE’s - Debugging is difficult - Debugging is easy - weakly typed - strongly typed
  • 6. A JA X  Asynchronous JavaScript and XML.  Clientside javascript to asynchronously fetch the data  Using the DOM API dynamically modify the page  Based on javascript,html,xml,css.xhtml,DOM.  Web browser UI to be more interactive and to respond quickly to inputs
  • 7. D ra w b a ck s  Multiple languages and framework across stack  Mixing the js,jsp,xml,java leads maintenance problem  Less modularization  Less reusable code  Breaks MVC principle.  Complicated debugging and testing with different browsers.  Browsers back button and history maintains problem  OOPS
  • 8. W h a t is G W T ? A FrameWork for building highly perfomant, Ajax enabled , Javascript front-end web applications .  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
  • 9. Why GWT ?  Rich user Interface  Open source  No need to learn Javascript language  No need to learn DOM Api( use java Api)  No plugIns required in client side  Junit integration
  • 10. Why GWT ? (Cont ... )  OOPS  Asynchronous Calls  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.
  • 11. G W T A p p lic a t io n A r c h it e c t u r e
  • 12. M o d e s o f R u n n in g G w t a p p lic a t io n  Gwt Application can run in two modes . Host Mode  Hosted Mode is a 'simulated' mode  Run entirely from Eclipse using the GWT Shell. * Consists of a customized Tomcat Web container. * Makes debugging easier . Web Mode  Run as pure JavaScript and HTML,compiled from your original Java source code with the GWT
  • 13. G o o g le W e b To o lk it ( W T) G @ development time @ deployment time Compile to JAVA/eclipse <html> Javascript javascript [...] <script type=quot;text/javascriptquot;> [...] xmlhttp.open(quot;POSTquot;, url, true); xmlhttp.onreadystatechange = function(func) { if (xmlhttp.readyState == 4) { [...] } } xmlhttp.setRequestHeader('MessageType', 'CALL'); xmlhttp.setRequestHeader('Content-Type', 'text/xml'); e </script> <body>[...]</body> cod </html> A b ile t o yte JAV omp C Hosted mode JVM IDE
  • 14. G W T: p r o je c t s t r u c t u r e 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
  • 15. G W T M o d u le s  *.gwt.xml  Jsp,Html, ...  Entry point class (java class)  Css , Images ,other xmls …  External java script file
  • 16. U I w id g e t lib r a r y
  • 17. G W T- P C R  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 . .
  • 18. R P C p lu m b in g d ia g r a m
  • 19. Co rn s o f GW T  Browser compatibility pretty good but issues with some browsers.  Although java to javascript convertion takes place, not all features of java can be implemented .eg multi threading,Calender etc  Gwt generated javascript and html are very difficult to understand .  Layouts,panels and some widgets have bugs .
  • 20. C o r n s o f G W T ( C o n t ... )  The appearance of the application depends on the browser.  Take long time to load and heavily uses the client resources.
  • 21. R e fe re n ce Documentation & Tutorial :  http://code.google.com/webtoolkit/  http://code.google.com/webtoolkit/tutorials/1.6/ind Libraries  http://gwt-ext.com/  http://extjs.com/products/gxt/ Showcase  http://gwt.google.com/samples/Showcase/Showc  http://www.gwt-ext.com/demo/#credits