Download Grails 1.1 Web Application Development by Jon Dickinson PDF

By Jon Dickinson

Reclaiming productiveness for quicker Java internet improvement

  • Ideal for Java builders new to Groovy and Grails--this e-book will educate you all you must create net functions with Grails
  • Create, boost, attempt, and installation an online program in Grails
  • Take a step extra into internet 2.0 utilizing AJAX and the RichUI plug-in in Grails
  • Packed with examples and transparent directions to guide you thru the advance and deployment of a Grails internet application

In aspect

Web improvement is tricky--even an easy internet software has a couple of context alterations able to journey up the unwary. Grails takes the standard soreness out of internet program improvement, permitting us to target supplying actual software common sense and create seamless studies that may handle the wishes of our clients. This e-book will take the discomfort out of Grails through displaying you precisely the best way to construct an internet program with no less than fuss.

With this booklet, no matter if you're new to Grails, you'll be up and operating sooner than you recognize it. it is possible for you to to code speedier and your code might be higher. This transparent and concise publication is filled with examples and transparent directions that will help you construct your first Grails program and provides you the talents to hurry up your software improvement by means of including a special attitude for studying concerning the subject. After a quick creation to the dynamic JVM-based Groovy programming language, which teaches you sufficient approximately Groovy to appreciate the connection among Grails and the Groovy scripting language, it exhibits how one can use Grails and a few key plug-ins to bring invaluable internet purposes. It additionally takes you thru growing, constructing, trying out, and deploying an instance crew collaboration program in Grails.

Using an incremental and iterative procedure you'll methods to construct a easy internet program with safe authentication and various degrees of authorization. you are going to the best way to deal with dossier add permitting clients to percentage records. a few complicated good points of object-oriented endurance may be brought via including tags for messages and records to giving clients a strong categorization approach.

You will then construct at the simple program to augment the person adventure via AJAX and the RichUI plug-in. you are going to take an additional step into the realm of net 2.0 by means of including an RSS feed and a leisure carrier to the appliance. as soon as the total program is up and operating, you'll how to create your personal plug-in for tagging. ultimately, you are going to install this program to a construction atmosphere.

What you are going to study from this booklet?

  • Understand the connection among Grails and the Groovy scripting language
  • Learn adequate approximately Groovy to get you writing your first Grails applications
  • Use the integrated AJAX help to reinforce consumer interplay and create slick consumer interfaces with the RichUI plug-in
  • Develop and use a leisure carrier interface and supply an API via REST
  • Handle dossier add and versioning permitting clients to percentage files
  • Use Grails scaffolding to generate a person interface to permit administration of clients and roles in the application.
  • Secure your program with the JSecurity plug-in and use plug-ins to resolve universal problems
  • Reduce item endurance matters utilizing Grails Object-Relational Mapper
  • Create your personal Grails plug-in for tagging to restrict the quantity of knowledge that's displayed in your domestic page
  • Get to grips with computerized checking out to write down useful checks that force the application
  • Expose your program to different builders with a RESTful API


This ebook is a advisor to construction a wealthy internet program utilizing Grails. The strategy taken for development the applying is incremental and iterative; every one bankruptcy will produce a operating addition to the appliance, or iterate over current gains, in addition to introduce and punctiliously clarify the hot a part of the Grails framework used. The e-book doesn't cross into exhaustive descriptions of each aspect of Grails. whereas there's a lot of code within the ebook, there are only a few huge code listings. As you will discover, it isn't essential to write reams of code to get effects utilizing Groovy and Grails.

Who this ebook is written for?

This booklet is aimed toward Java net builders searching for how one can construct internet functions quick, and eager to learn the way it truly is performed quick. while you are pissed off with integrating the numerous varied frameworks which are to be had for internet improvement and wish to get on with development slick net functions in your clients, then this booklet is for you. Grails is outfitted at the Groovy language, yet event in Groovy isn't really required, as you'll research sufficient approximately Groovy to appreciate tips to use Grails.

Show description

Read or Download Grails 1.1 Web Application Development PDF

Similar networking: internet books

Morality, Moral Luck and Responsibility: Fortune's Web

This e-book considers diverse ways to ethical luck--the Aristotelian vulnerability to elements outdoors the agent's keep an eye on and the Kantian ambition to make morality resistant to luck--and concludes that either ways have extra in universal than formerly concept. even as, it additionally considers contemporary advancements within the box of advantage ethics and neo-kantianism.

The Official Patient's Sourcebook on Vocal Abuse and Misuse: A Revised and Updated Directory for the Internet Age

This e-book has been created for sufferers who've made up our minds to make schooling and examine a vital part of the remedy method. even though it additionally offers info priceless to medical professionals, caregivers and different health and wellbeing execs, it tells sufferers the place and the way to seem for info masking nearly all issues with regards to vocal abuse and misuse (also laryngeal abuse and misuse), from the necessities to the main complex parts of analysis.

The 2002 Official Patient's Sourcebook on Yellow Fever: A Revised and Updated Directory for the Internet Age

This e-book has been created for sufferers who've made up our minds to make schooling and examine a vital part of the therapy strategy. even though it additionally offers details beneficial to medical professionals, caregivers and different healthiness execs, it tells sufferers the place and the way to appear for info protecting nearly all subject matters relating to yellow fever (also Bunyavirus Infection), from the necessities to the main complex parts of analysis.

Extra resources for Grails 1.1 Web Application Development

Example text

List( sort: 'lastUpdated', order: 'desc', offset: 20, max: 2 0): This will retrieve the twenty next most recently updated messages. • Message. list ( fetch: [ user: 'eager' ] ) : This will retrieve all instances of message and populate the user property. When the default fetch strategy (lazy loading) is used, the user property on the message objects will not be populated. Instead, Hibernate will wait until the user property is accessed, and then load the related user data from the database. Currently, there is no user property on Message this will change in Chapter 5, where you will see why and when to specify the fetch strategy.

Grails tags are being used for the following: • Form • Input fields • Submit button • Cancel link Grails, like many other web frameworks, provides tags to render forms and form elements, reducing the amount of HTML you need to write when creating forms. In the g: form tag, you specify the Grails action (save, in this case) to be executed when the form is submitted. If no controller is specified, then the current controller will be used. The Grails specific attributes for the g: form tag are: • c o n t r o l l e r — w h i c h controller to use when constructing the HTML action URL • ac t i on—which action to use when constructing the HTML action URL • id—which id to add when constructing the HTML action URL • url —a map containing the controller, action and id to use when constructing the URL In addition to the above attributes, you can also specify any other attribute which will be passed through to the rendered HTML.

You then declare the variable name to be used for each item using the var attribute. save() } def destroy = { You should now be able to go to the URL for the home page (http: //localhost: 8 08 O/teamwork/home) a n d see the list of m e s s a g e s that have been posted so far, with the most recent message at the top. O O O Home | (S | | 1| + | £ http://localhost:e08Q/teamwork/home Messages air s p e e d v e l o c i t y of a s w a l l o w A f r i c a n or E u r o p e a n ? The Black K n i g h t ]ust a flesh wound.

Download PDF sample

Rated 4.76 of 5 – based on 10 votes