Code: Select all
Uncaught TypeError: this.itemsContainer is undefined
init http://localhost:7002/myapp/javax.faces.resource/js/layout.js.xhtml?ln=ultima-layout:1095
Class.extend/e[d]< http://localhost:7002/myapp/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6&e=11.0.4:24
c http://localhost:7002/myapp/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6&e=11.0.4:24
createWidget http://localhost:7002/myapp/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6&e=11.0.4:18
cw http://localhost:7002/myapp/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6&e=11.0.4:18
<anonymous> http://localhost:7002/myapp/mypage.xhtml:875
How can I prevent this Uncaught TypeError ?
If I disable the line:
Code: Select all
this.itemsContainer.children('.ui-selectonemenu-item:first').css({'display': 'none'});
I could not figure out where "itemsContainer" is defined. But I have minimal javascript knowledge.
I ensured my layout.js is in sync with the template version 2.1.1
I did look at 4.1.0 version of layout.js, but it has changed a lot and uses other names for elements, but it no longer contains the 'itemsContainer' line.
I cannot upgrade to ultima 3.0.0 or 4.1.0 because there are too big layout changes. 2.1.1 works very good with PF 11 except for this error message.
Hope you can help.