Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Request parameters problem in version 1.4 M3
Request parameters problem in version 1.4 M3 [message #640080] Fri, 19 November 2010 00:17 Go to next message
Jesus   Luna Quiroga is currently offline Jesus Luna QuirogaFriend
Messages: 67
Registered: July 2009
Location: Mexico
Member

Hi,
I have a custom widget that adds parameters to the request in javascript like the GMap example that is in the documentation:

if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
var wm = org.eclipse.swt.WidgetManager.getInstance();
var gmapId = wm.findIdByWidget( this );
var center = this._map.getCenter().toString();
var req = org.eclipse.swt.Request.getInstance();
req.addParameter( gmapId + ".centerLocation", center );
}

This worked fine with the 1.4 M2 build but with the 1.4 M3 it doesn't work, it doesn't display any error, but it seems that it doesn't recognize the flag org_eclipse_rap_rwt_EventUtil_suspend, because the code doesn't executes after that point.

Does this mechanism changed in the 1.4 M3 build?

[Updated on: Fri, 19 November 2010 00:23]

Report message to a moderator

Re: Request parameters problem in version 1.4 M3 [message #640117 is a reply to message #640080] Fri, 19 November 2010 07:45 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jesus,
we changed this internal flag org_eclipse_rap_rwt_EventUtil_suspend. See
bug:
328915: [client] Refactor org_eclipse_rap_rwt_EventUtil_suspend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=328915
Change:
---
if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
---
to:
---
if( !org.eclipse.swt.EventUtil.getSuspended() ) {
---
Best,
Ivan

On 19.11.2010 2:17 AM, Jesus Luna Quiroga wrote:
> Hi,
> I have a custom widget that adds parameters to the request in
> javascript like the GMap example that is in the documentation:
>
> if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
> var wm = org.eclipse.swt.WidgetManager.getInstance();
> var gmapId = wm.findIdByWidget( this );
> var center = this._map.getCenter().toString();
> var req = org.eclipse.swt.Request.getInstance();
> req.addParameter( gmapId + ".centerLocation", center );
> }
>
> This worked fine with the 1.4 M2 build but with the 1.4 M3 it doesn't
> work, it doesn't display any error, but it seems that it doesn't
> recognize the flag org_eclipse_rap_rwt_EventUtil_suspend, because the
> code doesn't executes after that point.
>
> Does this mechanism changed in this build?
Previous Topic:Text.getSelectionText()
Next Topic:Error on 'update' console statement
Goto Forum:
  


Current Time: Thu Apr 25 20:23:29 GMT 2024

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

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

Back to the top