Hi,
what kind of error do you experience? Here is an example similar to
the one for the month view:
class Appointment {
Date dateCreated
String subject
String location
Date startDate
Date endDate
Date lastUpdated
String description
String toString(){
subject
}
static constraints = {
dateCreated()
subject(blank:false)
location()
startDate()
endDate()
description(size:0..5000, widget:'textarea')
lastUpdated()
}
}
and the controller passes a bunch of Appointment objects:
def day = {
Date date = new Date()
def appointments = Appointment.list()
[appointments: appointments, date: date]
}
and finally the GSP:
<resource:include components="calendarDayView" />
....
<richui:calendarDayView startHour="7" endHour="21"
date="${date}"
format="dd.MM.yyyy" items="${appointments}"
constraintDateFields="['startDate-endDate']"
createLink="true" displayField="subject" teaser="false"
teaserLength="20"
action="show" />
Hope that helps.
Best regards
Andreas
2011/7/27 ak-bielefeld <
[hidden email]>:
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email