PDA

View Full Version : change Ext.loader relative path



bhomass
12 Jun 2012, 10:10 AM
This is going to be a tough one.

I am sending a Sencha Touch app thru a portlet.

The app runs fine by itself, but when going thru the portlet, it fails on

Uncaught Error: [Ext.Loader] Failed loading 'app/profile/Phone.js', please verify that the file exists

apparently, the Ext.loader is expecting to use relative path to the current page, which results in a long url that fails to translate.

GET http://localhost:10039/wps/mycontenthandler/!ut/p/spa/Z6_4U97BL540GEB50ITJ34MT120K3/html/app/profile/Phone.js 404 (Not Found)

I am approaching this from the portal side too, but is there any way I can get Ext.loader to use absolute path?