when is Component-preload.js loaded by UI Framework
- 2019 年 10 月 4 日
- 筆記
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://jerry.blog.csdn.net/article/details/100824377
Created by Jerry Wang, last modified on Jan 16, 2015
- sap.ushell.services.AppConfiguration.getMetadata
- sap.ui.getCore().getEventBus().publish(“openApp”,f);
- sap.ui.controller.openSomething
- openDashboard
在UI上点击了navigation target之后,UI framework首先会去取target component的metadata:

由于addMetadata method 调用时,metadata还不ready,因此会在runtime时去retrieve:



最后使用AJAX call:

By Andreas:“This preload file can only be produced by our internal (complex) Maven-based build and by the Control development tools in Eclipse which I think are not available outside yet, either.”
update 2017-11-23 5:34PM
它是一个压缩的js,在upload本地的js到UI5 repository时自动生成的。
上传之后我们的BSP下面有一个mapping的xml:里面可以找到Component-preload.js对应的文件,文件名为一串guid

