Skip to Content
Former Member
May 30, 2014 at 04:17 AM

are XMLViews preferred over JSViews because of performance?



Given an option to go with JSViews and XMLViews, which one is preferred? Does XMLView has a better performance compared to JSView in terms of time taken to instantiate a new view and render it on the screen? If yes, is the performance gain significant enough to migrate existing JSViews to XMLViews?

I have found this thread , which says that JSViews are faster than XMLViews as they do not come with a parsing overhead, but the instructors giving the training for sapui5 are against this opinion.

1. If I have to use sap.ui.core.HTML control, how and where do i call setContent and attachAfterRendering methods in XMLView? Typically, in JSViews, we create the HTML control and call setContent and attachAfterRendering methods in subsequent lines.

2. Can XMLViews be extended like JSViews?


Ashwani Chandra