intraweb載入Extjs框架的路徑問題

2021-06-28 14:27:29 字數 887 閱讀 6361

intraweb的project有目錄要求:

sencha architect建立的mvc模式的extjs專案也有自己的目錄要求:

為了整個工程既可以在delphixe6中開啟,有可以在 sencha architec中開啟,而且又能執行除錯載入前台extjs框架,需要做必要的處理。

// extjs4庫// extjs4庫

// extjs4庫// extjs4庫

將sencha architec專案的其它所有檔案都放入wwwroot資料夾中:

這裡需要注意的是wwwroot中不能有index.html,否則intraweb載入會報錯。

到這裡如果使用intraweb的預設設定,已經可以正常載入extjs了。但是這是在intraweb不開啟allowmultiplesessionsperuser選項的情況,如果開啟,整個intraweb的資源目錄會發生變化:

failed to load resource: the server responded with a status of 404 (not found)

ext.loader.setconfig();

views: [

'mypanel'

],launch: function()

});

必須改為

ext.loader.setconfig();

views: [

'mypanel'

],launch: function()

});

處理後載入路徑變成了:

(function() );

})();

Extjs ajax讀取 intraweb資料

自己搞定,備忘。前台 ext.onready function new ext.button failure function response,options 最大的items 後台intraweb begin layoutmgr iwtemplateprocessorhtml1 end proc...

ExtJs中動態載入機制研究

以service registry portlet為例 比如,在 liferay portlet.xml中定義了 然後在第5314行,就通過另外乙個方法getprefix 來根據controller的類名來獲取它的字首,並且這個字首會最終參與到運算。我們這裡省去這段邏輯,反正最終,這個 servic...

ExtJS 修復tree重複載入Bug

treepanel,不管autoload什麼值,都會先載入。若再設定autoload為true,則再載入一遍。屬bug,官方v4版本有人提,v5中仍未解決。解決方法 設定autoload為false,增加beforeload阻止由expand觸發的load,自己呼叫load,可放在panel aft...