Hi Dirk,

I'm not suggesting the issue is mootools vs. jQuery, only that my
inexperience
with the former and the difficulty in intermixing them has kept me from
using my
own jQuery knowledge (which is still relatively novice-level) to quickly
debug the
problem, client-side.

More pertinent to what I agree is the problem is why the global
registration never
seems to result in the JSON-RPC calls being successful. After all I've
tried I'm
now registering a singleton global object similar to the SearchManager,
i.e., an
object that exists prior to the page containing either the plugin or the
JSP-based
client-side script being called. And the registration does show up as
successful
in the logs. So I agree, this is server-side, but it seems to have more to
do with
the client being unable to get *any* response from the server on a
pre-registered
RPCCallable object. As I mentioned, until the RPCSamplePlugin can be shown
to work I think I'm just stabbing in the dark. I don't think (after all of
our discussion)
that there's anything remarkable about my code -- it's all as I've
described
previously, pretty simple stuff.

Cheers,

Ichiro


On Sun, Feb 16, 2014 at 12:30 AM, Dirk Frederickx <dirk.frederi...@gmail.com
> wrote:

> Ichiro,
>
> The issue is *not* client-side related ; actually the moo tools rpc-calls
> are working perfectly; and returning the proper json rpc error codes.
> So mootools or jquery would not make any difference here.
> The problem is the registration of the JSONRPC-Callable classes on the
> server.
>
> Perhaps the registration of your JSON-RPC plugin is happening too late for
> the JSONRPC-Manager.sessionCreated() to be picked up ?
> Maybe a logging of the c_gloablObjects in the JSONRPC-Manager may help to
> reveal a timing issues.
>
> Just my .02 cents,
>
>
> Feel free to share your java and js code on the dev mailbox.
>
> dirk
>
>
>
> On Sat, Feb 15, 2014 at 9:19 AM, Ichiro Furusato
> <ichiro.furus...@gmail.com>wrote:
>
> > Hi Dirk,
> >
> > Yes, you're understanding what I'm trying to do. In addition to the
> plugin
> > I've
> > also been using a bespoke JSP page with scriptlets to prototype ideas
> > quickly,
> > as well as a JavaScriptPlugin we wrote years ago as a test bed. (That
> could
> > be submitted as a replacement for the JSPWiki plugin of the same name if
> > people are interested.)
> >
> > I have tried the 'domready' wrapper you suggested but that didn't seem to
> > make any difference, and given the amount of time I've now spent on this
> I
> > have to say that I'm likely going to abandon any AJAX-related work in the
> > JSPWiki space until it at some point as moved over to jQuery, and
> there's a
> > working RPCSamplePlugin. I've just run out of both steam and time.
> >
> > For now I'll probably try using some other approach than the
> JSONRPCManager
> > since I just can't get that to work. Perhaps Apache Wink or some kind of
> > lightweight RESTful client-server thing, dunno.
> >
> > Thanks very much for all your help,
> >
> > Ichiro
> >
>

Reply via email to