0
現在SAPUI5に基づくWebアプリケーションを作成しています。現時点ではHTMLページに基づいていますが、動的な構造に移行する必要があります。ソリューションはルータになります。私は、チュートリアルのトン(実際に)続く(JS/XMLビュー)異なる構造を試みたが、ルータはオールウェイズルーターが表示されない
The target intro has a control id or a parent but no 'controlAggregation' was set, so the target could not be displayed. - EventProvider sap.m.routing.Target
を返すこれが私の現在のルータのセットアップできました:
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "xx.xxxxxxx.view",
"controlId": "appContainer"
},
"routes": [
{
"pattern": "",
"name": "intro",
"target": "intro"
}
],
"targets": {
"intro": {
"viewName": "intro"
}
}
}
controlId私のrootviewのApp
タグを指してください。
非常に単純なビュー(テキストのみのような)で試しましたが、問題は解決しません。
<mvc:View
controllerName = "xx.xxxxxxx.controller.app"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc"
displayBlock="true">
<App id="appContainer"/>
</mvc:View>