Hi,
I have a question...
I don't seem able to figure out how to call a servermethod via RPC DMI from the client?
I have used the getTimeStampDMI as an example and I have setup the app.xml and binding stuff, no problem.
In the documentation I can see the DMI.call(...) and see how it works.
However, from the client this "DMI.call" isn't possible. I'm trying to call this from behind a button like so:
How do I issue the RPC DMI call here? Via a RPCManager.send?
If so, how is the binding done... in other words what required parameters do I need to provide in the request (serverMethod, arguments, etc.) so that the underlying RPCManager knows this is a RPC DMI call?
Thanx a lot for helping me out!
I have a question...
I don't seem able to figure out how to call a servermethod via RPC DMI from the client?
I have used the getTimeStampDMI as an example and I have setup the app.xml and binding stuff, no problem.
In the documentation I can see the DMI.call(...) and see how it works.
However, from the client this "DMI.call" isn't possible. I'm trying to call this from behind a button like so:
Code:
RootPanel.get().add(new Button("Get TimeStamp via RPC DMI", new ClickHandler() { public void onClick(ClickEvent event) { //issue an RPCDMI call here } }));
If so, how is the binding done... in other words what required parameters do I need to provide in the request (serverMethod, arguments, etc.) so that the underlying RPCManager knows this is a RPC DMI call?
Thanx a lot for helping me out!
Comment