
Untitled
By: a guest on
Jun 17th, 2012 | syntax:
None | size: 0.42 KB | hits: 18 | expires: Never
invoke a domain method in a gsp
enter code here
def affichage(s){
def l=[]
def regex = /<.w*.>/
def matcher = s =~ regex
matcher.each{match ->
l.add(match)}
l.each{
for (i in l){
println i
}}}}
// assuming theDomainObject/anotherObject are loaded, preferably via service calls
render view: 'theView', model: [object: theDomainObject, another: anotherObject]
${object.yourMethod()}
${another.someprop}
${...}