ERPClimb logoERPClimb
Login
All topics
FIORI_SAPUI5beginner

MVC, XML views and fragments

Components, views, controllers, reusable fragments, lifecycle and resource cleanup.

Overview

Components, views, controllers, reusable fragments, lifecycle and resource cleanup.

Lessons in this topic

  • MVC, XML views and fragmentsSeparate the component's ownership from view rendering and controller behavior. A fragment provides reusable UI pieces but requires deliberate identifier, model and lifecycle handling. Asynchronous creation means the owning view may disappear before a delayed fragment resolves, so cleanup and ownership need tests.

Interview questions covered

  • How do you structure views, fragments and controllers in a UI5 app?
  • A dialog fragment shows data from the wrong record. What could be wrong?

Related topics