[Json-rpc-java] Fwd: json-rpc-java bugs or lack?
夏天
miracletalent at gmail.com
Wed Feb 13 12:49:46 SGT 2008
---------- Forwarded message ----------
From: 夏天 <miracletalent at gmail.com>
Date: 2008-2-13 12:38
Subject: Re: [Json-rpc-java] json-rpc-java bugs or lack?
To: William Becker <wbecker at gmail.com>
JSON-RPC realize I have to support the chain calls, such as:
Var jrpc = getRPC ();
/ / Return List Object
Var oList = jrpc.myObj.getMyList ();
/ / If the three objects is a Map
Var oMap = oList.get (3);
Similarly oMap can also continue to call Map Object methods
I have already written my forthcoming book, if you like, I will send to you
recently, please guidance
JSON-RPC我已经重新实现,支持链式调用,例如:
var jrpc = getRPC();
// return List Object
var oList = jrpc.myObj.getMyList();
// 如果第3个是一个Map对象
var oMap = oList.get(3);
同样oMap还可以继续调用Map Object的方法
我已经写入我即将出版的书,如果你喜欢,近期我会发给你,请你指点
2008/1/31, William Becker <wbecker at gmail.com>:
>
> By the way, json-rpc-java is no longer being maintained. We are now going
> by the name "jabsorb" and can be found at jabsorb.org. The new email list
> is at jabsorb-user at jabsorb.org
>
> Cheers,
> Will
>
> On Jan 31, 2008 11:57 AM, William Becker <wbecker at gmail.com> wrote:
>
> > Hi,
> >
> > to use a list from jabsorb, you have to access the list variable.
> >
> >
> > > var oList = json.JsonRpcCall.test("{id:997,sldfk}"); // is list
> > > oList.size(); // is error, it's no List methods
> > >
> >
> > This is expected behaviour. Jabsorb does not send the data directly in
> > the return value so that meta data (eg the class name) can also be sent. To
> > access it do:
> >
> > oList.list.size();
> >
> > (assuming that size() is a function on your list - unless you are
> > running prototype.js it probably isn't and you may need to use
> > oList.list.length instead.
> >
> >
> > > oList.lst.addAll(index, c); // is error, it's no List methods
> > >
> > This will not work even if you correct it to oList.list.addAll(index,
> > c); as the functions have not been exported as you have not set it as a
> > callable proxy (Callable proxies allow you to make remote calls on an
> > object).
> >
> > Are you trying to add the data to the remote list or to the local list?
> > If the later, just use standard javascript functionality.
> >
> > Cheers,
> > Will
> >
> >
>
--
您好,:
祝开心、幸福、健康
夏天
QQ: 1160 2011
MSN: miracletalent at sina.com
Email:miracletalent at gmail.com
Home:http://m9m.3322.org/
--
您好,:
祝开心、幸福、健康
夏天
QQ: 1160 2011
MSN: miracletalent at sina.com
Email:miracletalent at gmail.com
Home:http://m9m.3322.org/
More information about the Json-rpc-java
mailing list