Request parameters problem in version 1.4 M3 [message #640080] |
Fri, 19 November 2010 00:17 |
|
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 |
Ivan Furnadjiev 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?
|
|
|
Powered by
FUDForum. Page generated in 0.02736 seconds