1

独自のタグ ライブラリを作成します。使用時にエラーが発生します:

java.lang.RuntimeException: org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.commons.DefaultGrailsApplication.isArtefactOfType() is applicable for argument types: (java.lang.String, org.springframework.core.io.FileSystemResource) values: [TagLib, file [D:\domain\grails-app\taglib\ext\domain\DomainTagLib.groovy]]

可能な解決策: isArtefactOfType(java.lang.String, java.lang.Class), isArtefactOfType(java.lang.String, java.lang.String)

TagLib のソース:

package ext.domain
class DomainTagLib {

    def contractorFullReq = {attrs, body ->
        def Organization organization = attrs?.organization
        out << organization?.shortName
    }
}
4

0 に答える 0