Skip to main content



      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] Thu, 18 November 2010 19:17 Go to next message
Eclipse UserFriend
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: Thu, 18 November 2010 19:23] by Moderator

Re: Request parameters problem in version 1.4 M3 [message #640117 is a reply to message #640080] Fri, 19 November 2010 02:45 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 02:27:35 EDT 2025

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

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

Back to the top