圣杯中的全日历



我需要同样的帮助来填充日历上的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] 错误资源。ResourceMeta - 找不到资源:/plugins/full-calendar-1.5.1.0/css/fullcalendar.css
2012-05-18 12:33:13,324 [http-8080-1] 错误资源。ResourceMeta - 找不到资源:/plugins/full-calendar-1.5.1.0/js/fullcalendar.min.js
2012-05-18 12:33:14,082 [http-8080-1] 错误资源。ResourceMeta - 找不到资源:/plugins/full-calendar-1.5.1.0/css/fullcalendar.print.css

我错过了什么?

这个问题

(http://stackoverflow.com/questions/6181579/how-to-solve-grails-resource-not-found-error-for-a-plugin)表明"圣杯清洁"可能会有所帮助。你试过这个吗?

相关内容

  • 没有找到相关文章

最新更新