Saturday, January 2, 2016

Calling Taglib Methods in Grails Console

Loading Taglib Class (e.g. here ApplicationTaglib ):

def g = ctx.getBean(org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib.class.getName())

Calling Taglib Method:

g.createLink(controller: 'invitation', action: 'accept', params:[id: 'adasdasdas'])
g.link(action: 'create')

No comments: