DANNY
unread,Mar 27, 2009, 11:26:18 AM3/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Grails联盟-GrailsUnion
請問有人用過J2D plugin 嗎
我在grails 1.1 下試
並照說明建一個
class MyController {
def graph = {
renderImage( [width: 100, height: 100] ) {
rect( x: 0, y: 0, width: 100, height: 100, fill: 'red' )
// same graphic node but using property aliases
rect( x: 20, y: 20, w: 60, h: 60, f: color('#00F') )
}
}
}
再去對應的URL看 卻得到下面的異常:
Error 200: groovy.lang.MissingMethodException: No signature of method:
groovy.lang.MissingMethodException.renderImage() is applicable for
argument types: (java.util.LinkedHashMap, MyController
$_closure2_closure3) values: {["width":100, "height":100], MyController
$_closure2_closure3@17314b8}
Servlet: grails
URI: /j2d14/grails/my/graph.dispatch
Exception Message: No signature of method:
groovy.lang.MissingMethodException.renderImage() is applicable for
argument types: (java.util.LinkedHashMap, MyController
$_closure2_closure3) values: {["width":100, "height":100], MyController
$_closure2_closure3@17314b8}
Caused by: groovy.lang.MissingMethodException: No signature of method:
groovy.lang.MissingMethodException.renderImage() is applicable for
argument types: (java.util.LinkedHashMap, MyController
$_closure2_closure3) values: {["width":100, "height":100], MyController
$_closure2_closure3@17314b8}
Class: MyController
At Line: [5]
Code Snippet:
請問一下,有人知道這大概是什麼原因嗎?