Code: Select all
primefaces-extensions.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces-extensions&v=6.2.11:formatted:11 Uncaught TypeError: Cannot read property '1' of null
at Object.getFacesResource (primefaces-extensions.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces-extensions&v=6.2.11:formatted:11)
at c.init (primefaces-extensions.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces-extensions&v=6.2.11:formatted:142)
at c.e.<computed> [as init] (core.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces&v=6.2:5)
at new c (core.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces&v=6.2:5)
at Object.createWidget (core.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces&v=6.2:1)
at Object.cw (core.js.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?ln=primefaces&v=6.2:1)
at mailTemplate.xhtml;jsessionid=89C563BBC7FD42E5EFD18A78B44B1B4F?dswid=-9162:105
Code: Select all
getFacesResource: function(a, b, d) {
0 === a.indexOf("/") && (a = a.substring(1, a.length));
var c = PrimeFacesExt.getResourceScriptURI()
, f = PrimeFacesExt.getResourceScriptName(c);
c = c.replace(f, a);
f = "ln\x3d" + /[?&]([^&=]*)ln=(.*?)(&|$)/.exec(c)[2];
a = "";
-1 < c.indexOf("?" + f) || -1 < c.indexOf("\x26" + f) || (a = (new RegExp("[?\x26]([^\x26\x3d]+)" + f + "($|\x26)")).exec(c)[1]);
c = c.replace(a + f, a + "ln\x3d" + b);
d && (b = (new RegExp("[?\x26]" + a + "v\x3d([^\x26]*)")).exec(c)[1],
c = c.replace(a + "v\x3d" + b, a + "v\x3d" + d));
d = window.location.protocol + "//" + window.location.host;
return 0 <= c.indexOf(d) ? c : d + c
}
Code: Select all
a = "/ckeditor/ckeditor.js", b = "primefaces-extensions", d = "6.2.11"
c evaluates to "/PORTAL/javax.faces.resource/ckeditor/ckeditor.js.xhtml?ln=bsf"
Any ideas how I can fix this? Can I force JSF to append version numbers somehow?
This happens with:
Primefaces 6.2
Primefaces Extensions 6.2.11
Bootsfaces 1.1.3
Tomcat 9