Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
GWT_2

GWT_2

Ratings: (0)|Views: 6|Likes:
Published by Masinde Andrew

More info:

Published by: Masinde Andrew on Jan 28, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/06/2014

pdf

text

original

 
1
Copyright © 2007 by Object Computing, Inc. (OCI).All rights reserved.
Google Web Toolkit (GWT)
Mark Volkmannmark@ociweb.com
Google Web Toolkit
2
Copyright © 2007 by Object Computing, Inc. (OCI).All rights reserved.
What Is GWT?
An open-source, Java-based frameworkfor creating Ajax web applicationsCreated and used by GoogleMakes writing web applicationssimilar to Swing applications
 –dramatically reduces the need to understand HTML and JavaScript –maintaining Java code is easier than maintaininga mixture of HTML, JavaScript and Java code
Client-side code
 –compiled to HTML and JavaScript –uses CSS for formatting –restricted to a subset of Java 1.4 for now
Server-side code can be implemented in any language
 –including Java 5 and 6 –commonly Java-based GWT RPC servlets are used (more on this later)
 
2
Google Web Toolkit
3
Copyright © 2007 by Object Computing, Inc. (OCI).All rights reserved.
Why Use GWT?
Creates browser-based GUIs using Swing-like componentsNo need to write HTML which means no scriptletsUses CSS for formatting and some layoutNo need to write JavaScript, but can if desiredNo messy navigation control with redirects and forwardsMakes asynchronous server callswhich results in a better user experienceAjax features can be implementedwithout thinking about DOM manipulationDirect DOM manipulation, if needed, is easy to doCan easily pass Java objects between client and server 
 –no need to populate Java objects from HTTP data –no need to populate HTML forms from Java objects
Can throw Java exceptions from the server back to the clientCan use Java IDEs like Eclipse, IDEA and NetBeansCreated, maintained, enhanced and used by Google
 –recognized for their software expertise –one of the few serious Microsoft competitors
Google Web Toolkit
4
Copyright © 2007 by Object Computing, Inc. (OCI).All rights reserved.
Tool Support
IDE plugins
 –Intellij IDEA
GWT Studio
 –Eclipse
Cypal Studio for GWT ( was Googlipse)Instantiations GWT Designer 
 –NetBeans
GWT4NB
Other tools
 –Wirelexsoft VistaFei - a GWT IDE
 
3
Google Web Toolkit
5
Copyright © 2007 by Object Computing, Inc. (OCI).All rights reserved.
Installing
Steps
 –verify that a Java SDK (1.4 or higher) is installed
run
java -version
” from a shell/command prompt
 –browse http://code.google.com/webtoolkit/ –click the "Download Google Web Toolkit (GWT)" link –download a platform-specific archive/zip file for a selected version –unpackage the archive/zip file to a selected directory –set the environment variable
GWT_HOME
to the path to the unpackaged GWT directory
Can also build latest code from source
 see
http://code.google.com/webtoolkit/makinggwtbetter.html#compiling
Google Web Toolkit
6
Copyright © 2007 by Object Computing, Inc. (OCI).All rights reserved.
Creating a New Project
Steps differ 
 –depending on whether an IDE plugin is being used –we’ll assume no IDE
Non-IDE steps
 –create a directory for the application –from a shell/command prompt, navigate to that directory use the
applicationCreator
script to create the projectdirectory structure and populate it with initial project files
under Windows, run
%GWT_HOME%\applicationcreator {
 package 
}.client.{
module 
}
under UNIX/Linux/Mac OS X, run
$GWT_HOME/applicationcreator {
 package 
}.client.{
module 
}

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->