Grails: A Quick-start Guide

by
Format: Paperback
Pub. Date: 2009-10-28
Publisher(s): Oreilly & Associates Inc
List Price: $34.60

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Java web development is notoriously tedious, but help is on the way: Grails. Using the principle of convention-over-configuration and the dynamic Groovy programming language, Grails takes the pain out of web development and brings back the fun.

Author Biography

Dave is a developer with Contegix, a company specializing in delivering managed internet infrastructure based upon Linux, Mac OS X, JEE, and Grails. Dave has worked as a developer, architect, project manager, mentor, and trainer for the past 15 years, and has presented at user groups and national conferences.

Table of Contents

Introductionp. 1
Let Me Tell You About Grailsp. 1
How Does Grails Do It?p. 2
Why This Book?p. 3
Who Should Read This Bookp. 4
Source Codep. 4
Enough Groovy to Be Dangerousp. 5
Groovy Syntax Compared to Javap. 5
Groovy Stringsp. 7
Groovy Closuresp. 8
Groovy Collectionsp. 9
Where to from Here?p. 13
Acknowledgmentsp. 14
Our Projectp. 17
Introducing TekDays.comp. 18
Meet Our Customerp. 18
Iteration Zerop. 20
Summaryp. 26
Laying the Foundationp. 27
Creating a Domain Classp. 27
More About Domain Classesp. 29
Testing Our Domain Classp. 30
Taking Control of Our Domainp. 33
Modifying Code That Doesn't Existp. 34
Bootstrapping Some Test Datap. 37
Summaryp. 41
Building Relationshipsp. 45
The TekUser Domain Classp. 45
One-to-One Relationshipsp. 47
One-to-Many Relationshipsp. 52
Collections of Simple Data Typesp. 54
Adding a Sponsor Classp. 56
Many-to-Many Relationshipsp. 58
Finishing Up the Domain Modelp. 63
Summaryp. 65
Beyond Scaffoldingp. 67
Generating Scaffolding Codep. 67
Anatomy of a Grails Controllerp. 68
Grails Views with Groovy Server Pagesp. 75
Configuring a Databasep. 86
Summaryp. 89
Getting Things Donep. 91
Changing All Our Views at Oncep. 91
Modifying the Scaffolded Viewsp. 92
Event Task Listp. 99
Grails Service Classesp. 101
Integration Testingp. 104
Modifying the Task Classp. 106
Summaryp. 107
Forum Messages and UI Tricksp. 109
Restricting Messages to an Eventp. 109
Of Templates and Ajaxp. 115
Display Message Threads with a Custom Tagp. 121
Summaryp. 126
Knock, Knock: Who's There? Grails Securityp. 129
Grails Security Optionsp. 129
Logging Inp. 130
Filtersp. 133
Logging Outp. 136
Summaryp. 138
Big-Picture Viewsp. 141
Home Page Makeoverp. 141
Creating a New Controllerp. 144
Designing the Dashboard Viewp. 145
Adding the Dashboard Actionp. 151
Adding a Menup. 153
Linking to the Dashboardp. 155
Summaryp. 157
Seek, and You Shall Findp. 159
Search Using Dynamic Findersp. 159
Hibernate Criteria Builderp. 162
The Big Guns: The Searchable Plug-Inp. 166
Summaryp. 173
Icing on the Cakep. 175
The Grails UI Plug-Inp. 175
The Twitter Plug-Inp. 180
Making the Event Page Customizable with the Blurb Plug-Inp. 186
User-Friendly URLsp. 190
Summaryp. 193
Deployment and Beyondp. 195
Using a JNDI Data Sourcep. 195
Creating and Deploying a Warp. 197
Next Stepsp. 198
Parting Thoughtsp. 199
Additional CSS Rulesp. 201
Resourcesp. 203
Online Resourcesp. 203
Meet the G3 Communityp. 204
Other Resourcesp. 208
IDE Supportp. 209
Bibliographyp. 211
Indexp. 213
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.