question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schedule - Attempting to call a FullCalendar method on an element with no calendar.

See original GitHub issue

under Primefaces 6.x works perfectly!

Environment:

  • PF Version: 7.0.16
  • jsf-api version: 2.1.29-11
  • Affected browsers: Chrome, Firefox

To Reproduce Steps to reproduce the behavior:

  1. switch into site with scheduler first error message: Attempting to call a FullCalendar method on an element with no calendar.
  2. when i click on week or day button then following error and rendered content for week or day is empty

Expected behavior jQuery.Deferred exception: s is undefined o</t.prototype.renderFgSegEls/<@http://localhost:7001/merlin/ line 2 > injectedScript:7:29229 each@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:2976 each@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:1454 o</t.prototype.renderFgSegEls@http://localhost:7001/merlin/ line 2 > injectedScript:7:29192 o</t.prototype.renderFgRanges@http://localhost:7001/merlin/ line 2 > injectedScript:7:27945 o</t.prototype.render@http://localhost:7001/merlin/ line 2 > injectedScript:7:27704 p</e.prototype.executeEventRender@http://localhost:7001/merlin/ line 2 > injectedScript:9:26675 f</e.prototype.executeEventRender@http://localhost:7001/merlin/ line 2 > injectedScript:11:3097 p</e.prototype.requestEventsRender/<@http://localhost:7001/merlin/ line 2 > injectedScript:7:18405 o</e.prototype.runTask@http://localhost:7001/merlin/ line 2 > injectedScript:9:23737 r</t.prototype.runRemaining@http://localhost:7001/merlin/ line 2 > injectedScript:9:22357 r</t.prototype.tryStart@http://localhost:7001/merlin/ line 2 > injectedScript:9:22187 r</t.prototype.resume@http://localhost:7001/merlin/ line 2 > injectedScript:9:21989 p</e.prototype.stopBatchRender@http://localhost:7001/merlin/ line 2 > injectedScript:7:15532 e@http://localhost:7001/merlin/ line 2 > injectedScript:6:16681 dispatch@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:43107 add/v.handle@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:41091 trigger@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:71530 triggerHandler@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:72209 s</e.prototype.trigger@http://localhost:7001/merlin/ line 2 > injectedScript:6:16933 a</e.prototype.setProps@http://localhost:7001/merlin/ line 2 > injectedScript:8:4640 a</e.prototype.set@http://localhost:7001/merlin/ line 2 > injectedScript:8:4033 a</e.prototype.watch/this._watchers[t]</<@http://localhost:7001/merlin/ line 2 > injectedScript:8:4866 e@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30005 l/</t<@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30307 setTimeout handlerl/<@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30516 c@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:28294 fireWith@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29039 fire@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29075 c@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:28294 fireWith@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29039 Deferred/</s[t[0]]@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30940 construct/<@http://localhost:7001/merlin/ line 2 > injectedScript:6:25720 e@http://localhost:7001/merlin/ line 2 > injectedScript:6:16681 i@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:40073 dispatch@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:43107 add/v.handle@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:41091 trigger@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:71530 triggerHandler@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:72209 s</e.prototype.trigger@http://localhost:7001/merlin/ line 2 > injectedScript:6:16933 u</t.prototype.release@http://localhost:7001/merlin/ line 2 > injectedScript:12:1088 u</t.prototype.tryRelease@http://localhost:7001/merlin/ line 2 > injectedScript:12:1022 u</t.prototype.requestSource/<@http://localhost:7001/merlin/ line 2 > injectedScript:11:30524 e@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30005 l/</t<@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30307 setTimeout handlerl/<@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30516 c@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:28294 fireWith@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29039 fire@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29075 c@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:28294 fireWith@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29039 Deferred/</s[t[0]]@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:30940 construct/<@http://localhost:7001/merlin/ line 2 > injectedScript:6:25720 a</e.prototype.fetch/</<@http://localhost:7001/merlin/ line 2 > injectedScript:9:19898 handle@http://localhost:7001/merlin/ line 2 > injectedScript:13:3053 doUpdate@http://localhost:7001/merlin/javax.faces.resource/core.js.xhtml?ln=primefaces&v=7.0.16:3:11922 handle@http://localhost:7001/merlin/javax.faces.resource/core.js.xhtml?ln=primefaces&v=7.0.16:3:10373 onsuccess@http://localhost:7001/merlin/ line 2 > injectedScript:13:3010 send/u<@http://localhost:7001/merlin/javax.faces.resource/core.js.xhtml?ln=primefaces&v=7.0.16:3:8064 c@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:28294 fireWith@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:29039 l@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:79817 o/<@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:82271 EventHandlerNonNull*send@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:82457 ajax@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:78240 send@http://localhost:7001/merlin/javax.faces.resource/core.js.xhtml?ln=primefaces&v=7.0.16:3:7725 offer@http://localhost:7001/merlin/javax.faces.resource/core.js.xhtml?ln=primefaces&v=7.0.16:3:2830 handle@http://localhost:7001/merlin/javax.faces.resource/core.js.xhtml?ln=primefaces&v=7.0.16:3:3577 setupEventSource/this.cfg.events@http://localhost:7001/merlin/ line 2 > injectedScript:13:3117 a</e.prototype.fetch/<@http://localhost:7001/merlin/ line 2 > injectedScript:9:19824 construct@http://localhost:7001/merlin/ line 2 > injectedScript:6:25704 a</e.prototype.fetch@http://localhost:7001/merlin/ line 2 > injectedScript:9:19795 u</t.prototype.requestSource@http://localhost:7001/merlin/ line 2 > injectedScript:11:30371 u</t.prototype.requestSources@http://localhost:7001/merlin/ line 2 > injectedScript:11:30195 f</t.prototype.setPeriod@http://localhost:7001/merlin/ line 2 > injectedScript:11:27613 f</t.prototype.requestEvents@http://localhost:7001/merlin/ line 2 > injectedScript:11:26141 H</t.prototype.requestEvents@http://localhost:7001/merlin/ line 2 > injectedScript:10:14039 p</e.prototype.fetchInitialEvents@http://localhost:7001/merlin/ line 2 > injectedScript:7:16648 @http://localhost:7001/merlin/ line 2 > injectedScript:7:26033 a</e.prototype.watch/this._watchers[t]<@http://localhost:7001/merlin/ line 2 > injectedScript:8:4813 c@http://localhost:7001/merlin/ line 2 > injectedScript:8:5279 a</e.prototype._watchDeps/</<@http://localhost:7001/merlin/ line 2 > injectedScript:8:5474 e@http://localhost:7001/merlin/ line 2 > injectedScript:6:16681 dispatch@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:43107 add/v.handle@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:41091 trigger@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:71530 triggerHandler@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:72209 s</e.prototype.trigger@http://localhost:7001/merlin/ line 2 > injectedScript:6:16933 a</e.prototype.setProps@http://localhost:7001/merlin/ line 2 > injectedScript:8:4612 a</e.prototype.set@http://localhost:7001/merlin/ line 2 > injectedScript:8:4033 p</e.prototype.setDate@http://localhost:7001/merlin/ line 2 > injectedScript:7:16454 H</t.prototype.renderView@http://localhost:7001/merlin/ line 2 > injectedScript:10:7105 H</t.prototype.changeView@http://localhost:7001/merlin/ line 2 > injectedScript:10:2845 undefined

