English Deutsch Français 简体中文 繁體中文
Book123, Download eBooks for Free - Anytime! Submit your article

Categories

Share With Friends



Like Book123?! Give us +1

Archive by Date

Search Tag

Newest

Useful Links


Technical The Definitive Guide to Grails

Posted on 2010-03-15




Name:Technical The Definitive Guide to Grails
ASIN/ISBN:1590597583
Language:English
File size:2 Mb
Pages: 384 Pages
Other Info: Paperback
   Technical The Definitive Guide to Grails

Free Download Now     Free register and download UseNet downloader, then you can FREE Download from UseNet.

    Download without Limit " Technical The Definitive Guide to Grails " from UseNet for FREE!


More The Definitive Guide to Grails The Definitive Guide to Grails (Definitive Guide)

By: Graeme Rocher


ISBN-10: 1590597583 ISBN-13: 9781590597583

Publisher: Apress - 2006-12-11

From the Publisher

Reviewed and endorsed by Guillaume Laforge and Dierk Koenig of Groovy, The Definitive Guide to Grails, by Grails lead Graeme Rocher, is for anyone looking for a more agile approach to web development with a dynamic scripting language such as Groovy. It will show you the new direction web frameworks are taking and specifically how a dynamic scripting language like Groovy can be harnessed on the JavaTM platform for productive Grails development. This book takes you through the Grails development life cycle, including its project infrastructure, screen generation, full automatic object mapping to relational database systems, and a flexible, easy-to-use web layer. This book also demonstrates how Grails complements Java web development. Topics include creating domain classes in the Java platform while still accessing advanced features like dynamic persistent methods, using Grails controllers to call business logic written in the Java specification, and testing your Java application logic using Grails test cases.
  • The author tackles new issues like writing web applications with dynamic languages, an agile approach, Ajax, and more.
  • The Java platform has always been about choice, and this book demonstrates how you can use select aspects of Grails that you choose.
  • The book makes up for the current lack of solid Groovy documentation.

Author Description:

Graeme Rocher is a software architect and Chief Technology Officer at Grails, a framework with the essence of Ruby on Rails, but targeted at tight Java integration. Graeme is the current project lead of Grails and is a member of the Groovy JSR-241 executive committee. In his current role as CTO at SkillsMatter, a company specializing in Open Source training, Graeme is in charge of the companies courseware development strategy and general technical direction. As part of this role he actively works with a wide range of professionals from the Open Source community and speaks at industry conferences whenever possible on subjects related to Groovy, Grails and dynamic languages in Java.

Table of Contents:

Foreword xiv

About the Author xvi

About the Technical Reviewers xvii

Acknowledgments xviii

Introduction xix

The Search for the Holy Grail(s) 1

Trouble in Paradise 1

The Arrival of Web 2.0 Applications 23

The Power of Java 3

Grails: The Story So Far 4

Java Integration 5

Simplicity and Power 5

Lessons Learned 7

Why You Should Be Interested in Grails 7

Getting Started with Grails 8

Running the Targets 10

The Obligatory "Hello World!" 11

The Unit Tests 15

Summary 16

The Groovy Language 17

Groovy and Java: A Comparison 18

What's the Same? 18

What's Different? 18

The Basics 20

Declaring Classes 20

Language-Level Assertions 21

Groovy Strings 21

Closures 24

Lists and Maps 25

Expando Objects 27

Ranges 28

Groovy PowerFeatures 29

Everything Is an Object 29

Metaprogramming 33

Understanding Builders 34

Summary 36

The Grails Project Infrastructure 37

Overview of a Grails Project 37

Grails and the MVC Pattern 40

The M in MVC 40

The V in MVC 41

The C in MVC 41

Beyond MVC 41

Being Environmentally Friendly 41

Data Source Configuration 42

Supported Databases 46

Configuring a Custom Dialect 47

Bootstrapping a Grails Application 48

Configuring Logging 48

Enabling SQL Logging 50

Logging and Environments 50

The Grails Command-Line Utilities 50

Running on a Different Port 51

Packaging a WAR Archive 51

