
Grails: A Quick-start Guide
by Klein, DaveRent Book
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
Author Biography
Table of Contents
Introduction | p. 1 |
Let Me Tell You About Grails | p. 1 |
How Does Grails Do It? | p. 2 |
Why This Book? | p. 3 |
Who Should Read This Book | p. 4 |
Source Code | p. 4 |
Enough Groovy to Be Dangerous | p. 5 |
Groovy Syntax Compared to Java | p. 5 |
Groovy Strings | p. 7 |
Groovy Closures | p. 8 |
Groovy Collections | p. 9 |
Where to from Here? | p. 13 |
Acknowledgments | p. 14 |
Our Project | p. 17 |
Introducing TekDays.com | p. 18 |
Meet Our Customer | p. 18 |
Iteration Zero | p. 20 |
Summary | p. 26 |
Laying the Foundation | p. 27 |
Creating a Domain Class | p. 27 |
More About Domain Classes | p. 29 |
Testing Our Domain Class | p. 30 |
Taking Control of Our Domain | p. 33 |
Modifying Code That Doesn't Exist | p. 34 |
Bootstrapping Some Test Data | p. 37 |
Summary | p. 41 |
Building Relationships | p. 45 |
The TekUser Domain Class | p. 45 |
One-to-One Relationships | p. 47 |
One-to-Many Relationships | p. 52 |
Collections of Simple Data Types | p. 54 |
Adding a Sponsor Class | p. 56 |
Many-to-Many Relationships | p. 58 |
Finishing Up the Domain Model | p. 63 |
Summary | p. 65 |
Beyond Scaffolding | p. 67 |
Generating Scaffolding Code | p. 67 |
Anatomy of a Grails Controller | p. 68 |
Grails Views with Groovy Server Pages | p. 75 |
Configuring a Database | p. 86 |
Summary | p. 89 |
Getting Things Done | p. 91 |
Changing All Our Views at Once | p. 91 |
Modifying the Scaffolded Views | p. 92 |
Event Task List | p. 99 |
Grails Service Classes | p. 101 |
Integration Testing | p. 104 |
Modifying the Task Class | p. 106 |
Summary | p. 107 |
Forum Messages and UI Tricks | p. 109 |
Restricting Messages to an Event | p. 109 |
Of Templates and Ajax | p. 115 |
Display Message Threads with a Custom Tag | p. 121 |
Summary | p. 126 |
Knock, Knock: Who's There? Grails Security | p. 129 |
Grails Security Options | p. 129 |
Logging In | p. 130 |
Filters | p. 133 |
Logging Out | p. 136 |
Summary | p. 138 |
Big-Picture Views | p. 141 |
Home Page Makeover | p. 141 |
Creating a New Controller | p. 144 |
Designing the Dashboard View | p. 145 |
Adding the Dashboard Action | p. 151 |
Adding a Menu | p. 153 |
Linking to the Dashboard | p. 155 |
Summary | p. 157 |
Seek, and You Shall Find | p. 159 |
Search Using Dynamic Finders | p. 159 |
Hibernate Criteria Builder | p. 162 |
The Big Guns: The Searchable Plug-In | p. 166 |
Summary | p. 173 |
Icing on the Cake | p. 175 |
The Grails UI Plug-In | p. 175 |
The Twitter Plug-In | p. 180 |
Making the Event Page Customizable with the Blurb Plug-In | p. 186 |
User-Friendly URLs | p. 190 |
Summary | p. 193 |
Deployment and Beyond | p. 195 |
Using a JNDI Data Source | p. 195 |
Creating and Deploying a War | p. 197 |
Next Steps | p. 198 |
Parting Thoughts | p. 199 |
Additional CSS Rules | p. 201 |
Resources | p. 203 |
Online Resources | p. 203 |
Meet the G3 Community | p. 204 |
Other Resources | p. 208 |
IDE Support | p. 209 |
Bibliography | p. 211 |
Index | p. 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.