Re: WO Ajax
Re: WO Ajax
- Subject: Re: WO Ajax
- From: Miguel Arroz <email@hidden>
- Date: Tue, 25 Apr 2006 15:45:45 +0100
Hi!
In the project I'm developing, I needed to call methods on the
super classes, so I'm in the process of changing the JSON-RPC code to
do the following:
1) Get all the methods from the super-classes instead of just the
class itself (done).
2) Only consider methods whose name start with "ajax". Still not
done because there are more important stuff to do right now, but I
suppose it's trivial! :)
This way I can control exactly what methods can be remotely called.
Yours
Miguel Arroz
On 2006/04/25, at 13:33, Jean-François Veillette wrote:
Le 06-04-25, à 00:47, Anjo Krank a écrit :
You need to get a servlet.jar and add it to your /Library/
WebObjects/Extensions.
And you should be careful with that component. I haven't yet
tested it, but it seems to me that if you bind up your page as the
proxy object, you could call sth like page.application().terminate
()...
I didn't try, but from reading the code, my understanding is that
you only get 1 level interface from the proxy object. So if the
page is your proxy, the rpc will make public only the method
availlable from that page object. So yes you can call
page.application(), but the rpc will receive an application object
which is a big 'undefined' in javascript. You then won't be able
to call 'terminate()' on it since this will be evaluated in
javascript (a no opp).
There is a way to return another proxy object, this is an
'advanced' feature of json-rpc (foreign reference or something like
that), but this is not yet investigated for wo integration.
- jfv
Cheers, Anjo
Am 25.04.2006 um 05:25 schrieb David Holt:
Hi Mike,
Thanks for all your hard work. The sortable list is something
that I have been in desperate need of for my application, and to
see it implemented is just too cool. The drag and drop shows
promise for inclusion soon too...
The RPC link still doesn't work, at least on my system. I am
using build 67 and received the following error for the first
hyperlink (the rest work perfectly):
Exception in thread "WorkerThread9"
com.webobjects.foundation.NSForwardException for
java.lang.NoClassDefFoundError:
javax.servlet.http.HttpServletRequest
at com.metaparadigm.jsonrpc.JSONRPCBridge.class$
(JSONRPCBridge.java:75)
at com.metaparadigm.jsonrpc.JSONRPCBridge.<clinit>
(JSONRPCBridge.java:131)
at er.ajax.AjaxProxy.handleRequest(AjaxProxy.java:231)
at er.ajax.AjaxComponent.invokeAction(AjaxComponent.java:
155)
at
com.webobjects.appserver._private.WOComponentReference.invokeAction(
WOComponentReference.java:104)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenActio
n(WODynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction
(WODynamicGroup.java:110)
at com.webobjects.appserver.WOComponent.invokeAction
(WOComponent.java:945)
at com.webobjects.appserver.WOSession.invokeAction
(WOSession.java:1168)
at com.webobjects.appserver.WOApplication.invokeAction
(WOApplication.java:1375)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatc
hWithPreparedPage(WOComponentRequestHandler.java:196)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatc
hWithPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatc
hWithPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleR
equest(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRe
quest(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
On 24-Apr-06, at 7:45 PM, Mike Schrag wrote:
OK, the build script is fixed up ... Wonder build 67 includes
AjaxExample.woa in the Wonder-2.0.0.67-Examples.tar.gz (rather
than the Applications tar). You need Ajax.framework and
ERJars.framework in your /Library/Frameworks folder to run it,
and those are in the Frameworks tar. Third time's a charm :)
ms
On Apr 24, 2006, at 10:23 PM, Mike Schrag wrote:
I only run it in Eclipse, so I didn't notice that it didn't
have the real framework dependencies setup, only the eclipse
project dependencies (which also explains why i couldn't get
the build script working properly most likely). I replaced
that AjaxExamples tar with the PROPER one (really only differs
in that the classpath files are updated). Your process was
correct.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40logicunited.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
http://www.freeiPods.com/?r=21419063
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com
This email sent to email@hidden
"The world lies in the hands of evil
And we pray it would last" -- Apocalyptica, Life Burns!
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden