Grails

Evaluating Expressions with groovy.util.Eval

A few days ago I faced a problem of evaluating dynamic expressions on domain objects. The scenario was that, depending upon the user input, I needed to sort a list of objects on some properties, which were nested deep in the object, e.g., [java] student.course?.college?.name // if a user chose to sort students by college name ...

by Imran Mir
Tag: evaluate
27-Aug-2012