05043nam 2200721 a 450 991096728950332120240516203336.01-282-11197-397866121119761-84719-669-1(CKB)2400000000000900(EBL)967828(OCoLC)618016195(SSID)ssj0000332207(PQKBManifestationID)12084789(PQKBTitleCode)TC0000332207(PQKBWorkID)10333235(PQKB)10097002(Au-PeEL)EBL967828(CaPaEBR)ebr10442967(CaONFJC)MIL211197(PPN)228049075(FRCYB88852095)88852095(DE-B1597)722229(DE-B1597)9781847196699(FR-PaCSA)88852095(MiAaPQ)EBC967828(EXLCZ)99240000000000090020110223d2009 uy 0engur|n|---|||||txtccrGrails 1.1 web application development reclaiming productivity for faster Java web development /Jon Dickinson1st ed.Birmingham, U.K. Packt Pub.20091 online resource (328 p.)From technologies to solutionsIncludes index.1-84719-668-3 Cover; Table of Contents; Preface; Chapter 1: Getting Started with Grails; Why Grails?; Less configuration; Faster setup; Shorter develop/test cycle; Consistent development environment; Domain-specific language for web development; Fewer dependencies; Installing Grails; Build a team communication portal; Summary; Chapter 2: Managing Users with Scaffolding; What is scaffolding?; Create the domain classes; Create the User domain class; Create the Role domain class; Creating controllers to enable scaffolding; Control through constraints; Meeting the relations; Relating roles and usersOrdering fields through constraintsBootstrapping demo data; Summary; Chapter 3: Posting Messages; Message domain class; Rendering a form; Message controller; Groovy Server Pages; Create message view; Grails layouts; Show the form; Handling user input; Binding the request to the domain; Validate and save; Flash scope; Redirect; Render validation errors; Feedback to the user; Create a home page; HomeController; List all messages; Home page view; Styles and navigation; Set the default page; Update the layout; Tidying up; HTML encoding; Overriding validation error messages; SummaryChapter 4: Introduction to GroovyWhat is Groovy?; Object-Oriented; Dynamic; Functional; Loosely typed and strongly typed; Why Groovy?; Familiar syntax; Direct integration with Java; Running Groovy; Installing Groovy; Groovy shell; Groovy console; Execute Groovy scripts; Groovy classes and scripts; Groovy Features; Semicolons; Strings; Numbers; Lists; Maps; Ranges; Truth and equality; Closures; Plain old Groovy objects; Metaprogramming; Adding dynamic behavior; The great pretender; Builders; Summary; Chapter 5: Authentication with JSecurity Plugin; Where to find plug-ins?; Installing a plug-inConfiguring JSecurity plug-inHow does JSecurity work?; More about realms; Create a simple realm; Implement authenticate; Dynamic finders; Implement hasRole; Install the authentication controller; The authentication filter; Password encryption; Add the missing pieces; Encryption of users' passwords; Permission denied page; Sign out link; Who posted that?; Relate messages to users; Making it happen; Showing the user; Hibernate lazy loading; Eager load users; Summary; Chapter 6: Testing; Writing unit tests; Why we write unit tests; Confidence in code; Improve design; Developer productivityDocument codeHow to write unit tests; Test discreet units of code; Trust your libraries; Test your production code; Descriptive test names; Test one thing at a time; JUnit refresher; SetUp and TearDown; Asserting expectations; Unit tests in Grails; Groovy test extensions; Create a grails test; Running our tests; Grails testing plug-in; Testing Metacontroller; Testing validation; Limitations of Grails in unit tests; Integration testing; External dependencies; Repeatable tests; Integration tests in Grails; BootStrap for environments; Functional testing; Environment setup; Repeatable testsTest performanceReclaiming Productivity for faster Java Web DevelopmentWeb site developmentGroovy (Computer program language)Application softwareDevelopmentWeb site development.Groovy (Computer program language)Application softwareDevelopment.658.4/06Dickinson Jon1798860MiAaPQMiAaPQMiAaPQBOOK9910967289503321Grails 1.1 web application development4341831UNINA