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 に答える