Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 27 Next »

Info

Version

Build Environments

Libraries

Tooling

Benefits of using GWT

  • I18N support
  • Strongly typed language benefits: No JavaScript syntax errors
  • Tooling support: eclipse, etc.
  • Debugging support
  • Unit Testable
  • Compiled to specific targets: no browser specific code
  • Cross browser support
  • Users are familiar seeing/using GWT widgets: Google application suite and many other Web 2.0 apps
  • Able to use 3rd party libraries via JSNI (JavaScript Native Interface)
  • Rapid development using GWT tools such GWTShell etc.
  • 3rd party tools for producing WYSIWYG UI
  • MVC implementation that is very similar to programming in AWT/SWING
    • "When working with GWT as a developer, it's best to think of it as an analogue to the Java Abstract Windowing Toolkit (AWT). It's the basis for your application framework, not the framework itself."
  • GWT4Gadgets: Support for iGoogle Gadgets / OpenSocial Apps / Google Mapplets
  • Offline applications using Google-Gears
  • Full access to the GData APIs
  • Supports GWT-RPC, REST, WS, etc. communication to back-end, and or Data-APIs
    • Can send complex Java types to and from the server. Data gets serialized across network
  • Accessibility support: ARIA support on FireFox 3+, or FireFox2 with FireVox
  • Works with Java-Applets and or Flash

Build GWT From Source : 2008-05-17

  • Checkout source code
  • Setting environment variable
    • setenv GWT_TOOLS ${HOME}/src/gwt-tools
    • setevn GWT_EXTERNAL_BROWSER /usr/bin/firefox
  • Build gwt-trunk
    • cd ~/src/gwt-trunk
    • ant
  • The GWT build creates each binary distribution in the build/dist subdirectory of the source root directory
    • ls ~/src/gwt-trunk/build/dist
      • gwt-linux-0.0.0.tar.bz2, gwt-mac-0.0.0.tar.gz, gwt-windows-0.0.0.zip
  • Unpack the binary that matches your operation system
    • tar xvzf gwt-mac-0.0.0.tar.gz
    • mv gwt-mac-0.0.0 ~/local
    • cd ~local; ln -s gwt-mac-0.0.0 gwt
  • Add GWT binary root folder to execution path
    • setenv PATH ${PATH}:${HOME}/local/gwt

Creating Hello World GWT Application with Eclipse support : 2008-05-17

  • Create project folder and generate eclipse project file
    • mkdir ~/src/MyProject
    • cd ~/src/MyProject
    • projectCreator -eclipse MyProject
  • Create default application
    • cd ~/src/MyProject
    • applicationCreator -eclipse MyProject edu.ucdavis.gwt.client.MyApplication

Run Hello World GWT Application : 2008-05-17

  • Run OOTB created sample application
    • cd ~/src/MyProject
    • ./MyApplication-shell

(warning) NOTES:

  • ...
  • No labels