I need same help to populate the JSON on a calendar. The JSON is this:
{
“start”:””,
“end”:””,
“title”:””,
“summary”:””
}
I return this 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
}
And I want to show it with this HTML code:
<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>
And nothing happens. The console show:
2012-05-18 12:33:13,319 [http-8080-1] ERROR resource.ResourceMeta – Resource not found: /plugins/full-calendar-1.5.1.0/css/fullcalendar.css
2012-05-18 12:33:13,324 [http-8080-1] ERROR resource.ResourceMeta – Resource not found: /plugins/full-calendar-1.5.1.0/js/fullcalendar.min.js
2012-05-18 12:33:14,082 [http-8080-1] ERROR resource.ResourceMeta – Resource not found: /plugins/full-calendar-1.5.1.0/css/fullcalendar.print.css
What am I missing?
This question (http://stackoverflow.com/questions/6181579/how-to-solve-grails-resource-not-found-error-for-a-plugin) suggests a ‘grails clean’ might help. Have you tried this?