Quantcast

RichUI Plugin CalendarDayView Sample

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RichUI Plugin CalendarDayView Sample

ak-bielefeld
Hello!

Does somebody have a sample fopr the RichUI Plugin CalendarDayView?

I can't get this to work.

A.Kleine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: RichUI Plugin CalendarDayView Sample

Andreas Schmitt
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]>:

> Hello!
>
> Does somebody have a sample fopr the RichUI Plugin CalendarDayView?
>
> I can't get this to work.
>
> A.Kleine
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/RichUI-Plugin-CalendarDayView-Sample-tp3697795p3697795.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...