Sri
Sri

Reputation: 1505

how to cast a domain to a Collection Set in grails

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

Answers (1)

Sri
Sri

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

Related Questions