Hi, I'm digging into an AJAX-related project that in theory should be using the org.apache.wiki.rpc.json.JSONRPCManager to register the callback used in JavaScript (i.e., via requestJSON(WikiContext)).
This obviously is working as the search popup uses it, but the existing code seems broken. The JSONRPCManager spits out the following bit of JavaScript: "jsonrpc = new JSONRpcClient(\"" + jsonurl + "\");"); In my tests using a subclass of the RPCSamplePlugin, the above code flags two errors in Firebug, namely that the 'jsonrpc' variable hasn't been declared, and the JSONRpcClient class doesn't seem to exist anywhere in the JSPWiki code (nor can I find it in a JS library). Could someone point me to any documentation or examples of how to use the RPCSamplePlugin, as this doesn't seem to exist on even the old ecyrd site. Is this broken legacy code or am I just being daft and can't find something obvious? If I can manage to get an example of a JSON-RPC WikiPlugin going we'll share that code as part of our plugin package, which would help other developers do JSPWiki+AJAX work. Thanks for any assistance, Ichiro