Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Is it legal to call RemoteObject.call() inside setTimeout()
Is it legal to call RemoteObject.call() inside setTimeout() [message #1764800] Fri, 02 June 2017 10:18 Go to next message
Linuxhippy Mising name is currently offline Linuxhippy Mising nameFriend
Messages: 12
Registered: July 2009
Junior Member
Hi again,

I noticed the following does not work - I don't get an error, but the server-side method is never called:
setTimeout(function() {
   var remoteObj = rwt.remote.Connection.getInstance().getRemoteObject();
   remoteObj.call();
  }, 500);


however, when I retrieve the remote-object instance inside the client-side event handler, I can later execute call inside timeout() successfully:
   var remoteObj = rwt.remote.Connection.getInstance().getRemoteObject();
setTimeout(function() {
   remoteObj.call(...);
  }, 500);


What I wonder - is this supposed to work reliably, or just a side-effect of some kind?

Thank you in advance, Clemens
Re: Is it legal to call RemoteObject.call() inside setTimeout() [message #1766121 is a reply to message #1764800] Fri, 16 June 2017 07:32 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2285
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I don't see a reason the code above to be malfunction.
Regards,
Ivan
Previous Topic:RAP Supplemental repos not supported by Tycho 1.0
Next Topic:ApplicationConfiguration is not called anymore, after adding new dependencies and plugins
Goto Forum:
  


Current Time: Tue Aug 21 22:07:40 GMT 2018

Powered by FUDForum. Page generated in 0.01648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top