Apress pro web 2 0 application development with GWT may 2008 ISBN 1590599853 pdf

480 131 0
Apress pro web 2 0 application development with GWT may 2008 ISBN 1590599853 pdf

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

 CYAN  MAGENTA  YELLOW   BLACK  PANTONE 123 C Books for professionals by professionals ® The EXPERT’s VOIce ® in Web Development Companion eBook Available Pro Web 2.0 Application Development with GWT Pro This book is for developers who are ready to move beyond small proof-of-concept sample applications and want to look at the issues surrounding a real deployment of GWT If you want to see what the guts of a full-fledged GWT application look like, this is the book for you GWT 1.5 is a game-changing technology, but it doesn’t exist in a bubble Real deployments need to connect to your database, enforce authentication, protect against security threats, and allow good search engine optimization To show you all this, we’ll look at the code behind a real, live web site called ToCollege.net This application specializes in helping students who are applying to colleges; it allows them to manage their application processes and compare the rankings that they give to schools It’s a slick application that’s ready for you to sign up for and use This book will give you a walking tour of this modern Web 2.0 start-up’s codebase The included source code will provide a functional demonstration of how to merge together the modern Java stack including Hibernate, Spring Security, Spring MVC 2.5, SiteMesh, and FreeMarker This fully functioning application is better than treasure if you’re a developer trying to wire GWT into a Maven build environment who just wants to see some code that makes it work If a full tour of 15,000 lines of source code that includes everything from Google Gears integration to Acegi Security, OpenID, Lucene full-text searching, and Google Maps sounds like a good thing, I think you’ll enjoy this book Yours, Jeff Dwyer Companion eBook Related Titles See last page for details on $10 eBook version   www.apress.com   ISBN-13: 978-1-59059-985-3 ISBN-10: 1-59059-985-3 54499 US $44.99 Dwyer SOURCE CODE ONLINE Web 2.0 Application Development with GWT Dear Reader, Covers Pro GWT 1.5 Web 2.0 Application Development with GWT Learn real-world, professional GWT techniques by following an in-depth case study of a Web 2.0 site Jeff Dwyer Shelve in Web Development User level: Intermediate–Advanced 781590 599853 this print for content only—size & color not accurate spine = 0.909" 480 page count 9853FM.qxd 4/15/08 11:14 AM Page i Pro Web 2.0 Application Development with GWT Jeff Dwyer 9853FM.qxd 4/15/08 11:14 AM Page ii Pro Web 2.0 Application Development with GWT Copyright © 2008 by Jeff Dwyer All rights reserved No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher ISBN-13 (pbk): 978-1-59059-985-3 ISBN-10 (pbk): 1-59059-985-3 ISBN-13 (electronic): 978-1-4302-0638-5 ISBN-10 (electronic): 1-4302-0638-1 Printed and bound in the United States of America Trademarked names may appear in this book Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark Java™ and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc., in the US and other countries Apress, Inc., is not affiliated with Sun Microsystems, Inc., and this book was written without endorsement from Sun Microsystems, Inc Lead Editors: Steve Anglin, Ben Renow-Clarke Technical Reviewer: Massimo Nardone Editorial Board: Clay Andres, Steve Anglin, Ewan Buckingham, Tony Campbell, Gary Cornell, Jonathan Gennick, Matthew Moodie, Joseph Ottinger, Jeffrey Pepper, Frank Pohlmann, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh Project Manager: Kylie Johnston Copy Editor: Heather Lang Associate Production Director: Kari Brooks-Copony Production Editor: Liz Berry Compositor: Dina Quan Proofreader: Linda Marousek Indexer: Carol Burbo Artist: April Milne Cover Designer: Kurt Krames Manufacturing Director: Tom Debolski Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013 Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders-ny@springer-sbm.com, or visit http://www.springeronline.com For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600, Berkeley, CA 94705 Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com, or visit http://www.apress.com Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles For more information, reference our Special Bulk Sales–eBook Licensing web page at http://www.apress.com/info/bulksales The information in this book is distributed on an “as is” basis, without warranty Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work The source code for this book is available to readers at http://www.apress.com 9853FM.qxd 4/15/08 11:14 AM Page iii To those who help me realize it’s easier than we think 9853FM.qxd 4/15/08 11:14 AM Page iv 9853FM.qxd 4/15/08 11:14 AM Page v Contents at a Glance About the Author xvii About the Technical Reviewer xix Acknowledgments xxi Introduction xxiii PART ■■■ ■CHAPTER ■CHAPTER PART Why GWT? Getting Started 17 ■■■ ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER 10 ■CHAPTER 11 ■CHAPTER 12 ■CHAPTER 13 ■APPENDIX What Can GWT Do for You? ToCollege.net Designing ToCollege.net 47 GWT and Spring MVC 63 Securing Our Site 103 Saving Our Work 139 ToCollege.net’s GWT GUI 181 Google Maps 213 Suggest Boxes and Full Text Search 237 Forums 265 Security and Authorization 307 Search Engine Optimization 333 Google Gears 357 Building ToCollege.net 391 ■INDEX 427 v 9853FM.qxd 4/15/08 11:14 AM Page vi 9853FM.qxd 4/15/08 11:14 AM Page vii Contents About the Author xvii About the Technical Reviewer xix Acknowledgments xxi Introduction xxiii PART ■■■ ■CHAPTER What Can GWT Do for You? Why GWT? “May You Live in Interesting Times” To HTML or Not to HTML? So What Is GWT? But JavaScript Is Better Than Java! Speed Tools, Tools, Tools 11 JavaScript Libraries 12 Community 13 The Rest of the Stack 13 Maven 14 Summary 15 ■CHAPTER Getting Started 17 Sample Project Goals 17 GWT Project Structure 18 Client 19 Server 21 Public 22 The GWT Module 23 vii 9853FM.qxd viii 4/15/08 11:14 AM Page viii ■CONTENTS Sample Calculator Project Code 24 NumberButton.java 25 ControlButton.java 27 Calculator.java (1) 28 ControlAction.java 29 Calculator.java 30 The EntryPoint Class 35 CalcButton: A CSS Enhancement 36 Animation 38 Code Size 40 The Advantages of Compilation 41 Pure Size 42 Summary 44 PART ■■■ ■CHAPTER ToCollege.net Designing ToCollege.net 47 User Stories 48 User Story 1: Adding a School 48 User Story 2: Adding Opinions of Schools 48 User Story 3: Sorting Schools into Tiers 48 User Story 4: Viewing Schools on a Map 48 User Story 5: Deciding Among Schools 49 User Story 6: Managing the Application Process 49 What’s Next 49 Overview of ToCollege.net 49 My Rankings List 49 My Applications 51 My Decision 52 Maps 53 College Browser 53 Forums 54 ... 9853FM.qxd 4/15 /08 11:14 AM Page i Pro Web 2. 0 Application Development with GWT Jeff Dwyer 9853FM.qxd 4/15 /08 11:14 AM Page ii Pro Web 2. 0 Application Development with GWT Copyright © 20 08 by Jeff... copyright owner and the publisher ISBN- 13 (pbk): 978-1-5 905 9-985-3 ISBN- 10 (pbk): 1-5 905 9-985-3 ISBN- 13 (electronic): 978-1-43 02 - 06 38-5 ISBN- 10 (electronic): 1-43 02 - 06 38-1 Printed and bound in the... please contact Apress directly at 28 55 Telegraph Avenue, Suite 600 , Berkeley, CA 94 705 Phone 5 10- 549-59 30, fax 5 10- 549-5939, e-mail info @apress. com, or visit http://www .apress. com Apress and friends

Ngày đăng: 20/03/2019, 15:02

Từ khóa liên quan

Mục lục

  • Pro Web 2.0 Application Development with GWT

  • Contents at a Glance

  • Contents

  • About the Author

  • About the Technical Reviewer

  • Acknowledgments

  • Introduction

    • Who This Book Is For

    • How This Book Is Structured

    • Downloading the Code

    • Contacting the Author

    • Why GWT?

      • “May You Live in Interesting Times”

      • To HTML or Not to HTML?

      • So What Is GWT?

        • But JavaScript Is Better Than Java!

          • GWT Is Scalable

          • GWT Can Be Refactored

          • GWT Is Familiar

          • Speed

            • Absolute Code Size

            • Optimization, Compression, and Obfuscation

            • The Number of Downloads Is Just As Important As Absolute Size

            • ImageBundle and ImmutableResourceBundle

            • Tools, Tools, Tools

Tài liệu cùng người dùng

Tài liệu liên quan