Accelerated GWT (eBook)
312 Seiten
Apress (Verlag)
978-1-4302-0616-3 (ISBN)
The Google Web Toolkit (GWT) is a key member of Google's popular array of software development solutions, and is easily the most popular Ajax framework solution for Java developers. Accelerated Google Web Toolkit offers a fast paced yet thorough introduction to GWT, offering serious developers not only key insights into the framework's capabilities, but also into how readers can most effectively incorporate GWT into their daily development routine.
A bio is not available for this author.
Ajax is a web development technique that takes advantage of JavaScript to display and interact dynamically with information embedded into a web page. Its emergence has made it possible to create web applications that closely resemble their desktop-based brethren. With this exciting new ability came several challenges; not only did developers have to learn JavaScript, but they were also forced to use inefficient development processes, not to mention deal with cross-platform and browser difficulties. But with the release of Google Web Toolkit (GWT), Java developers are able to continue using their favorite language to write powerful Ajax applications while using not only the Java language, but also the very same development tools they're already using on a daily basis!Serious Java developers wanting to write Ajax applications using GWT can expect a fast paced, yet thorough, introduction to GWT from Java expert Vipul Gupta. You'll gain key insights into the GWT framework's capabilities and can rely on clear instruction that will show you how to incorporate GWT into your daily development routine in the most effective way. Accelerated GWT introduces you to the popular GWT framework in a way that will allow you to begin using GWT in short order. Forgoing superfluous introductions to JavaScript and Ajax, you'll instead be immersed in GWT fundamentals from the very first chapter. Subsequent chapters discuss key GWT concepts such as architecture, widgets, and RPC. Understanding you'll want to efficiently integrate GWT into your development workflow, the author also devotes time to sound GWT application design, testing, and internationalization issues.
A bio is not available for this author.
Contents at a Glance 5
Contents 6
About the Author 13
Acknowledgments 14
Introduction 15
Who This Book Is For 16
Downloading the Code 16
Contacting the Author 16
Getting Started with GWT 17
GWT Basics and a First Application 18
Setting Up Your GWT Environment 19
Hosted Mode vs. Web Mode 19
What Are All Those GWT Files For? 21
Creating Your First GWT Application 21
Working with Modules in GWT 26
Creating the Host HTML File 30
Steps to Create a GWT Application 31
Creating Another Application Step-by-Step 32
Summary 40
GWT Architecture and Internal Features 41
Understanding the Components That Make Up the GWT Framework 41
What Version of the Java Language Does the GWT Support? 45
The Same Origin Policy and Its Implications on GWT 47
Deferred Binding 48
Understanding Generator, Related Classes, andCode Generation Using Generators 50
GWT: Startup/Bootstrap Process 66
Summary 69
UI Programmingand Client-Server Communication 70
UI Programming: Basic Widgets 71
GUI Building with Fundamental Widgets 71
Understanding Layouts Using Panels 82
Creating Complex Widgets Using Composites 91
Summary 98
Communication: RPC 100
Understanding RPC 100
How to Use RPC in GWT 101
Your First Complete RPC Example 104
RPC in GWT: Behind the Scenes 111
Summary 114
UI Programming: Handling Events and Using Advanced Widgets 115
Handling Events Generated by Widgets 115
Styling Applications Using CSS 120
Using the TabBar Widget 124
Using the TabPanel Widget 126
Optimizing Applications Using ImageBundle 129
Building Classic HTML Forms Using FormPanel 140
Summary 144
Communication: Advanced Techniques 145
What Is Serialization? 145
Designing an RPC Application 146
Serializing Collection Classes 156
Creating Custom Field Serializers 172
Communicating with Server Using HTTP Requests 176
Summary 178
Making Applications Ready for the Real World 179
Testing GWT Applications 180
Understanding the junitCreator Utility 181
Writing GWT-Based Unit Tests 183
Testing Asynchronous Calls 194
Using the Benchmark Utility and Writing Tests for Gathering Benchmark Results 198
Summary 208
Internationalizing Your Applications: A Modern-Day Reality 209
What Is Internationalization? 209
Understanding Character Encodings 211
GWT’s Internationalization Support 212
Internationalization Techniques Available in GWT 213
Exploring the Localizable Interface 215
Tool for Internationalizing Your GWT Applications 217
Creating Your First Internationalized Application 217
Exploring the Constants Interface 226
Exploring the Messages Interface 230
Exploring the ConstantsWithLookup Interface 234
Embedding Data into Your Host HTML Pages 236
Localizing Dates, Times, Numbers, and Currencies 238
Summary 240
Some Important, Not-to- Be-Missed Techniques 241
Understanding the History Mechanism 242
Deploying a GWT-Based Application 253
Maintaining Server Sessions with a GWT Application 257
Creating an ImageBundle of Bundles 264
Understanding and Using the < super-source>
Packaging a GWT Module for Reuse 267
Summary 270
Peeking Into the Upcoming GWT 1.5 Release 272
Understanding the Major Changes in Version 1.5 272
Setting Up Your Environment for Using Version 1.5 273
Using Version 1.5 of the GWT Framework 276
Summary 289
Index 290
Erscheint lt. Verlag | 6.7.2008 |
---|---|
Zusatzinfo | 312 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | AJAX • Browser • Framework • Google • Java • JavaScript • search engine marketing (SEM) • techniques • Web Development |
ISBN-10 | 1-4302-0616-0 / 1430206160 |
ISBN-13 | 978-1-4302-0616-3 / 9781430206163 |
Haben Sie eine Frage zum Produkt? |
Größe: 3,0 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich