Skip to Content
Author's profile photo DJ Adams

XML Views and Resource Bundle Declarations

Just a quick post on the train on the way down to London this morning.

The other day, Andreas Kunz pointed to an overview of the MVC options which contains very detailed information – an interesting and recommended read. One of the things that piqued my interest was the ability, in XML views, to specify a resource bundle (for internationalisation) declaratively, using a couple of attributes of the root View element. This I thought was rather neat.

So further to my recent explorations and posts on XML views …

Mobile Dev Course W3U3 Rewrite – XML Views – An Intro

Mobile Dev Course W3U3 Rewrite – XML Views – An Analysis

UI5 XML Views – Another Example

… I thought I’d put together a little runnable app and make it available on sapui5bin, to demonstrate it. The result is XMLResourceBundleDeclaration, which is an index file, instantiating an XML view that has the resourceBundle declaration in it; this points to the file in the i18n folder where you might expect to find it in other apps too.

The runnable is here:

Screen Shot 2014-01-28 at 08.08.17.png

Share and enjoy!

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Uwe Fetzer
      Uwe Fetzer

      Hi DJ,

      have you tested whether the Bundle will be read every-time a view is called or just once (like the model approach)?