Using the Grails Console and Shell 52

Using the Command-Line Shell 52

The Grails Console 53

IDE Integration 54

Installing the Groovy-Eclipse Plug-in 55

Importing a Grails Project 55

Running the Grails Application from Eclipse 58

Summary 60

The Application Domain 61

Simplified ORM with Grails Object-Relational Mapping (GORM) 61

GORM Basics 62

Making Properties Optional 65

Relationships with GORM 65

Performing CRUD Operations 67

Creating Bookmarks 68

Reading a Bookmark 68

Updating the Bookmark 68

Deleting Bookmarks 69

Querying the Domain Model 69

Basic Retrieval with get and exists 69

Listing, Sorting, and Counting 70

Querying with Dynamic Finders 71

Querying with HQL 73

Querying by Example 73

Querying with Criteria 74

Mapping Inheritance 79

Validating the Domain 81

Applying Domain Constraints 82

Validating Against Constraints 84

Defining Custom Constraints 85

Performing Updates Revisited 87

Summary 88

Scaffolding 89

Dynamic Scaffolding 89

Create Operation 92

Read Operation 96

Update Operation 96

Delete Operation 101

Overriding CRUD Operations 101

Customizing Fields with Constraints 103

Static Scaffolding 104

Generating a Controller 105

Generating Views 108

Summary 110

Testing, Testing, Testing 111

Writing Effective Unit Tests 112

Using the assert Keyword 114

Using Test Data 116

Exploring GroovyTestCase 117

Testing in Practice 118

Using Mocks and Stubs 121

Mocks in Action 121

Defining Test Data with Closure Currying 123

Functional Testing with WebTest 128

Installing WebTest 128

Generating a Web Test 131

Executing Web Tests 134

Interacting with Forms 136

Summary 137

Grails Controllers 139

Introduction to Controllers 139

Setting the Default Action 141

Accessing Request Attributes 142

Using Logging 143

Working with Request Parameters 145

Understanding Flash Scope 146

Creating a Model 148

Data Binding and Type Conversion 149

Data Binding with Domain Models 150

Data Binding with the bindData Method 152

Controlling Flow with Redirects 153

Constructing a Model with Chaining 154

Rendering a Response 156

Rendering Text 157

Rendering a Specific View 157

Rendering Markup 157

Using Action Interception 158

Before Advice 159

After Advice 159

Using Interceptors for Authentication 159

Handling File Uploads 167

Working with Multipart Requests 167

Uploads and Data Binding 169

Summary 170

Groovy Server Pages 171

The Basics 171

Understanding the Model 172

Page Directives 173

Groovy Scriptlets 173

GSP as GStrings 174

Built-in Grails Tags 175

Setting Variables with Tags 175

Logical Tags 175

Iterative Tags 177

Filtering and Iteration 178

Grails Dynamic Tags 181

Linking Tags 182

Creating Forms and Fields 184

Validation and Error Handling 189

Internationalization Support 191

The message Tag 191

Using Layouts and Templates 192

An Example Layout 193

Layout-by-Convention 195

Layout with Meta Tags 195

Layouts in Action 195

Understanding Templates 200

Shared Templates 202

The Render Method Revisited 202

Paginating Data 203

Creating Custom Tags 205

Creating a Tag Library 206

Custom Tag Basics 207

Custom Tags in Action 208

Testing a Custom Tag 211

Summary 215

Ajax 217

The Basics of Ajax 217

Ajax in Action 221

Executing Code Before and After a Call 229

Handling Events 230

More on Updating Content 231

Remote Linking 231

Applying Effects 233

Working with JavaScript Events 234

Remote Form Submission 236

A Note on Ajax and Performance 238

Summary 239

Services and Jobs 241

Service Basics 241

Transactions 242

Services and Dependency Injection 243

Services in Action 244

Extended Search Capability 246

Latest del.icio.us Posts 252

Testing the Service 255

Scheduling Jobs with Quartz 256

Simple Jobs 256

Cron Jobs 258

Jobs in Action 260

Updating the Domain Model 262

Implementing a Controller 262

Creating the View and Template 264

