Hi,
if you have “Object doesn’t support this property or method” error when using primefaces datatable in Internet Explorer, it is quite likely that you assign the same name for id and widgetVar for the datatable like:
<p:dataTable id=”documents” widgetVar=”documents”
so if you change one them like widgetVar to “documentsVar” it will be fixed.
Firefox does not have this problem btw.
I ran into this problem a few days ago, and had a hard time figuring out, what was the problem .. IE just plain sucks at giving helpful error messages.
Anyways… just to give a few more details I discovered:
This is a problem from Internet Explorer 8 and older. In Internet Explorer 9 the problem doesn’t appear, as well as Chrome/Chromium (tested on version 9 and 10)
Thanks Yigit, this was most helpful. Chrome struggled with it too for me.