Schedule - Attempting to call a FullCalendar method on an element with no calendar.
See original GitHub issueunder 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:
- switch into site with scheduler first error message:
Attempting to call a FullCalendar method on an element with no calendar.
- 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:
- Created 3 years ago
- Comments:5 (5 by maintainers)
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.
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