History
| Version | Date | Remarks |
|---|
| 0.2.1 | 13th of July 2009 | Bugfix onChange does not overwrite render method |
| 0.2 | 3rd of June 2009 | Added iCal4J support |
| 0.1 | 29th of May 2009 | Inital version |
Introduction
The following listing is a short introduction how you can use the render method to export your event data in the iCalendar format.
class TestController { def index = { render(contentType: 'text/calendar') {
calendar {
events {
event(start: Date.parse('dd.MM.yyyy HH:mm', '31.10.2009 14:00'),
end: Date.parse('dd.MM.yyyy HH:mm', '31.10.2009 15:00'),
description: 'Events description',
summary: 'Short info1') {
organizer(name: 'Silvio Wangler', email: 'a@b.com')
}
event(start: Date.parse('dd.MM.yyyy HH:mm', '01.11.2009 14:00'),
end: Date.parse('dd.MM.yyyy HH:mm', '01.11.2009 15:00'),
description: 'hell yes',
summary: 'Short info2',
location: '@home',
classification: 'private'){
organizer(name: 'Silvio Wangler', email: 'b.c@d.com')
}
}
}
}
}
}This plugin uses ical4j api (currently 1.0-RC2) and is therefore iCal RFC compliant. The output has been tested against the Google calendar importer and Mozilla Sunbird.
The plugin is at the current stage of development limited to events only. That means that you currently can only export VEVENTS.