p:schedule problem when rendering itself

UI Components for JSF
Post Reply
Primeta
Posts: 1
Joined: 31 Dec 2010, 12:08

31 Dec 2010, 12:35

Hi,
I'm using p:schedule to show my tasks (each ScheduleEvent is a task). Task's statuses include DELAY, ONTIME which represented by event's background color, RED and GREEN, respectively. When I move DELAY tasks (RED color) so that it become a task in future, its color supposes to change to GREEN.

Code: Select all

<p:schedule id="myid" value="#{scheduleBackingBean.eventModel}"  
            editable="true" widgetVar="myschedule"
            eventMoveListener="#{scheduleBackingBean.onEventMove}" onEventMoveUpdate="myid"
</p:schedule>
Method onEventMove will change the event styleClass from RED to GREEN, after that schedule will be updated by onEventMoveUpdate="myid", but the error shows on the screen something like this

Code: Select all

{"events" : [{"id": "4dbf3cd5-21e4-41ea-a847-67cd9319a8ba","title": "Late task","start": 1293670800015,"end": 1293681600015,"allDay":true,"className":"scheduleLate"},{"id": "a119b5c1-89b3-4f46-a888-f73e46c2b4c0","title": "Done task","start": 1293800400015,"end": 1293811200015,"allDay":true,"className":"scheduleLate"},{"id": "bedd1491-6755-48c0-8b4b-9ee3535a5082","title": "Birthday Party","start": 1293775200015,"end": 1293793200015,"allDay":true,"className":"scheduleDoing"},{"id": "b6060cbc-0472-42b5-8825-65dbfc8ff7bb","title": "Breakfast at Tiffanys","start": 1293847200015,"end": 1293854400015,"allDay":true,"className":"scheduleDoing"},{"id": "420790ac-fcc6-46ee-b2d6-fd4881b2d477","title": "Plant the new garden stuff","start": 1293955200015,"end": 1294128000015,"allDay":true,"className":"scheduleDoing"}]}
Where I am wrong? Please help!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 54 guests