Closed eduarddrenth closed 4 years ago
Try 8.0.2. Had a bug in 8.0.1
PFE 8.0.2 that is. And render @all should ever be used. You may as well not use Ajax and just do a full page refresh rather than use @all
just tried 8.0.2, same issue. I'll do a refresh, prefer render @all though because it gives a less jerkey effect.
trace in 8.0.2:
Error: The "destroy" method cannot be called because this Handsontable instance has been destroyed sheet.js:348:318
Ha https://localhost:8181/oat/faces/javax.faces.resource/sheet/sheet.js?ln=primefaces-extensions&v=8.0.2:348
refresh https://localhost:8181/oat/faces/javax.faces.resource/sheet/sheet.js?ln=primefaces-extensions&v=8.0.2:2090
Class.extend/e[d]</< https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:22
createWidget https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:16
cw https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:16
<anonymous> https://localhost:8181/oat/ line 2 > scriptElement:1
jQuery 3
updateElement https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:18
doUpdate https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:18
handle https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:18
v https://localhost:8181/oat/faces/javax.faces.resource/core.js?ln=primefaces&v=8.0.1:18
jQuery 4
c
fireWith
l
o
Ok I will look into it. I added a method to clean up the sheet in 8.0. So that is probably the issue. I know how to fix it.
Can you try this JS snippet.
PrimeFaces.widget.ExtSheet.prototype.refresh = function(cfg) {
// clean up HT memory
if (this.ht) {
this.ht.destroy();
this.ht = null;
}
PrimeFaces.widget.BaseWidget.prototype.refresh.call(this, cfg);
};
trying....
That works, tested with 8.0.2. Error gone and sheet keeps working
I do have another console error that might not be related:
XML Parsing Error: undefined entity
Location: https://localhost:8181/oat/
Line Number 6, Column 1981:
XML parsing error does not look like its from PFE but let me know if you figure it out.
thnx
pf 801 extensions 8.0
The following javascript problem occurs after render @all:
workaround:
<p:ajax update="...." onsuccess="location.reload()"/>
perhaps not a problem in extensions 8.0.1 anymore, did not test yet