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 inside setTimeout()
Is it legal to 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: 61
Registered: July 2009
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();;
  }, 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() {;
  }, 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 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: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
I don't see a reason the code above to be malfunction.
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: Sun Oct 24 10:24:20 GMT 2021

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

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

Back to the top