Grails: A Quick-Start Guide

Overview

Grails is a full stack web development framework that enables you to build complete web applications in a fraction of the time and with less code than other frameworks.

In Grails: A Quick-Start Guide, you'll see how to use Grails by iteratively building an unique, working application. By the time we're done, you'll have built and deployed a real, functioning website.

Along the way, we'll learn about domain classes, controllers, and GSP views. ...

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (15) from $1.99   
  • New (2) from $50.00   
  • Used (13) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$50.00
Seller since 2015

Feedback rating:

(215)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$50.00
Seller since 2015

Feedback rating:

(215)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by
Sending request ...

Overview

Grails is a full stack web development framework that enables you to build complete web applications in a fraction of the time and with less code than other frameworks.

In Grails: A Quick-Start Guide, you'll see how to use Grails by iteratively building an unique, working application. By the time we're done, you'll have built and deployed a real, functioning website.

Along the way, we'll learn about domain classes, controllers, and GSP views. We'll see how Grails allows us to use powerful frameworks like Spring and Hibernate without even knowing it.

Using this hands-on, pragmatic approach, we'll explore topics such as AJAX in Grails, custom tags, and plugins. We'll dig into Grails' powerful view technology, Groovy Server Pages, and see how we can easily leverage the help given to us by scaffolding to create custom user interfaces faster than you would have thought possible.

With Grails, you can get a lot done with little effort. With this book, you'll get a lot done as well. It's time to bring the fun back into web programming. Get started with Grails today.

Read More Show Less

Product Details

  • ISBN-13: 9781934356463
  • Publisher: Pragmatic Programmers, LLC, The
  • Publication date: 10/28/2009
  • Edition number: 1
  • Pages: 200
  • Product dimensions: 7.40 (w) x 8.90 (h) x 0.80 (d)

Meet the Author

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. Dave's Groovy and Grails-related thoughts can be found at http://dave-klein.blogspot.com.

Read More Show Less

Table of Contents

1 Introduction 1

1.1 Let Me Tell You About Grails 1

1.2 How Does Grails Do It? 2

1.3 Why This Book? 3

1.4 Who Should Read This Book 4

1.5 Source Code 4

1.6 Enough Groovy to Be Dangerous 5

1.7 Groovy Syntax Compared to Java 5

1.8 Groovy Strings 7

1.9 Groovy Closures 8

1.10 Groovy Collections 9

1.11 Where to from Here? 13

1.12 Acknowledgments 14

2 Our Project 17

2.1 Introducing TekDays.com 18

2.2 Meet Our Customer 18

2.3 Iteration Zero 20

2.4 Summary 26

3 Laying the Foundation 27

3.1 Creating a Domain Class 27

3.2 More About Domain Classes 29

3.3 Testing Our Domain Class 30

3.4 Taking Control of Our Domain 33

3.5 Modifying Code That Doesn't Exist 34

3.6 Bootstrapping Some Test Data 37

3.7 Summary 41

4 Building Relationships 45

4.1 The TekUser Domain Class 45

4.2 One-to-One Relationships 47

4.3 One-to-Many Relationships 52

4.4 Collections of Simple Data Types 54

4.5 Adding a Sponsor Class 56

4.6 Many-to-Many Relationships 58

4.7 Finishing Up the Domain Model 63

4.8 Summary 65

5 Beyond Scaffolding 67

5.1 Generating Scaffolding Code 67

5.2 Anatomy of a Grails Controller 68

5.3 Grails Views with Groovy Server Pages 75

5.4 Configuring a Database 86

5.5 Summary 89

6 Getting Things Done 91

6.1 Changing All Our Views at Once 91

6.2 Modifying the Scaffolded Views 92

6.3 Event Task List 99

6.4 Grails Service Classes 101

6.5 Integration Testing 104

6.6 Modifying the Task Class 106

6.7 Summary 107

7 Forum Messages and UI Tricks 109

7.1 Restricting Messages to an Event 109

7.2 Of Templates and Ajax 115

7.3 Display Message Threads with a Custom Tag 121

7.4 Summary 126

8 Knock, Knock: Who'sThere? Grails Security 129

8.1 Grails Security Options 129

8.2 Logging In 130

.3 Filters 133

8.4 Logging Out 136

8.5 Summary 138

9 Big-Picture Views 141

9.1 Home Page Makeover 141

9.2 Creating a New Controller 144

9.3 Designing the Dashboard View 145

9.4 Adding the Dashboard Action 151

9.5 Adding a Menu 153

9.6 Linking to the Dashboard 155

9.7 Summary 157

10 Seek, and You Shall Find 159

10.1 Search Using Dynamic Finders 159

10.2 Hibernate Criteria Builder 162

10.3 The Big Guns: The Searchable Plug-In 166

10.4 Summary 173

11 Icing on the Cake 175

11.1 The Grails UI Plug-In 175

11.2 The Twitter Plug-In 180

11.3 Making the Event Page Customizable with the Blurb Plug-In 186

11.4 User-Friendly URLs 190

11.5 Summary 193

12 Deployment and Beyond 195

12.1 Using a JNDI Data Source 195

12.2 Creating and Deploying a War 197

12.3 Next Steps 198

12.4 Parting Thoughts 199

A Additional CSS Rules 201

B Resources 203

B.l Online Resources 203

B.2 Meet the G3 Community 204

B.3 Other Resources 208

B.4 IDE Support 209

C Bibliography 211

Index 213

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)