Example XHTML

<h:form>
        <p:schedule id="calendarcontactsSchedule" widgetVar="calendarcontactsSchedule"
                    locale="#{localeController.locale}"
                    value="#{calendarcontactsController.scheduleModel}"
                    resizable="false" clientTimeZone="local"
                    slotLabelFormat="HH:mm" timeFormat="HH:mm">
            <p:ajax event="eventMove" listener="#{calendarcontactsController.onEventMove}"
                    immediate="true" process="@this"
                    update="#{frontendComponentHelper.resolve('kundenkontaktepanel')}
                            #{frontendComponentHelper.resolve('kundenkontakteFilterPanel')}
                            #{frontendComponentHelper.resolve('mitarbeiterkontaktetable')}"/>
            <p:ajax event="eventSelect" listener="#{calendarcontactsController.onSelect}"
                    immediate="true" process="@this"
                    update="#{frontendComponentHelper.resolve('kundenkontaktepanel')}
                            #{frontendComponentHelper.resolve('kundenkontaktescrollpanel')}
                            #{frontendComponentHelper.resolve('kundenkontakteFilterPanel')}
                            #{frontendComponentHelper.resolve('kundeinfo')}
                            #{frontendComponentHelper.resolve('mitarbeiterkontaktetable')}
                            #{frontendComponentHelper.resolve('actionCommands')}
                            #{frontendComponentHelper.resolve('kundeKontakteCreate')}"/>
        </p:schedule>
</h:form>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mellowarecommented, Sep 25, 2020

well if @StevenHachel creates a Reproducer we will know for sure.

Please follow the issue template or provide an executable example using the PrimeFaces Test project. It is the only way developers can debug your problem to help.

1reaction
christophs78commented, Sep 25, 2020

I believe the issue is this: #6157

Already fixed in 8.0.4

I don´t think so, because i introduced #6157 with 8.0 as part of the FullCalender 3.x --> 4.x - update.

And when we look into his callstack it looks like jquery was loaded. (as expected for 7.x) triggerHandler@http://localhost:7001/merlin/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=7.0.16:2:72209

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attempting to call a FullCalendar method on an element with ...
The calendar renders correctly, however: when I trigger the switchView() function, instead of changing the actual view it returns the warning:.
Read more >
Attempting to call a FullCalendar method on ... - Stack Overflow
Here is how I am creating the FullCalendar. The above line is just referencing the events from the calendar with nothing special going...
Read more >
Initializing with Options - Docs v3 - FullCalendar
How to initialize your first calendar with options. ... The code relies on there being an element with an id of “calendar” in...
Read more >
fullcalendar 're render, Calendar render is not a function ...
render Will initially render a calendar, or if it is already rendered, ... Attempting to call a FullCalendar method on an element with...
Read more >
FullCalendar 3.5.1 (Promise test) - Plunker
removeData('fullCalendar'); } } else if (!calendar) { FC.warn("Attempting to call a FullCalendar method on an element with no calendar."); } else if ($....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found