カレンダーに 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
私は何が欠けていますか?