Reputation: 1505
def tags = tipLists.collect{it.tags}
render(template:'listTags',model:[tagList:tags])
tags
are the set(Collection). I need to cast TipTag
(domain class) to the Collection Set tags
and forward it to a template gsp listTags
How to do this? any possibility??
Upvotes: 1
Views: 227
Reputation: 1505
I Have Done this,
List<TipTag> tagsList = tipLists.collect{it.tags}
render(template:'listTags',model:[tagList:tags])
This Worked out for me !
Upvotes: 1