Home > SOA Tips > XML Developer > Inside the Google Web Toolkit
SOA Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

XML DEVELOPER

Inside the Google Web Toolkit


Ed Tittel
09.27.2006
Rating: -4.20- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Those who work with Java and develop for Ajax are likely to already be in the know about the Google Web Toolkit. Those outside this sphere of violent and vigorous activity may not be savvy yet ... and that's why I want to draw this item to your attention. As part of its purported pathway to global hegemony, Google introduced its free tool set earlier this year (May, 2006) using an open source model like that for Apache. Also known as GWT, this toolset includes a Java-to-JavaScript compiler and a hosted Web browser that ships in binary-only form, subject to the terms and conditions on the GWT Toolkit SDK page.

To be more specific, the GWT Java class libraries are open source under the Apache License Version 2.0. The Java-to-JavaScript compiler and hosted Web browser fall under the GWT license, but all code created using GWT remains the property of its developers. As the Web page puts it, "Google does not assert any intellectual property rights to code or content that you create using GWT."

The draw to GWT is that it lets developers work within the confines of their favorite development environment, using whichever GWT libraries they may find relevant or useful in building their applications. The Java-to-JavaScript compiler permits developers to convert any application into a set of JavaScript and HTML files that will work with any Web server. As an added bonus, it's possible to confirm that an application works in each browser a developer seeks to support and usually requires no additional effort.

The benefits of working in Java, then translating to JavaScript may be summarized as follows:

  • Developers can use their development tools of choice (JUnit, JProfiler, IntelliJ, Eclipse and so forth) for Ajax development.
  • Type checking in Java helps eliminate coding errors.
  • JavaScript errors get caught at compile time, not by users at runtime.
  • Automated Java refactoring tools can improve code quality and efficiency prior to translation.

The biggest of these benefits has to be familiarity for those already working with Ajax and code rigor for those used to working with object-oriented design and modeling tools.

GWT offers a set of UI components known as Widgets to construct UI elements for an Ajax application. Widgets combine in Panels that manage the layout for the Widgets they contain. The Google Web Toolkit Product Overview includes a simple example of a complete application that shows a button with an associated click handler. The notation is succinct, simple and surprisingly readable. Available widgets include modal dialog boxes, tab bars, menu bars and even hierarchical trees. A complete list of features provides all the gory details.

Those interested in rapid development of Web-based applications, like Google's own recent spreadsheets offering, are bound to find what GWT has to offer both interesting and compelling. It's certainly worth a look and perhaps even some experimentation, for those interested in building Web-based apps.

About the author

Ed Tittel is a full-time writer and trainer whose interests include XML and development topics along with IT Certification and information security topics. E-mail Ed at etittel@techtarget.com with comments, questions or suggested topics or tools for review.


Rate this Tip
To rate tips, you must be a member of SearchSOA.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
XML Developer
Use the soapUI software tool to tame WSDL
WSDL 2.0, new messaging for Web services
Using RELAX NG For data integration
Efficient XML Interchange tackles data verbosity
XML to DDL imports, synchronizes database schemata
The basics of MathML 3.0
Migrating to XSLT 2.0
What's up with XML 2.0?
Say hello to XPath 2.0
Podcasting software covers many bases

XML and XML schema
What's the future of XML?
SOA pattern of the week (#7): policy centralization
Try XML-based Extensible Business Reporting Language (XBRL) for accounting reports
What's new at the W3C
Ganymede: Modeling tools target SOA, UML
Data services mashups emerge for SOA
Making sense of data services mashups
XML turns 10
SOA helps save 100-year-old business
Oracle maps heterogeneous data services strategy for SOA

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
class diagram  (SearchSOA.com)
Fast Infoset (FI)  (SearchSOA.com)
GeoRSS  (SearchSOA.com)
Keyhole Markup Language  (SearchSOA.com)
RELAX NG  (SearchSOA.com)
state diagram  (SearchSOA.com)
Universal Business Language  (SearchSOA.com)
Vector Markup Language  (SearchSOA.com)
XML infoset  (SearchSOA.com)
XML pipeline  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SOA Trends and Strategy - SOA Education, SOA Development, SOA Implementations
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts