0

我需要同样的帮助来填充日历上的 JSON。JSON是这样的:

{
“开始”:“”,
“结束”:“”,
“标题”:“”,
“摘要”:“”
}

我返回这个 JSON;

def createJSONEvent = {
    def json="["
        json+="{"
        json+="title:\"fede\","
        json+="start:'2012-05-01T22:00:00',"
        json+="end:'2012-05-01T22:30:00',"
        json+="allDay: false,"
        json+="url:\"${request.contextPath}/calendar/index/1\","
        json+="backgroundColor:'blue',"
        json+="textColor:'black'"
        json+="}"       
    json+="]"
    render json
}

我想用这个 HTML 代码来展示它:

<fullcal:calendar id="cal">
 theme: true,
 header: {
 left: 'prev,next today',
 center: 'title',
 right: 'month,agendaWeek,agendaDay',
 },
 columnFormat: { week: 'ddd d/M' },
 timeFormat: 'HH:mm{ - HH:mm}',
 selectable: true,
 selectHelper: true,
 editable: true,
 events:${include(controller:"calendar", action:"createJSONEvent")}
</fullcal:calendar>

什么也没有发生。控制台显示:

2012-05-18 12:33:13,319 [http-8080-1] 错误 resource.ResourceMeta - 找不到资源:/plugins/full-calendar-1.5.1.0/css/fullcalendar.css
2012-05-18 12:33 :13,324 [http-8080-1] 错误 resource.ResourceMeta - 找不到资源:/plugins/full-calendar-1.5.1.0/js/fullcalendar.min.js
2012-05-18 12:33:14,082 [http-8080 -1] 错误 resource.ResourceMeta - 找不到资源:/plugins/full-calendar-1.5.1.0/css/fullcalendar.print.css

我错过了什么?

4

1 回答 1

0

这个问题(http://stackoverflow.com/questions/6181579/how-to-solve-grails-resource-not-found-error-for-a-plugin)表明“grails clean”可能会有所帮助。你试过这个吗?

于 2012-05-19T01:47:55.450 回答