I am getting the below error while trying to display a dialog box after user presses a button,
sap-ui-core.js:80 Uncaught Error: failed to load 'sap/m/buttons.js' from resources/sap/m/buttons.js: 404 - Resource could not be found!
Please find the XML code below.
<Dialog xmlns="sap.m"
icon="sap.icon://filter"
title="Filter product details">
<content>
<List id="ls2"
items="{/value}"
mode="MultiSelect">
<StandardListItem title="{CompanyName}"/>
</List>
</content>
<buttons>
<Button text="ok" icon="sap-icon://accept" press="handleok"/>
<Button text="Cancel" icon="sap.icon://cancel"/>
</buttons>
</Dialog>
sap.ui.version)? - Boghyon Hoffmannsap.ui.versionin runtime on your browser console? The fact that the same code works fine with<end/beginButton>indicates that the current version is below 1.21.1 since Dialog didn't have thebuttonsaggregation until then. The only mistake I can see right now are the invalid icon paths: Instead oficon="sap.icon://..., it should beicon="sap-icon://.... But that's not the main issue here. Do you use somewhere elsebuttonsin your application? - Boghyon Hoffmann