Gxt with Adobe AIR
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:
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?
ExtJS only works fine with the air adapter (and this adapter is overriding some methods to work with air).
So if you want that to work, you have to override the GXT sources.
Or run your code in another sandbox where calls to "eval" are allowed.
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.
As this is mostly a simple copy and paste of the needed methods, it shouldnt be too hard
It can be possible that not all methods can be overriden this way. You might find methods which have to be overriden directly
Ext GWT Premium Member
...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.
Have you had any success getting GXT to run on Air?
GXT and Adobe Air
can anyone please tell me how i can make a gxt application work inside the air runtime ?
thx and greets