Request parameters problem in version 1.4 M3 [message #640080] |
Thu, 18 November 2010 19:17  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.08956 seconds