p:schedule onEventMove

UI Components for JSF
Post Reply
mjm.ent@gmail.com
Posts: 4
Joined: 17 Feb 2012, 16:01

17 Feb 2012, 16:20

I have found that there is a problem on the eventMove event of the p:schedule I am in the process of implementing the drag and drop functionality of an example on the pf showcase. My application is backed by EJB 3 and eclispelink JPA2 on jsf 2 and pf3.0.1

Within the month view I drag an event from one date to another. pf is changing the startdate of the event, if I move the event backwards 1 day pf decrements the startdate by 2 AND shows a dayDelta of -1. This is obviously incorrect. My workaround is to multiply the dayDelta by -1.

For example:

An event is created from the database on 15 febuary 2012.
I move this event backward one week to the 8 feburary 2012
PF fires eventMove event, my MBean receives ScheduleMoveEvent.getStartDate as 1 feburary 2012 and dayDelta -7
I roll my calendar gCal.roll(Calendar.DAY_OF_MONTH, -1 * dayDelta);
My calendar is now set to 8 febuary 2012.

Please fix

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

17 Feb 2012, 16:23

<context-param>
<param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
<param-value>true</param-value>
</context-param>

mjm.ent@gmail.com
Posts: 4
Joined: 17 Feb 2012, 16:01

17 Feb 2012, 16:32

Thanks I have already tried that from browsing for a solution to this problem, but it didn't work.
And I don't understand how timezones can introduce and error of 1 week into a calendar, a few hours yes, but a week ?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Majestic-12 [Bot] and 64 guests