Scheduling the Job 267

Testing the Job 274

Interacting with the Scheduler 278

Pausing and Resuming Jobs 280

Triggering a Job 280

Adding and Removing Jobs 280

Summary 282

Java Integration 283

Server-Side Java Integration 283

ORM Integration with Hibernate 285

Mapping with Hibernate XML 285

EJB3-Compliant Mapping 289

Using Constraints with POJO Entities 300

Retrieving the SessionFactory 302

Dependency Injection with Spring 302

Getting Hold of Useful Beans 303

Overriding Bean Definitions 306

Using Spring Controllers with Grails 306

Using Acegi Security with Grails 318

Exposing a SOAP Service with XFire 327

Summary 331

Index 333 http://rapidshare.com/files/29876497/1590597583.rar
Rating:

2.5 out of 5 by

 
Download Links
  ServerStatus


No download url, please check the above content. Free download from UseNet >>

Can not download? Search other download URLs here >>

Buy This Book at Best Price >>

Like this article?! Give us +1:

Related Articles


Technical Apress The Definitive Guide to Grails Dec 2006 eBook BBL

Technical Apress The Definitive Guide to Grails Dec 2006 eBook BBL

Author: Graeme RocherPublisher: ApressPublish Date: December 11 2006ISBN: 1590597583Pages: 384Book DescriptionGrails is a breath of fresh air for Java developers— Read the interview with Graeme Rocher at http://www.indicthreads.comReviewed ...

Technical The Definitive Guide to SUSE Linux Enterprise Server (Definitive Guide)

Technical The Definitive Guide to SUSE Linux Enterprise Server (Definitive Guide)

The Definitive Guide to SUSE Linux Enterprise Server (Definitive Guide) By Publisher: ApressNumber Of Pages: 720Publication Date: 2006-12-11Sales Rank: 204314ISBN / ASIN: 1590597087EAN: 9781590597088Binding: HardcoverManufact ...

Technical The Definitive Guide to Grails by  Graeme Rocher

Technical The Definitive Guide to Grails by Graeme Rocher

The Definitive Guide to Grails by Graeme Rocher (Author)Publisher: Apress (December 11, 2006) | ISBN-10: 1590597583 | PDF | 7,4 Mb | 384 pagesThis book takes you through the Grails development life cycle, including its project infrastructu ...

Programming The Definitive Guide to Grails, Second Edition (Expert's Voice in Web Development)

Programming The Definitive Guide to Grails, Second Edition (Expert's Voice in Web Development)

Graeme Rocher, Jeff Brown, "The Definitive Guide to Grails, Second Edition (Expert's Voice in Web Development)"Apress | 2009-01-15 | ISBN: 1590599950 | 648 pages | PDF | 4,5 MBThe rise of Ruby on Rails has signified a huge shift in how we b ...

Programming Grails: A Quick-Start Guide

Programming Grails: A Quick-Start Guide

Klein Dave, "Grails: A Quick-Start Guide" ragmatic Bookshelf | 2009 | ISBN: 1934356468 | 200 pages | PDF | 6,1 MB Grails is a full stack web development framework that enables you to build complete web applications in a fraction of the ...

Programming The Definitive Guide to Grails (Repost)

Programming The Definitive Guide to Grails (Repost)

The Definitive Guide to Grails Publisher: Apress | ISBN: 1590597583 | edition 2006 | PDF | 383 pages | 10,7 mbReviewed and endorsed by Guillaume Laforge and Dierk Koenig of Groovy, The Definitive Guide to Grails, by Grails lead Graeme Roch ...

Share this page with your friends now!
Text link
Forum (BBCode)
Website (HTML)
Tags:
Guide   Definitive   Grails  
 

DISCLAIMER:

This site does not store Technical The Definitive Guide to Grails on its server. We only index and link to Technical The Definitive Guide to Grails provided by other sites. Please contact the content providers to delete Technical The Definitive Guide to Grails if any and email us, we'll remove relevant links or contents immediately.

Comments (0) All

Verify: Verify

    Sign In   Not yet a member?

Sign In | Not yet a member?