Definition des Fragment
Wichtig: Nicht als Dialog, sondern z.B. als Panel:
<core:FragmentDefinition
xmlns="sap.m"
xmlns:core="sap.ui.core">
<Panel
id="panelFragementchen">
<Text text="Fragementchen" />
</Panel>
</core:FragmentDefinition>
views/Test.fragment.xml
Verwendung des Fragmentchens
Wichtig: Namespace xmlns:core="sap.ui.core"
muss definiert sein!
<mvc:View
controllerName="ui5.walkthrough.controller.App"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc"
xmlns:core="sap.ui.core"
displayBlock="true">
<Shell>
<App class="myAppDemoWT">
<pages>
<Page title="{i18n>homePageTitle}">
<content>
...
<core:Fragment
fragmentName="ui5.walkthrough.view.Test" type="XML" />
</content>
</Page>
</pages>
</App>
</Shell>
</mvc:View>
views/App.view.xml