在eclipse中开发的SplitApp演示工作正常。 当我尝试将其迁移到Openui5时,我遇到了问题。
我已将引导网址更改为https://openui5.hana.ondemand.com/resources/sap-ui-core.js。
问题仍然存在。
我收到如下错误:
2014-06-15 22:26:43 Device API logging initialized - DEVICE sap-ui-core.js:44
2014-06-15 22:26:43 registerResourcePath ('', 'https://openui5.hana.ondemand.com/resources/') - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:43 URL prefixes set to: - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:43 (default) : https://openui5.hana.ondemand.com/resources/ - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:43 registerResourcePath ('view', './view/') - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:43 registerResourcePath ('model', './model/') - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:43 registerResourcePath ('app', './app/') - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:43 registerResourcePath ('i18n', './i18n/') - sap.ui.ModuleSystem sap-ui-core.js:80
2014-06-15 22:26:44 registerResourcePath ('model', './model/') - sap.ui.ModuleSystem sap-ui-core.js:80
GET http://myDomain/i18n/i18n_en_US.properties 404 (Not Found) sap-ui-core.js:27
GET http://myDomain/i18n/i18n_en.properties 404 (Not Found) sap-ui-core.js:27
GET http://myDomain/i18n/i18n.properties 404 (Not Found) sap-ui-core.js:27
GET http://myDomain/model/menu.json 404 (Not Found) sap-ui-core.js:27
2014-06-15 22:26:45 The following problem occurred: error -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="revisit-after" content="10">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" language="JavaScript"
src="http://cdn.dsultra.com/js/registrar.js"></script>
<script type="text/javascript" language="JavaScript">
registrar_frameset({ a_id: 48873, // edit this to pass your portfolio ID,
drid: 'as-drid-2416478692338427'}); // edit this to pass your Domain Registrant ID
</script>
</head>
</html>,404,Not Found sap-ui-core.js:80
GET http://myDomain/model/coffee.json 404 (Not Found) sap-ui-core.js:27
2014-06-15 22:26:45 The following problem occurred: error - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="revisit-after" content="10">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" language="JavaScript"
src="http://cdn.dsultra.com/js/registrar.js"></script>
<script type="text/javascript" language="JavaScript">
registrar_frameset({ a_id: 48873, // edit this to pass your portfolio ID,
drid: 'as-drid-2416478692338427'}); // edit this to pass your Domain Registrant ID
</script>
</head>
</html>,404,Not Found
错误说它无法找到json模型和属性文件。 如果我必须在应用程序级别维护配置,请告诉我。
请在Github中找到openui5源代码,附图包含eclipse中用于sapui5的文件夹结构。
答案 0 :(得分:0)
您的splitapp_demo / app / Component.js需要进行如下更改:
<tr>
<td>
<select id="application" name="application">
<option value=""> -- Application -- </option>
</select>
</td>
</tr>
<tr>
<td align="center" style="padding-top:10px;" id="logInBtn">
<a id="link_combo" href="javascript:void(0);" onmouseout="MM_swapImgRestore()"><img src="resources/images/straclick-login.png" name="btn-login" border="0" width="280" id="btn-login" /></a>
</td>
</tr>