Groovy and Grails Online Training
Groovy and Grails Online Training :
- Language Overview
- What is Groovy?
- What Groovy can do
- Installing
- Running Groovy scripts
- Basic Syntax and Scalar Variables
- Syntax rules
- Numbers – Integers, Floats, and BigDecimal
- Strings – Double quoted, Single quoted, Here documents, Slash quoted, GStrings
- Operators
- Collections
- Lists
- Coding a closure – The it parameter, Passing multiple parameters, Naming parameters (the -> operator)
- Maps
- Ranges
- Flow Control
- If statements – The truth in Groovy
- Switch statements
- While loops
- For loops
- Exceptions
- Classes of Groovy and Grails Online Training
- Defining classes – File-to-class relationships
- Member variables – Automatic getter/setter generation, Default visibility, Safe dereferencing with ? operator
- Methods – Optional parameters and default parameters
- Operator overloading
- Automatic constructor generation – Initializing property values in the constructor
- The Closure Groovy class
- Coding a method that expects a closure – Calling into the closure, Passing parameters
- Advanced Classes and Closures
- Closures – Using methods as closures, Polymorphic closures
- Operator overloading
- Metaprogramming – Discovering a class, Discovering fields, Discovering methods, Method resolution
- Pointers – Method, Field
- Calling methods that do not exist – ExpandoMetaClass, Categories
- Regular Expressions
- Regular Expression syntax
- The =~ operator
- The ==~ operator
- Common methods that use Regular Expressions
- Builders and Slurpers
- What are Builders and Slurpers?
- NodeBuilder
- MarkupBuilder
- AntBuilder
- Using the ConfigSlurper
- Grails Installation and Overview: Groovy and Grails Online Training
- Installing Grails – GRAILS_HOME variable,Updating PATH
- Technologies included with Grails – Spring, Hibernate, Site Mesh, AJAX libraries, Jetty/Tomcat
- Main components of a Grails application – Domain, Controller,View, Configurations
- Creating a simple Grails application
- The create-app command
- Configuring the application
- Create a Domain
- Getting started with the Grails scaffolding
- Generate views and a controller with create-all
- Create a basic Controller
- Running the application
- Unit Tests
- The Domain
- Modeling relationships – belongsTo, mapping, and hasMany – One-to-one, One-to-many, Many-to-Many
- Validators – constraints
- GORM – Using the dynamic finder methods, Criteria objects, HQL
- Domain Queries
- Using the dynamic finder methods
- Criteria objects
- HQL
- Controllers
- Navigation
- Returning data to the view
- Calling a controller method from the view
- Scopes – Request, Flash, Session, servletContext
- Working with redirects
- Creating and using services
- Binding properties to domain objects
- Command objects
- GSP basics
- How GSPs work
- Common GSP tag libraries
- Custom error messages
- Rendering and processing forms
- Writing custom tag libraries
- Working with layouts
- Filters of Groovy and Grails Online Training
- Creating simple filters
- Assigning a filter to actions on a controller
- Assigning a filter to a uri
- Defining when a filter executes – Before, After, afterView
- Plug-ins and simple Web 2.0 application
- What is a plug-in
- Installing a plug-in – The Zk plug-in, What is provided by a plug-in
- Integrating the Zk framework – Composers, Facades, Zul pages
More about