PacktLib: Grails 1.1 Web Application Development

Grails 1.1 Web Application Development

Credits

About the author

Acknowledgement

About the reviewers

Preface

Getting Started with Grails

Why Grails?

Installing Grails

Build a team communication portal

Summary

Managing Users with Scaffolding

What is scaffolding?

Create the domain classes

Creating controllers to enable scaffolding

Control through constraints

Meeting the relations

Bootstrapping demo data

Summary

Posting Messages

Message domain class

Rendering a form

Handling user input

Create a home page

Styles and navigation

Tidying up

Summary

Introduction to Groovy

What is Groovy?

Why Groovy?

Running Groovy

Groovy features

Summary

Authentication with JSecurity Plug-in

Where to find plug-ins

Installing a plug-in

Configuring JSecurity plug-in

Add the missing pieces

JSecurity tags

Who posted that?

Summary

Testing

Writing unit tests

JUnit refresher

Unit tests in Grails

Integration testing

Integration tests in Grails

Functional testing

Functional testing In Grails

Testing guidance

Summary

File Sharing

File domain object

FileController

File Upload GSP

Saving the file

Viewing files

Modeling for efficiency

Downloading files

Summary

More GORM and Criteria

More GORM relationships

Querying with criteria

Updating FileController

Render file versions

Fix file download

Summary

Services

Introducing services

Implementing FileService

Summary

Managing Content through Tagging

Add basic tagging

Customize the home page

All Messages and Files

Summary

AJAX and RIA Frameworks

Edit tags inline

Auto-complete tags

Introducing tag clouds

Summary

Searching, RSS, and REST Services

Searching

RSS

REST services

Summary

Build your own Plug-in

The tagger plug-in

Using plug-in events

Summary

Deployment and the Real World

Set up the environment

Configure Grails

Hosting options

Next steps

Summary