Hi, On Tue, Apr 15, 2008 at 12:44 PM, Gert Vanthienen <[EMAIL PROTECTED]> wrote: > How can I access a node's version history in ESP? Right now, I have... > <% history = currentNode.getVersionHistory(); > out.println(history); > versions = history.getAllVersions(); > out.println(versions); %> > > The first println shows a VersionHistory object instance, but the > subsequent call to getAllVersions() yields a > "org.mozilla.javascript.EcmaError: TypeError: getAllVersions is not a > function, it is org.mozilla.javascript.Undefined."...
What you're doing is correct, this looks like a bug - I have created SLING-382 to fix it, but I won't have time right now. I'm not sure how best to fix it - the easiest way might be for SlingWrapFactory to have a list of interfaces that must be wrapped by the default wrapper instead of our custom ones, and include VersionHistory in that list. -Bertrand
