javascript - JS error on Chrome 57+ for RichFaces application "Cannot read property 'switchToItem' of undefined" -


i've jsp page tabs. , error occurs (when press tab) "cannot read property 'switchtoitem' of undefined" undefined error

uncaught typeerror: cannot read property 'switchtoitem' of undefined  @ init.__onheaderclick (packed.js:6102) @ htmltablecellelement.<anonymous> (packed.js:1333) @ htmltablecellelement.dispatch (jquery.js:846) @ htmltablecellelement.eventhandle (jquery.js:722) 

as understand error happens in packed.js (this js-file packed richfaces of version 4.3.4). i've looked inside file , found richfaces try find list of tabs. these tabs located in property "rf" (element[richfaces.rich_container]), in moment when pressed tab, there no property.

this bug reproduce in chrome v.57, in version 56 doesn't reproduce. me advice, how can fixed?

some technical details:

  • i use xmlns:rich="http://richfaces.org/rich" <rich:tabpanel> tag in jsp page
  • in pom.xml <richfaces.version>4.3.4.final</richfaces.version>

james g, have mistake in richfaces.js

   richfaces.$$ = function(componentname, element) {         while (element.parentnode) {             var containerid = element.getattribute(richfaces.rich_container);             if (containerid && containerid !== "" && !!richfaces.component_map[containerid] && richfaces.component_map[containerid].component.name == componentname) {                 return e.component;             }             else {                 element = element.parentnode;             }         } }; 

there no e. need change

... return richfaces.component_map[containerid].component; ... 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -