Dashboard > Grails > ... > Home > Dynamic Methods Reference
Dynamic Methods Reference Log In | Sign Up   View a printable version of the current page.

Added by graeme , last edited by Brad Whitaker on Oct 03, 2007  (view change)
Labels: 
(None)

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

  • out

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

Site running on a free Atlassian Confluence Open Source Project License granted to The Codehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators