Grails: A Quick-Start Guide

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Grails: A Quick-Start Guide offers a survey of Java web development and Grails dynamics, showing how to use Grails to build a unique application. The project-oriented approach assures programmer readers gain access to Grails' many possibilities and the concluding result - a real, functioning website - teaches all the basics about domain classes, controllers, and how to use Grails to work within powerful online frameworks.

Author(s): Dave Klein
Edition: 1
Publisher: Pragmatic Bookshelf
Year: 2009

Language: English
Pages: 231

Grails - A Quick-Start Guide (October 2009) (ATTiCA)......Page 1
Contents......Page 7
Let Me Tell You About Grails…......Page 10
How Does Grails Do It?......Page 11
Why This Book?......Page 12
Source Code......Page 13
Groovy Syntax Compared to Java......Page 14
Groovy Strings......Page 16
Groovy Closures......Page 17
Groovy Collections......Page 18
Where to from Here?......Page 22
Acknowledgments......Page 23
Our Project......Page 25
Meet Our Customer......Page 26
Iteration Zero......Page 28
Summary......Page 34
Creating a Domain Class......Page 35
More About Domain Classes......Page 37
Testing Our Domain Class......Page 38
Taking Control of Our Domain......Page 41
Modifying Code That Doesn't Exist......Page 42
Bootstrapping Some Test Data......Page 45
Summary......Page 49
The TekUser Domain Class......Page 53
One-to-One Relationships......Page 55
One-to-Many Relationships......Page 60
Collections of Simple Data Types......Page 62
Adding a Sponsor Class......Page 64
Many-to-Many Relationships......Page 66
Finishing Up the Domain Model......Page 71
Summary......Page 73
Generating Scaffolding Code......Page 75
Anatomy of a Grails Controller......Page 76
Grails Views with Groovy Server Pages......Page 83
Configuring a Database......Page 94
Summary......Page 97
Changing All Our Views at Once......Page 98
Modifying the Scaffolded Views......Page 99
Event Task List......Page 106
Grails Service Classes......Page 108
Integration Testing......Page 111
Modifying the Task Class......Page 113
Summary......Page 114
Restricting Messages to an Event......Page 116
Of Templates and Ajax......Page 122
Display Message Threads with a Custom Tag......Page 128
Summary......Page 133
Grails Security Options......Page 135
Logging In......Page 136
Filters......Page 139
Logging Out......Page 142
Summary......Page 144
Home Page Makeover......Page 146
Creating a New Controller......Page 149
Designing the Dashboard View......Page 150
Adding the Dashboard Action......Page 156
Adding a Menu......Page 158
Linking to the Dashboard......Page 160
Summary......Page 162
Search Using Dynamic Finders......Page 163
Hibernate Criteria Builder......Page 166
The Big Guns: The Searchable Plug-In......Page 170
Summary......Page 177
The Grails UI Plug-In......Page 178
The Twitter Plug-In......Page 183
Making the Event Page Customizable with the Blurb Plug-In......Page 189
User-Friendly URLs......Page 193
Summary......Page 196
Using a JNDI Data Source......Page 198
Creating and Deploying a WAR......Page 200
Next Steps......Page 201
Parting Thoughts......Page 202
Online Resources......Page 205
Meet the G3 Community......Page 206
Other Resources......Page 210
IDE Support......Page 211
Additional CSS Rules......Page 203
Bibliography......Page 213
C......Page 214
D......Page 215
G......Page 216
J......Page 218
O......Page 219
S......Page 220
T......Page 221
Y......Page 223