Essential GWT : building for the web with Google Web toolkit 2
With Google Web Toolkit, Java developers can build sophisticated Rich Internet Applications (RIAs) and complete Web sites using the powerful IDEs and tools they already use. Now, with GWT 2, Google Web Toolkit has become even more useful. Essential GWT shows how to use this latest version of GWT to...
Autor Corporativo: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
[Place of publication not identified]
Addison Wesley
2011
|
Edición: | 1st edition |
Colección: | Developer's Library
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629020806719 |
Tabla de Contenidos:
- Cover
- Contents
- Preface
- Acknowledgments
- About the Author
- 1 Developing Your Application
- Rich Internet Applications
- Web 2.0
- Cloud Computing
- The "Death of the Desktop
- Advantages of GWT
- HTML Ubiquity and Browser Differences
- JavaScript Deficiencies
- Software Methodologies to Apply
- Classic Development Problems
- Agile Methodologies
- Forever Beta?
- Summary
- 2 Getting Started with GWT 2
- Why Use GWT?
- Why Java?
- Some Actual Disadvantages
- The GWT Components
- Compiler
- JRE Emulation Library
- UI Library
- Setting Up GWT
- Writing Code
- Version Control Management
- Testing
- Running and Deploying
- Summary
- 3 Understanding Projects and Development
- Creating a Project
- Using the Google Plugin for Eclipse
- Using the GWT Shell Script
- Project Structure
- Running Your Application: Development Mode
- Summary
- 4 Working with Browsers
- The Back Button Problem
- Setting Up Your HTML Page
- The History Class
- Starting Your Application
- Showing Forms in Pop-Ups
- Passing Parameters
- Creating a Menu
- Detecting the User's Browser
- The Classic Way
- The Deferred Binding Way
- Recognizing Older Explorers
- No JavaScript?
- Summary
- 5 Programming the User Interface
- Thinking About UI Patterns
- MVC: A Classic Pattern
- MVP: A More Suitable Pattern
- Implementing MVP
- Callbacks Galore
- Implementation Details
- Some Extensions
- Declarative UI
- A Basic UiBinder Example
- More Complex Examples
- Summary
- 6 Communicating with Your Server
- Introduction to RPC
- Implementation
- Serialization
- Direct Evaluation RPC
- RPC Patterns of Usage
- The World Cities Service
- Code Sharing
- Coding the Server Side Services
- Database-Related Widgets and MVP
- A Look at MVP
- A Country/State Cities Browser
- Live Suggestions
- Data Prevalidation.
- Enterprise Java Beans
- Summary
- 7 Communicating with Other Servers
- The Same Origin Policy (SOP) Restriction
- Our City Update Application
- Receiving and Processing XML
- Using Ajax Directly
- Going Through a Proxy
- Producing and Sending XML
- Creating XML with Strings
- Creating XML Through the DOM
- Sending the XML Data
- Sending XML Through Ajax
- Sending XML Through a Proxy
- Summary
- 8 Mixing in JavaScript
- JSNI
- Basic JSNI Usage
- Hashing with JavaScript
- Animations Beyond GWT
- A Steampunk Display Widget
- JSON
- JSONP
- Summary
- 9 Adding APIs
- A Weather Vane
- Getting Weather Data
- Getting the Feed
- Getting Everything Together
- Getting at the Feed Data with an Overlay
- Getting the Feed with JSNI
- Dashboard Visualizations
- Using the Google Visualization API
- Handling Events
- Working with Maps
- Interactive Maps
- Fixed Maps
- Summary
- 10 Working with Servers
- The Challenges to Meet
- Before Going Any Further
- Security
- Ajax Problems
- Cryptography
- Hashing
- Encrypting
- Stateless Versus Stateful Servers
- Common Operations
- Logging In
- Changing Your Password
- Summary
- 11 Moving Around Files
- Uploading Files
- An Upload Form
- A File Processing Servlet
- Providing Feedback to the User
- Downloading Files
- A File Download Form
- A Sample File Producing Servlet
- Summary
- 12 Internationalization and Localization
- Internationalization (i18n)
- Resource Bundles
- Using Constants
- Messages
- UiBinder Internationalization
- Localization (l10n)
- Summary
- 13 Testing Your GWT Application
- Why Testing?
- Advantages of Automatically Tested Code
- And if a Bug Appears?
- Unit Testing with JUnit
- A Basic JUnit Example
- Test Coverage with Emma
- Testing MVP Code
- Testing with Mock Objects
- EasyMock
- Integration Testing with GWTTestCase.
- Testing a View
- Testing a Servlet
- Acceptance Testing with Selenium
- A Very Simple Example
- What Can Go Wrong?
- Summary
- 14 Optimizing for Application Speed
- Design Patterns for Speed
- Caching
- Prefetching
- Thread Simulation
- Bundling Data
- Speed Measurement Tools
- Speed Tracer
- YSlow
- Page Speed
- JavaScript Debuggers
- Summary
- 15 Deploying Your Application
- Compilation
- Modules
- Code Splitting
- Deployment
- Working with Client-Only GWT
- Working with Client-Plus-Server GWT
- Summary
- Index.