I am trying to use Ext GWT with Adobe AIR. My application is Desktop based and runs fine in hosted mode or in a browser; when run inside AIR (using adl) I get the following error:
Error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox.
I understand this is a result of security restrictions implemented by Adobe which, for applications running in the application sandbox, restrict the use of eval(). I traced down the offending line of code to line 1380 of com.extjs.gui.ui.client.core.Ext (version 1.2 source): eval(fn.join(""))
ExtJS seems to work fine in AIR - what do I need to do to get Ext GWT to play nice?
Ahh, ok, I found it. You don't already have an equivalent for the Gxt codebase by any chance? No. I'll get my hands dirty then.
Just out of interest, if this adapter makes it work in AIR, why isn't this "non-eval" code used instead of the eval() method - is it much less efficient?
An alternative sandbox is not an option - I want to use the AIR API's when the application is run in AIR.
What i am talking here. Just add another class (for example GXTAirAdapter) which sets some overrides from the ext-air-adapter file. Take a look to the Ext class how you can write normal javascript.
As this is mostly a simple copy and paste of the needed methods, it shouldnt be too hard
EDIT
It can be possible that not all methods can be overriden this way. You might find methods which have to be overriden directly
...you may also wish to look at this project getting GWT and AIR working. Ext GWT is really just a GWT application so this should be all you need to do.