|  | 
|  | 
|  | 
|  | 
| 
| Re: Not all requests from the client are send to the server through req.addParameter(...)? [message #529080 is a reply to message #528933] | Thu, 22 April 2010 15:47  |  | 
| Eclipse User  |  |  |  |  | Hi Eduard, 
 it's right, the Request#send() function does not send requests
 immediately. It waits for a very short period of time to collect
 subsequent parameters to go into the same request.
 
 If you send() the same parameter with a high frequency, not all of these
 events will arrive at the server. A subsequent parameter value will
 overwrite the previous one for the same parameter. In this case, I would
 recommend to put those events into a queue and add a listener on the
 send event that sets the parameter to the queued events and and clears
 the queue.
 
 Hope this helps,
 Ralf
 
 Eduard wrote:
 > Hello RAP-Community!
 >
 > I've created a custom widget and I am sending some paramaters form the
 > client to the server through the following code:
 >
 > var wm = org.eclipse.swt.WidgetManager.getInstance();
 > var req = org.eclipse.swt.Request.getInstance();
 > req.addParameter( wm.findIdByWidget( this ) + ".PlayerEvent", args );
 > req.send();
 >
 > When some paramaters are send immediately one  after  another, only the
 > last parameter arrives at the server. If I send them with some delay
 > inbetween it works.
 >
 > I am using RAP M1.5 and the UICallback is active trough out the whole
 > session.
 >
 > Is that a bug? How does the 'Request' objekt actually work? Are the
 > request paramaters buffered somehow at the clientside?
 >
 > Best regards
 > Eduard Seibel
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.06198 seconds