Dynamic Methods Reference
Grails uses special features of Groovy to provide dynamic methods and properties that are accessible from your classes without you defining them or inheriting from a base class.
This is extremely convenient and contributes to having far less "code noise" in your applications.
The dynamic features available vary depending on the type of class you are calling from.
All artifacts
Properties
Methods
Controllers / TagLibs
In addition to those present on all artifacts, controllers and tag libs support the following:
Common properties (available to controllers and tag libs)
Controller properties
TagLib properties
Controller methods
TagLib methods
- throwTagError
- _all tag definitions_ (i.e. you can invoke any tag from another tag irrespective of which taglib defined it)
Domain Classes
In addition to those present on all artifacts, domain classes support the following:
Properties
Methods
Static Methods
No Comments Yet
Post a Comment
Site Login