As of OpenUI5 version 1.120, XML views and Typed Views are the only recommended view types. All other view types and related patterns are deprecated.
Note:
We recommend using XML views for all new development. For programmatic view creation, use Typed views via
View.extend().
| Deprecated Pattern | Deprecated as of | Replacement | Details |
|---|---|---|---|
| **JSON View** \(`sap.ui.core.mvc.JSONView`\) | 1.120 | [XML View](/docs/04_Essentials/xml-view-91f2928.html) | [JSON View \(deprecated\)](/docs/04_Essentials/json-view-deprecated-91f2852.html) |
| **Declarative Support** \(`sap.ui.core.plugin.DeclarativeSupport`\) | 1.120 | [XML View](/docs/04_Essentials/xml-view-91f2928.html) | [Declarative Support \(deprecated\)](/docs/04_Essentials/declarative-support-deprecated-91f1301.html) |
| **View Cloning** | 1.120 | Call the view factory function again | [View Cloning \(deprecated\)](/docs/04_Essentials/view-cloning-deprecated-a575619.html) |
| **Native HTML in XML Views** \(via XHTML namespace `xmlns:html="http://www.w3.org/1999/xhtml"`\)1 | 1.120 | `sap.html` library | [Using Native HTML in XML Views](/docs/04_Essentials/using-native-html-in-xml-views-be54950.html) |
| **CSS in XML Views** | 1.120 | External CSS file | [Using CSS Style Sheets in XML Views \(deprecated\)](/docs/04_Essentials/using-css-style-sheets-in-xml-views-deprecated-b564935.html) |
| **HTML View** \(`sap.ui.core.mvc.HTMLView`\) | 1.108 | [XML View](/docs/04_Essentials/xml-view-91f2928.html) | No more known usages as HTML syntax brings no advantages over XML |
| **JS View** \(`sap.ui.core.mvc.JSView`\) | 1.90 | [Typed View](/docs/04_Essentials/typed-view-e6bb33d.html) via `View.extend()` | Define view class in JavaScript using `sap.ui.core.mvc.View.extend()` |
| **XML Composite Controls** \(`sap.ui.core.XMLComposite`\) | 1.88 | [How Do I Migrate from `XMLComposite`?](/docs/07_Developing_Controls/composite-controls-d6bab27.html#loiod6bab27b5dc041b29b419bae8ae8f1d1__section_MFXMLC) | [Migrating from XMLComposite](/docs/07_Developing_Controls/building-standard-composite-controls-c1512f6.html#loioc1512f6ce1454ff1913e3857bad56392__section_coming_from_xmlcomposite) |
| **Template View** \(`sap.ui.core.mvc.TemplateView`\) | 1.56 | [XML View](/docs/04_Essentials/xml-view-91f2928.html) or [Typed View](/docs/04_Essentials/typed-view-e6bb33d.html) | Include Handlebars template support |
1) The sap.html library replaces the deprecated XHTML namespace. Instead of declaring xmlns:html="http://www.w3.org/1999/xhtml", declare the sap.html namespace (for example as the default namespace with xmlns="sap.html") and write tags with their native lowercase names. Add sap.html as a library dependency in your manifest.json. The sap.html library integrates with OpenUI5 data binding and event handling, validates URL-bearing attributes automatically, and is secure by design. For full migration details and code examples, see Using Native HTML in XML Views.
Related Information