advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Download the Source Code!
Sidebar 1. Web UIs of the Past and AJAX's JavaScript Underbelly
Sidebar 2. The 'AJAX with Ease' Project Files
Partners & Affiliates
advertisement
advertisement
Average Rating: 5/5 | Rate this item | 3 users have rated this item.
 Print Print
 
Google Web Toolkit: AJAX Buzz Meets Real World Development
With its Swing-like development framework and its awe-inspiring compiler/debugger, the Google Web Toolkit eases AJAX development. 

advertisement
eveloping AJAX applications is really hard, because few developers have a complete grasp of JavaScript—the language of AJAX (Asynchronous JavaScript and XML). Making matters worst, every browser has idiosyncrasies in its JavaScript implementation, which introduces incompatibility nightmares (See "Sidebar 1. Web UIs of the Past and AJAX's JavaScript Underbelly"). The almighty Google, which glorified AJAX with Gmail and Google Maps, has come to the rescue with the Google Web Toolkit (GWT).


What You Need
Google Web Toolkit
Apache Ant 1.6
Apache Tomcat
Java Standard Edition 1.4 or higher
Eclipse

Google Promotes AJAX with Web Toolkit

Google used AJAX in its Gmail and Google Maps applications. You can be sure developers at Google weren't thrilled about using JavaScript, but that wasn't about to impede the search giant. Google applied a technique that has been prevalent since the early years of computers: the quintessential compiler. Compilers have enabled developers to develop/code in higher-level languages that they easily understand, since the compilers will convert them to a lower-level language that computers understand.

A small team at Google created a Java-to-JavaScript compiler that takes in Java code and spits out JavaScript, enabling the Google developers to design, develop, debug, and test in Java and leave the compiler to deal with the vicissitudes of JavaScript. Heeding Google's 'Do No Evil' motto, the team decided to share its technology freely with the developer community under the name Google Web Toolkit (GWT).

In addition to a compiler, GWT comes with the following panoply of APIs and tools that are sure to alleviate AJAX development pains:

  • Scripts that create starter files for your application
  • User interface widgets and layout managers that you develop in Java and then compile to JavaScript via GWT
  • Java components that enable RPC communication between JavaScript client and server
  • History events and functions that respond to the browser history stack
  • A GWT-hosted environment that enables debugging in the Eclipse IDE
  • The GWT compiler (of course) that coverts user interfaces and RPC Java code to JavaScript that is compatible with IE, Firefox, Mozilla, Safari, and Opera

This article provides a hands-on demonstration of all the above features. Along the way, you will see how to use GWT with Apache Ant and Tomcat—a still nascent area in GWT.

Page 1 of 5


advertisement
  Next Page: Get to Know 'AJAX With Ease'
Page 1: IntroductionPage 4: Spotlight on GWT RPC
Page 2: Get to Know 'AJAX With Ease'Page 5: A Well Earned Respect for History
Page 3: GWT Component Breakdown 
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES