Led & Sustained by

G2one Logo

Developed with

Intellij

Powered by

Spring

Dynamic Methods Reference

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

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

TagLib methods

  • throwTagError
  • all tag definitions (i.e. you can invoke any tag from another tag irrespective of which taglib defined it)
</