p:schedule onDateChange updater?

UI Components for JSF
Post Reply
Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

02 Aug 2010, 16:51

Currently the p:schedule component supports ajax updates on these events:
onEventSelectUpdate, onDateSelectUpdate, onEventMoveUpdate, onEventResizeUpdate

I need to be able to ajax update a div element outside of the calendar when user changes the date in the component. Ie the event name could be: onDateChange

I've tried to do a quick hack and enclose p:schedule like this:

Code: Select all

<p:schedule ...>
     <p:ajax event="click" update="myDivId" />
</p:schedule>
Sadly my div with id myDivId is not updated. Is there a way to do this in the current release, or is this a new feature request?
Primefaces, Mojarra, Tomcat

http://www.dsleeper.net
https://www.mylog.no

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

02 Aug 2010, 17:20

What is the difference between onDateChange and onDateSelectUpdate?

Neither p:ajax or f:ajax is supported by Schedule as it is a complex component to have simple client behaviors like click.

Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

02 Aug 2010, 17:41

As far as I can tell the onDateSelectUpdate only ajax updates ids when you click on an empty date or event inside the schedule.

I need to be able to ajax update ids when user clicks backwards, forward or today in month, week and dayview. Ie when the user is using date controls at the top of the schedule.

Am I getting this wrong somehow? I just created a testcase and when I click on a date inside the schedule I can see my component being updated, however this is not the case if I click the date controls with onDateSelectUpdate set.
Primefaces, Mojarra, Tomcat

http://www.dsleeper.net
https://www.mylog.no

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

02 Aug 2010, 18:29

I see, feel free to create a new feature request for this in our issue tracker.

There is a similar viewChangeListener request already;

http://code.google.com/p/primefaces/iss ... ail?id=930

Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

03 Aug 2010, 08:56

Primefaces, Mojarra, Tomcat

http://www.dsleeper.net
https://www.mylog.no

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

03 Aug 2010, 11:30

Thanks!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests