You have extended a view or controller by defining sap.ui5/extends/extensions/sap.ui.controllerExtensions
or sap.ui5/extends/extensions/sap.ui.viewExtensions
in your Component's manifest.json, but at runtime neither are loaded.
There are mainly two possible reasons why you might encounter this scenario:
-
You have given a wrong view, fragment, or controller name in the manifest.json,
-
the owner component for your view/fragment/controller is missing.
You can easily resolve the first possibility why an extension is not loaded and applied by checking for the correct spelling of view-, fragment- and controller names in your manifest. The framework can only find an extension if the artifact names are correctly maintained in the manifest.json.
The framework does not validate the existence of artifacts mentioned in
sap.ui5/extends/extensions/
. Therefore, no error will be shown if a name is misspelled.
The second possibility is also easily solvable by making sure that your views, fragments, or controllers are created in the correct owner-component scope.
The owner component is the (UI)Component which "owns" a view, fragment, or controller. It must provide the extension information in its manifest.json.
For a detailed explanation of the owner-component concept and some coding samples, see the Related Information.
Related Information
sap.ui.core.Component.getOwnerComponentFor