Schedule javascript interface

UI Components for JSF
Post Reply
JLuehman
Posts: 1
Joined: 17 Oct 2014, 03:36

17 Oct 2014, 03:50

How do i access the javascript interface/api of a schedule control?
I am trying to access the "viewDisplay" or "viewRender" function to detect when the view has changed, and if it has changed to the agenda week or agenda day views, to remove the scroll bar.

I have given it a widgetVar:

Code: Select all

<p:schedule id="schedule" widgetVar="jobsSchedule">
                                
</p:schedule>
But when i try access the widgetVar using jQuery it says it is not defined:

Code: Select all

<script type="text/javascript">
    alert(jobsSchedule);
</script>
Thanks!
Primefaces 5.1, JDK 1.7, Java EE 7.0, JSF 2.0

rikup
Posts: 459
Joined: 29 Jan 2013, 14:27

20 Oct 2014, 11:56

From migration guide: "Widgets must be referenced via "PF". e.g. PF('widgetVarName').show() instead of widgetVarName.show(); "

https://code.google.com/p/primefaces/wi ... ationGuide
PrimeNG 2.0.0
Angular 2.4.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests