Hi All!
I'm using tree2 component in my project.
I want to use prototype library too (http://prototype.conio.net/). But
if I include this library in jsp I get the following error when I try to
expand node:
Error: value.indexOf is not a function
Source File:
http://localhost:8080/webmail/faces/myFacesExtensionResource/tree2.HtmlTreeRenderer/1113309512000/javascript/cookielib.js
Line: 110
I found out that this error occurs because prototype library adds
property "extend" to each object:
Object.prototype.extend = function(object) {
return Object.extend.apply(this, [this, object]);
}
And in cookielib.js this property is fetched and interpreted as string
for (var name in attribMap){
if (name.indexOf(CookieLib.ATTRIB_KEYVAL) < 0 ...
I noticed that prototype library is often used in myfaces's components
to perform ajax routine so may be somebody have solution for this problem
PS I'm using 1.0.9 version but I checked out svn sources and noticed
that fresh cookielib.js doesn't have any differences with mine.